openagua-client
A very thin wrapper around the OpenAgua web API.
Usage
To use this, you need an API key from OpenAgua. Once you have that, you can supply it from an environment variable called OA_SECRET_KEY or directly as an argument to the client.
Here are two examples demonstrating each approach.
Example 1
In this example, the API key is in the environment variable OA_SECRET_KEY. Note that this may be loaded dynamically using, for example, dot_env
from openagua_client import Client as OA
oa = OA()
network = oa.get_network(77)
Example 2
The key is supplied directly. Note that it is best practice to never hard code secrets. Therefore, that is not done in this example, though technically it could be done. Using environment variables for keys is best practice.
import os
from openagua_client import Client as OA
oa_api_key = os.environ['MY_OPENAGUA_API_KEY']
oa = OA(api_key=oa_api_key)
network = oa.get_network(77)
Release files for openagua-client 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| openagua-client-0.2.3.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| openagua_client-0.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.8 kB
Release files / openagua-client-0.2.3.tar.gz
| Download URL | openagua-client-0.2.3.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f01dfa93343bf081dc4cdaa7c6ba8e83f78663678bd1d2ec3866a8c3f7156e81
|
|
BLAKE2b-256 checksum How to use checksums |
8d5e49489330a246d6fc04427a6ed85fba452c6f1cc5304c9bd8d785d67af948
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / openagua_client-0.2.3-py3-none-any.whl
| Download URL | openagua_client-0.2.3-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
333a27d2ecf7a028ee5d40371b68a68245ee02c0408735d4d902f38eefe51c1e
|
|
BLAKE2b-256 checksum How to use checksums |
16ebb0ebddda9e5ab888c7cac302f09f4d9564177294c7dbcd579f24219166ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|