Library to interact with AllOnIA's API
Project description
Public Project AllOnIARest
Implements several client objects to access easily AllOnIA's public APIs (provided you have a valid token of course).
from alloniarest import Client
url = ...
token_id = ...
token_secret = ...
client = Client(
url,
user_token={
"id": token_id, "token": token_secret
},
trace=False
)
response = client.request(
"GET",
"/some/route?var=value"
)
Available APIs
You can manualy connect to any AllOnIA API using the example above, but some functions are readily available through extra requirements, that you can install like this:
pip install alloniarest[extra]
Here is the list of available extras:
- external_api_keys: provides the method
get_external_api_key_valuethat returns an external API key's secret based on its name:
from alloniarest.external_api_keys import get_external_api_key_value
secret = get_external_api_key_value("key_name")
That will suppose you have set the USER_TOKEN_ID, USER_TOKEN_SECRET,
PROJECTS_API_INTERNAL_URL and TRACK_ID environment variables.
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
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
File details
Details for the file alloniarest-1.2.1.tar.gz.
File metadata
- Download URL: alloniarest-1.2.1.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Linux/5.4.0-148-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b4dbb1586aa98dfb4dc39ee210e6bbc9e6220889fe3f1897dabe041531b874f
|
|
| MD5 |
751248cb690ff3c890ef26a1b256f718
|
|
| BLAKE2b-256 |
f34a54f5767d942adea29d1897919886485f19d2935f3e04a8ab66ec8c601926
|
File details
Details for the file alloniarest-1.2.1-py3-none-any.whl.
File metadata
- Download URL: alloniarest-1.2.1-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Linux/5.4.0-148-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4e34b4da1923c959de9b23e4c9b3a70ec02bb232741baed31ceb57417f73512
|
|
| MD5 |
be20bb293b4b9fc7549867ec25858028
|
|
| BLAKE2b-256 |
21bd806725e322f24b73108a11a83a2076737080c4a5f4ecc8940f7a8dcfe544
|