Skip to main content

a5 api client for python

Project description

a5 api client library

Install

git clone https://github.com/jbianchi81/a5client.git
cd a5client
python3 -m venv .
source bin/activate
python3 -m pip install .
# start log file
LOGFILENAME=/var/log/a5client.log
sudo touch $LOGFILENAME
sudo chown $USER:$USER $LOGFILENAME
# set config file
cat >~/.a5client.ini <<EOL
[log]
filename=$LOGFILENAME
EOL

Use

$ python3
>>> from a5client import Crud
>>> client = Crud(url="A5_API_ENDPOINT_URL", token="YOUR_PERSONAL_TOKEN")
>>> series = client.readSeries(var_id=2)
>>> data = client.readSerie(29, "2020-01-01T03:00:00.000Z", "2021-01-01T03:00:00.000Z")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

a5_client-0.1.8.tar.gz (24.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

a5_client-0.1.8-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file a5_client-0.1.8.tar.gz.

File metadata

  • Download URL: a5_client-0.1.8.tar.gz
  • Upload date:
  • Size: 24.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for a5_client-0.1.8.tar.gz
Algorithm Hash digest
SHA256 e040b7265ccc708fc1441369c152a6341ae3375f585becbe2c8d14607652db24
MD5 951f6cf004476772333665a79c1dca62
BLAKE2b-256 20e837d38aec58854ecdb118825e631ca998a124f2931d051276e3791cdda1e0

See more details on using hashes here.

File details

Details for the file a5_client-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: a5_client-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for a5_client-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 4f439a5704ea097f1559970684df49813ef70f0256121517a90583e79a1f326f
MD5 3346e18a0977d768c3138b4edce02785
BLAKE2b-256 3fb930a40b535684b4219f95c3c4debbacb101c584d9518beb0f1a380e6aa5df

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page