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

Uploaded Source

Built Distribution

pyail-0.0.8-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyail-0.0.8.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.8.0-45-generic

File hashes

Hashes for pyail-0.0.8.tar.gz
Algorithm Hash digest
SHA256 23eaac7e4c45846e56bb46f32f4f267956b15ccaf80330e815e6e570cfb51c11
MD5 954c575ea0ecfda06f7d94e91afc76ed
BLAKE2b-256 39b2f5ef1b2f9fe8ac405a452c877d7eb25d9d7514c291e40edebb477e3e3c7d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pyail-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 d8b9ba64e05983f6d01658557ff5ef8162723b552d2b80d66380d8eb71e1344f
MD5 8cb08729c0f5da87c26a862f6192e932
BLAKE2b-256 6145f35f98285929bc353c43b0f4cb8b0609b7ced03352bab16c1802d0a35744

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