https://github.com/inception-project/pycaprio
Python client to the INCEpTION annotation tool
https://github.com/inception-project/pycaprio
Last synced: 4 months ago
JSON representation
Python client to the INCEpTION annotation tool
- Host: GitHub
- URL: https://github.com/inception-project/pycaprio
- Owner: inception-project
- License: mit
- Created: 2021-03-09T15:43:25.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-06-10T19:18:18.000Z (about 1 year ago)
- Last Synced: 2025-07-12T12:12:26.300Z (about 1 year ago)
- Language: Python
- Homepage: https://pycaprio.rtfd.io
- Size: 221 KB
- Stars: 17
- Watchers: 3
- Forks: 5
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# PyCaprio

[](https://badge.fury.io/py/pycaprio)
[](https://pycaprio.readthedocs.io/en/latest/?badge=latest)
[](https://github.com/inception-project/pycaprio/actions/workflows/run_tests.yml)
[](https://codecov.io/gh/inception-project/pycaprio)
Python client for the [INCEpTION](https://github.com/inception-project/inception) annotation tool remote API.
## Installation
At the moment, this fork of `Pycaprio` is only available here, in GitHub (see reasons in "Current state of Pycaprio" below):
```
python -m pip install git+https://github.com/inception-project/pycaprio.git@0.2.1#egg=pycaprio
```
## Basic usage
The main object is the `Pycaprio` object, which will act as a client to interact with the API.
You will need your INCEpTION's host and an user with a [REMOTE role](https://inception-project.github.io//releases/0.11.0/docs/admin-guide.html#sect_remote_api).
Then, instantiate the Pycaprio client:
```python
from pycaprio import Pycaprio
pycaprio_client = Pycaprio("http://inception-host.com", ('username', 'password'))
# Create a project
pycaprio_client.api.create_project("Project name", "creator-username")
```
Check the [documentation](https://pycaprio.readthedocs.io) if you want to know more.
## Release
* Set the release version in `pyproject.toml` (e.g. `version = "0.3.1"`)
* Create a tag for the version e.g. `v0.3.1`
* Push the tag - this will trigger a GitHub action that requires approval
* Approve the action (or ask somebody who has the necessary permissions to approve)
* Wait until build is complete and release is on pypi
* Set the next dev version in `pyproject.toml` (e.g. `version = "0.4.0-dev"`)
## License
PyCaprio is under the MIT license. Check it out [here](https://opensource.org/licenses/MIT).
PyCaprio was originally developed by [Savanamed](https://github.com/Savanamed/pycaprio) and Javier Luna Molina.
It is now part of the INCEpTION project.