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.5.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.5-py3-none-any.whl
(19.9 kB
view details)
File details
Details for the file a5-client-0.1.5.tar.gz.
File metadata
- Download URL: a5-client-0.1.5.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 |
d2be54ef6201e47379c687eb4bf85941cd408511ba58085237339c37388079b0
|
|
| MD5 |
777e413512d6728ddfb0c29d23ee374f
|
|
| BLAKE2b-256 |
742ffb5883f17d944ea274238f678fc5fdc8b387bf2a7f7ad16018ba996abcd3
|
File details
Details for the file a5_client-0.1.5-py3-none-any.whl.
File metadata
- Download URL: a5_client-0.1.5-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 |
570dd7828045e404c7c56b9d81035f1d7109d233b781ec11bb5f6bf96ff06818
|
|
| MD5 |
abb40d5fc98cd16afd6cd7699eee2182
|
|
| BLAKE2b-256 |
673d1176f21639dc69be7a64528830c0a4f40d436a0867c0d4a7d709bde841b6
|