Skip to content

A Python package with a API client for ActivityInfo version 4

License

Notifications You must be signed in to change notification settings

bedatadriven/activityinfo-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A Python package with a API client for ActivityInfo version 4

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages