/activityinfo-Python

A Python package with a API client for ActivityInfo version 4

Primary LanguagePythonMIT LicenseMIT

activityinfo-Python

A Python package with an API client for ActivityInfo version 4.

Usage

Create a Python virtual environment in the project root:

python3 -m venv venv

Activate the virtual environment:

source venv/bin/activate

Install the module's requirements using pip:

python3 -m pip install -r requirements.txt 

Start the Python 3 shell:

python3

Load the module and get a JSON of the databases in your account:

from activityinfo import Client
client = Client("<your API token>")
dbs = client.get("databases")
# 'dbs' is a JSON object with the list of databases in your account

See also the help article on API tokens in the ActivityInfo user manual.

When you're done, deactivate the virtual environment:

deactivate

License

The code in this Python package is released under the MIT license. See the LICENSE file for the full license.