A Rust API for Hypothesis

Work in progress

Description

A lightweight wrapper and CLI for the Hypothesis Web API v1.0.0. It includes all APIKey authorized endpoints related to * annotations (create / update / delete / search / fetch / flag), * groups (create / update / list / fetch / leave / members) * profile (user information / groups)

Installation and Usage

Authorization

You'll need a Hypothesis account, and a personal API token obtained as described here. Set the environment variables $HYPOTHESIS_NAME and $HYPOTHESIS_KEY to your username and the developer API key respectively.

As a command-line utility:

bash cargo install hypothesis Run hypothesis --help to see subcommands and options.

Generate shell completions: bash hypothesis complete zsh > .oh-my-zsh/completions/_hypothesis exec zsh

As a Rust crate

Add to your Cargo.toml: toml [dependencies] hypothesis = {version = "0.2.0", default-features = false}

Examples

Check the documentation of the Hypothesis struct for some usage examples. If you want to use environment variables, instantiate the api with from_env instead of new.

TODO: Add a longer example here

Changelog

See the CHANGELOG

Caveats / Todo: