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)

License

This software is licensed under BSD 3-Clause License

Copyright (C) 2020-2023 CIRCL - Computer Incident Response Center Luxembourg

Copyright (C) 2020-2023 Aurelien Thirion

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.5.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

pyail-0.0.5-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyail-0.0.5.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-37-generic

File hashes

Hashes for pyail-0.0.5.tar.gz
Algorithm Hash digest
SHA256 079c9ca0ab47c48927b2e143cb08ec28d5e61af9d277995d77a2dcc831fa616e
MD5 ce676a628adf7a95187b3aa74f10db5d
BLAKE2b-256 62d5b510c6541f597b8f30c36585368957fa5bb4dc8b027ad2c96401317b8c00

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyail-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-37-generic

File hashes

Hashes for pyail-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b60a8df75f94224cf7d2805a89d785f11ae7e0ac93f1d45d4ab75de212cdc92f
MD5 d84fbee9552ef9c8e99899cee93707c0
BLAKE2b-256 4120e5c8de6b0173877bccddf5d2021ce655bebb9a842fedc0798d5197a6e23a

See more details on using hashes here.

Supported by

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