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.7.tar.gz
(24.1 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
a5_client-0.1.7-py3-none-any.whl
(19.9 kB
view details)
File details
Details for the file a5_client-0.1.7.tar.gz.
File metadata
- Download URL: a5_client-0.1.7.tar.gz
- Upload date:
- Size: 24.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
363dca2fa7d1f644142dfd6f2c4ae6128e68bf5c1fbe5b900c371ca3886fb382
|
|
| MD5 |
5f18addb46c3a23dfdecd2574e6a63d5
|
|
| BLAKE2b-256 |
185780f61eacb602b8b2a41d9c400dc878985ab1bec50bb7fd4a09b99cd8fbe3
|
File details
Details for the file a5_client-0.1.7-py3-none-any.whl.
File metadata
- Download URL: a5_client-0.1.7-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
228f57a6111508b6903eff129b13b480c1eb95ab5498ea601342ff8e5fc3a03b
|
|
| MD5 |
4d8ae6d8a2e67d07f34c0c318b9335a2
|
|
| BLAKE2b-256 |
9b946fb4cc17c0d2a63127b12d37af037b0ee2aeb95fd044b4c9c5a10d1040aa
|