No project description provided
Project description
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)
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.6.tar.gz
(5.9 kB
view details)
Built Distribution
pyail-0.0.6-py3-none-any.whl
(7.2 kB
view details)
File details
Details for the file pyail-0.0.6.tar.gz
.
File metadata
- Download URL: pyail-0.0.6.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.5.0-14-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd6d3e74ef1259241c1e4056165324a92729d696531b5d486ad25c3cf503a694 |
|
MD5 | 4ef88e33e298a19bbcd1810feed09dea |
|
BLAKE2b-256 | 2c257d4195909aa2b78534c8e49499bff55aabd41e8e2f8cf2c61da3750ac6a7 |
File details
Details for the file pyail-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: pyail-0.0.6-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.5.0-14-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75bbfd8253b4d66bb94eed39b69ffdd59bcebad164d8aa613c5db52855f515ce |
|
MD5 | 045bf0cf88de225b939d43d9c6c17028 |
|
BLAKE2b-256 | d5c70e0fae0da1eb849f65d4c4d7fa546e03649c26ceadc15aa077ee22ce896b |