PyAIL
PyAIL - Python library using the AIL Rest API
PyAIL is a Python library to access AIL platforms via their REST API.
Install from pip
It is strongly recommended to use a virtual environment
If you want to know more about virtual environments, python has you covered
Install pyail:
pip3 install pyail
Usage
Feeding items to AIL
from pyail import PyAIL
ail_url = 'https://localhost:7000'
ail_key = '<AIL API KEY>'
try:
pyail = PyAIL(ail_url, ail_key, ssl=False)
except Exception as e:
print(e)
sys.exit(0)
data = 'my item content'
metadata = {}
source = '<FEEDER NAME>'
source_uuid = '<feeder UUID v4>'
pyail.feed_json_item(data, metadata, source, source_uuid)
Release files for pyail 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyail-0.0.4.tar.gz | 5.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyail-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.9 kB
Release files / pyail-0.0.4.tar.gz
| Download URL | pyail-0.0.4.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f4a13053f5f719003c41d8c4812ecc4eaa1e01432d6a95c032a222e6ca82663e
|
|
BLAKE2b-256 checksum How to use checksums |
6ba295d921701c1be9d7ce15d5a08646b98b14e82ba92042baa90cf78ca17e34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.8.10 Linux/5.15.0-76-generic
|
Release files / pyail-0.0.4-py3-none-any.whl
| Download URL | pyail-0.0.4-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
861d8fb8219c1dfd07bf48de53bb3793c9f053de2357db58a4a86e744d0706fe
|
|
BLAKE2b-256 checksum How to use checksums |
19cef6d2b42d4d773a2249880ac05411a473564e40e9e2805fb3c613f9bb004e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.8.10 Linux/5.15.0-76-generic
|