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.10.2.tar.gz (25.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.10.2-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: a5_client-0.1.10.2.tar.gz
  • Upload date:
  • Size: 25.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.10.2.tar.gz
Algorithm Hash digest
SHA256 4e8d761cb494c02a28a7c8ee371acd9f9bb28ffb663f6125bd8f8808d1392902
MD5 99211fd4269459faee4d9e75d4eea814
BLAKE2b-256 f27a07432612766a1e86e706bbaa87c95561d8078d6dfa11672c287366afa65a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: a5_client-0.1.10.2-py3-none-any.whl
  • Upload date:
  • Size: 20.2 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.10.2-py3-none-any.whl
Algorithm Hash digest
SHA256 91eb871f6438d2eb06434c8024a97ee180dc2c760f258707969e582d506ff283
MD5 5f12029b15ee34521304ccac7d86a6a0
BLAKE2b-256 7d7ddb124000a393d3ea5c4cd76f4505af29d497fe1a501f4248d84ded4cbcaf

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