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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e8d761cb494c02a28a7c8ee371acd9f9bb28ffb663f6125bd8f8808d1392902
|
|
| MD5 |
99211fd4269459faee4d9e75d4eea814
|
|
| BLAKE2b-256 |
f27a07432612766a1e86e706bbaa87c95561d8078d6dfa11672c287366afa65a
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91eb871f6438d2eb06434c8024a97ee180dc2c760f258707969e582d506ff283
|
|
| MD5 |
5f12029b15ee34521304ccac7d86a6a0
|
|
| BLAKE2b-256 |
7d7ddb124000a393d3ea5c4cd76f4505af29d497fe1a501f4248d84ded4cbcaf
|