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
Close
Hashes for littlebluefox-python-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4120d14584bc7ae9c93276daed63f2bd6dad7e870a2f78698fd5746148298c9b |
|
MD5 | 5aa1ad0c822595a3e3cec7cd8b01c657 |
|
BLAKE2b-256 | 9c1701b598b688427021f444b32e2f2c287dd0e675beae07880d68d2b2186b7e |
Close
Hashes for littlebluefox_python-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 964da7216eb753156df0b7628882083f42bd463faa073cce89d9336a8bbe83ec |
|
MD5 | f4b62e24553fa033b6c1e543b35fb58c |
|
BLAKE2b-256 | 88375e624b30406e85d184119aff3aad46bab632f5813b8e0991f1e7a03e84ad |