Python scripts for performing bulk operations against the Hypothesis API.
This project uses Pipenv. To install dependencies, run:
pipenv install
-
Generate a developer token at https://hypothes.is/account/developer, or otherwise obtain a Hypothesis access token.
-
Set the
HYPOTHESIS_ACCESS_TOKEN
env var to the access tokenexport HYPOTHESIS_ACCESS_TOKEN={YOUR_TOKEN}
-
Run the specific batch tool you want using
pipenv run <tool>
. See the[scripts]
section ofPipfile
for a list of available scripts.
Delete all annotations on URL
in GROUP_ID
.
pipenv run bulk_delete URL GROUP_ID --endpoint https://hypothes.is/api