Skip to main content

The Python Agent for cyberchief-bolt

Project description

logo

Cyberchief Bolt API Security

Secure Your API.

Installation

Currently Cyberchief Bolt's Python Agent supports 2 servers:

  • Django
  • Flask

It can be installed from pypi by running :

pip install cyberchief-bolt

Configuration

Django

Once installed, Bolt's middleware can be added by modifying middlewares list (in the projects settings.py) like so:

MIDDLEWARE = [
    ...,
    "bolt.django.BoltDjango",
] 

and configuring a BOLT_CONFIG attribute in the projects settings.py like this :

BOLT_CONFIG = {
    "API_KEY": "<YOUR_BOLT_API_KEY>",
    "BOLT_HOST": "<YOUR_BOLT_COLLECTOR_URL>"
}

BOLT_CONFIG can take an optional key-value pair representing the max number of workers for communicating with Bolt.

Flask

Once installed, Bolt middleware can be added simply like:

from flask import Flask

...
from bolt.flask import BoltFlask

app = Flask(__name__)
BoltFlask(app, "<YOUR_BOLT_COLLECTOR_URL>", "<YOUR_BOLT_API_KEY>")

The Flask Middleware takes the flask app, Bolt collector url, and the Bolt API Key as parameters.

BoltFlask(app, "<YOUR_BOLT_COLLECTOR_URL>", "<YOUR_BOLT_API_KEY>")

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

cyberchief-bolt-0.0.18.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cyberchief_bolt-0.0.18-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file cyberchief-bolt-0.0.18.tar.gz.

File metadata

  • Download URL: cyberchief-bolt-0.0.18.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for cyberchief-bolt-0.0.18.tar.gz
Algorithm Hash digest
SHA256 90949bad1421e3b42ba06ed3a015d2278adca612d6cef7e2a0d2fdd3643cde6f
MD5 82353ba91553229c544c6aa34a068702
BLAKE2b-256 b53db73237c637c8dc7d466fe3f1efbac7827e73de2584307ca6e4d777a7c7cc

See more details on using hashes here.

File details

Details for the file cyberchief_bolt-0.0.18-py3-none-any.whl.

File metadata

File hashes

Hashes for cyberchief_bolt-0.0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 7e2f99ccd170c081bc24846589e70a46d6d6be8d0ee77b94d0a9e2d544fc90b6
MD5 4cf622c461861213e9472adb0d627071
BLAKE2b-256 237f3aa91e22af4c2404d81ec069f01a8bcf85e0d9cc749b3237586b5d8e03e4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page