Official python client for LittleBlueFox.io API
Project description
LittleBlueFox pip package (python)
Push your security events on the LittleBlueFox.io API.
Installation
$ pip3 install littlebluefox-python
Usage
from littlebluefox import LittleBlueFoxClient
access_token = '...'
lbf_client = LittleBlueFoxClient(access_token)
event = {
'event_type': 'authentication_success',
'uref': '42',
'email': 'demo@demo.com',
'remote_ip': '...',
'http_headers': {
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.3 Safari/605.1.15',
},
}
try:
lbf_client.push(event)
except Exception as err:
print('Error: {}'.format(err))
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/LittleBlueFox/littlebluefox-python.
$ python3 setup.py sdist bdist_wheel
$ python3 -m twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file littlebluefox-python-1.0.2.tar.gz
.
File metadata
- Download URL: littlebluefox-python-1.0.2.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
080fd4703772cfa99fe1e5e980369a451f8a4e014c84fdbd4e5bb6ab5921cbfb
|
|
MD5 |
634ceda8625d9192b5e3535de847b642
|
|
BLAKE2b-256 |
3e2af32bc2f4ed816ec650c9a6f1dee7d4123e7989cbe04bf2cb29c96e6a3656
|
File details
Details for the file littlebluefox_python-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: littlebluefox_python-1.0.2-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
27dfd4e2b5da8ecb056ea662c3a96b0158b2746879c2e9ac04824789e6c46151
|
|
MD5 |
d73b463c48f128abe88549e08613ef86
|
|
BLAKE2b-256 |
8e05da1dc664dbc827484da54739e99165f7b71b72081e73d344cee090c8d734
|