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.6.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.6-py3-none-any.whl
(19.9 kB
view details)
File details
Details for the file a5_client-0.1.6.tar.gz.
File metadata
- Download URL: a5_client-0.1.6.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 |
7df3865c1fc6fb02df10187cfaa5a1fefd36216aa55a92c8e330cd3734b4356a
|
|
| MD5 |
d8f273085829dc5c06da709f88f3d60d
|
|
| BLAKE2b-256 |
3e42ead1c7b7b2564e6cc74b2d29fc850b892fca4bb38e143b5827dbc927ea36
|
File details
Details for the file a5_client-0.1.6-py3-none-any.whl.
File metadata
- Download URL: a5_client-0.1.6-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 |
baab3befe2f4eb1f021cee14b494f8bdb22fe92de207cf0d745b277c98d9c175
|
|
| MD5 |
f6a45e2e621523ae9e3231263e5fcf12
|
|
| BLAKE2b-256 |
9ac432e97092ea0bdafb6fb3b256bec5162eb06fc02135b99454fd1cd1dc4039
|