Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for littlebluefox-python, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size littlebluefox_python-1.0.2-py3-none-any.whl (2.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size littlebluefox-python-1.0.2.tar.gz (2.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page