Skip to main content

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_value that 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.

Release files for alloniarest 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for alloniarest 1.3.0
File Size Uploaded
alloniarest-1.3.0.tar.gz 8.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for alloniarest 1.3.0
File Interpreter ABI Platform
alloniarest-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.9 kB

Release files / alloniarest-1.3.0.tar.gz

Download URL alloniarest-1.3.0.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2e9af5e6eb2cc361d84d6644be931210904b98f31455599188b7474cb73d41fb
BLAKE2b-256 checksum
How to use checksums
3baa49491c767ed54695902186803021a46e8c1acfe885d072463d08e6b47c83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.12.1 Linux/5.4.0-148-generic

Release files / alloniarest-1.3.0-py3-none-any.whl

Download URL alloniarest-1.3.0-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
98402a670893d66d6dd51e623b1bbb4510c5b2172a25f296083cd24b2082c5ea
BLAKE2b-256 checksum
How to use checksums
5bbaa7bc52a762a2efa5683914a11e850ae18c30a245c44e5d3364bebd153f49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.12.1 Linux/5.4.0-148-generic

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page