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

Uploaded Source

Built Distribution

pyail-0.0.7-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyail-0.0.7.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.5.0-35-generic

File hashes

Hashes for pyail-0.0.7.tar.gz
Algorithm Hash digest
SHA256 1ce31607d4823182a118d2597a562808bfd53ef038311cb9137a6789daea103a
MD5 d4668561270a4d14b1ceae544e0b78bc
BLAKE2b-256 30c3cb8bcd9ec68d604f66b99c46ed1b40f7c1ae2db88d00f4fb7e6b75516de7

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pyail-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 15ac6161759d6df6842f0d21698c2ca88416118a8daccd3818ba251c5144cd12
MD5 89e33e2f1a00c040f1c50ecdad3911c1
BLAKE2b-256 248f42d9620991d12aa196d8f9e4f76d15942cc93ac66453a94538eb2e88f2c7

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