Skip to main content

No project description provided

Project description

PyAIL

Python 3.6

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)

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

pyail-0.0.4.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

pyail-0.0.4-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file pyail-0.0.4.tar.gz.

File metadata

  • Download URL: pyail-0.0.4.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.8.10 Linux/5.15.0-76-generic

File hashes

Hashes for pyail-0.0.4.tar.gz
Algorithm Hash digest
SHA256 f4a13053f5f719003c41d8c4812ecc4eaa1e01432d6a95c032a222e6ca82663e
MD5 a00152857f76f2b0810ff2ba5dc00732
BLAKE2b-256 6ba295d921701c1be9d7ce15d5a08646b98b14e82ba92042baa90cf78ca17e34

See more details on using hashes here.

File details

Details for the file pyail-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: pyail-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.8.10 Linux/5.15.0-76-generic

File hashes

Hashes for pyail-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 861d8fb8219c1dfd07bf48de53bb3793c9f053de2357db58a4a86e744d0706fe
MD5 3c5b0d830960890b0991b2eef22bc9b5
BLAKE2b-256 19cef6d2b42d4d773a2249880ac05411a473564e40e9e2805fb3c613f9bb004e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page