All Arkindex features are usable through its Rest API. You can view all the available endpoints and their parameters in the OpenAPI specification.
In the API, a project is currently referred to as a corpus, although this will change in the future.
We have open-sourced two API clients in Python to ease the usage of our platform.
You can install it on your computer (provided you have Python 3.6+ installed) using pip:
pip install arkindex-client
You'll then be able to write scripts that can use Arkindex API, using OpenAPI endpoint names:
# Example script to list pages in a project
from arkindex import ArkindexClient
api = ArkindexClient()
for element in api.paginate('ListElements', corpus='some project', type='page'):
More documentation is available on the official package page.
A more high-level tool is available using the command line. It implements common operations to be more efficient with Arkindex. It is available on PyPI as arkindex-cli. Its source code is freely available on this repository.
A dedicated detailed documentation is available at cli.arkindex.org.
arkindex-cli project can be installed (provided you have Python 3.6+ installed) using pip:
pip install arkindex-cli
For example, you can upload a list of IIIF images on the server:
arkindex upload iiif-images my_list.txt project_id
For a list of all the available commands, and usage examples, see the CLI documentation.