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.9.tar.gz (24.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

a5_client-0.1.9.0-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

a5_client-0.1.9-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: a5_client-0.1.9.tar.gz
  • Upload date:
  • Size: 24.2 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.9.tar.gz
Algorithm Hash digest
SHA256 2c4a883535aa243071d717de84b346400ab49b312776614f563ec4a0bb1abebe
MD5 cb8fc3eb15e358d21d9474dcde5d108b
BLAKE2b-256 09a745ee5003dcb5f2919ca19c5a2232a27e058d1a809e8f1c672f0d546bd814

See more details on using hashes here.

File details

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

File metadata

  • Download URL: a5_client-0.1.9.0-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.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a6d13797076c92ac082d31033087c9fe1a78954363541e8426a70d7ff916c6b0
MD5 8115b24d8fb9c6d229986a1efcc38f97
BLAKE2b-256 d316b2e6b1e1e965a76639f6c6ad14966f61424afca8f58d068078d319582857

See more details on using hashes here.

File details

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

File metadata

  • Download URL: a5_client-0.1.9-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

Hashes for a5_client-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 a77c946c448068238964253956c98fc37b21ca667bf20751cd6efd3f56de2de2
MD5 961bcddfe07f3d027ecb412b9b4e33a5
BLAKE2b-256 0926096e79c3e447bd1fa24658d8dc794631c94f330328ff576ab5638fa93317

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