https://github.com/hypothesis/batch-tools
Python scripts for batch operations on Hypothesis annotations
https://github.com/hypothesis/batch-tools
Last synced: 3 months ago
JSON representation
Python scripts for batch operations on Hypothesis annotations
- Host: GitHub
- URL: https://github.com/hypothesis/batch-tools
- Owner: hypothesis
- License: bsd-2-clause
- Created: 2023-08-25T14:25:32.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-06-25T10:59:56.000Z (about 1 year ago)
- Last Synced: 2025-06-25T11:50:58.684Z (about 1 year ago)
- Language: Python
- Size: 82 KB
- Stars: 2
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hypothesis API batch scripts
Python scripts for performing bulk operations against the Hypothesis API.
## Installation
This project uses [Pipenv](https://pipenv.pypa.io). To install dependencies,
run:
```sh
pipenv install
```
## Usage
1. Generate a developer token at https://hypothes.is/account/developer, or otherwise
obtain a Hypothesis access token.
2. Set the `HYPOTHESIS_ACCESS_TOKEN` env var to the access token
```sh
export HYPOTHESIS_ACCESS_TOKEN={YOUR_TOKEN}
```
3. Run the specific batch tool you want using `pipenv run `. See
the `[scripts]` section of `Pipfile` for a list of available scripts.
### Bulk annotation delete
Delete all annotations on `URL` in `GROUP_ID`.
```sh
pipenv run bulk_delete URL GROUP_ID --endpoint https://hypothes.is/api
```