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.1.tar.gz (24.9 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.1-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: a5_client-0.1.10.1.tar.gz
  • Upload date:
  • Size: 24.9 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.1.tar.gz
Algorithm Hash digest
SHA256 4f67ea2cd4e1933f77bd5d09446b3fe75fef41efb55ba8138e6ed24fbfcca86a
MD5 246cb0d1537dcf0ce5738b95cb66ecea
BLAKE2b-256 d22837abbcf589c1394c254bdc319140dac83a01e01766d29a1846bf284c5dff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: a5_client-0.1.10.1-py3-none-any.whl
  • Upload date:
  • Size: 20.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c55a18b0f0e3d7ce239e21fa37b5b6994ee52ebe0fed1ff385e108688b6d178e
MD5 e69c3183c66312a7b0479aeea0159801
BLAKE2b-256 cbb5071828cd38fbe6b1e25b48abc460159d542181ba6af82b11bab23126bd66

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