Skip to main content

Armorblox SDK for Python

Project description

Armorblox logo

Armorblox Python SDK (Alpha)

PyPI version Apache-2 License

This is an alpha version of the SDK with limited documentation and no support.

Requirements

Python 3.5+

Installation

pip install armorblox-sdk

Usage

from armorblox import client

# Create an API client for your tenant
c = client.Client(api_key='your-api-key-here', instance_name='yourtenantname')

# Fetch a list of threats
threat_incidents = c.threats.list()

# Fetch a specific threat
incident = c.threats.get(44006)


# Fetch a list of abuse incidents
abuse_incidents = c.abuse_incidents.list()

# Fetch a specific abuse incident
abuse_incident = c.abuse_incidents.get(44200)


# Fetch a list of DLP incidents
dlp_incidents = c.dlp_incidents.list()

# Fetch a specific DLP incident
dlp_incident = c.dlp_incidents.get(44010)

Contributing

  • Install Poetry
  • Clone the SDK repo & cd into it
git clone https://github.com/armorblox/armorblox-python-sdk
cd armorblox-python-sdk
  • Run poetry install to install the dependencies
  • Run tox to run the tests

Publishing

TestPyPI

poetry config repositories.test-pypi https://test.pypi.org/legacy/
poetry config pypi-token.test-pypi <your-TestPyPI-token>
poetry publish --build -r test-pypi

Use

pip install --index-url https://test.pypi.org/simple/ --no-deps armorblox-sdk

to make sure the installation works correctly.

PyPI

poetry config pypi-token.pypi <your-PyPI-token>
poetry publish --build

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

armorblox-sdk-0.1.2.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

armorblox_sdk-0.1.2-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file armorblox-sdk-0.1.2.tar.gz.

File metadata

  • Download URL: armorblox-sdk-0.1.2.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.5 Darwin/21.5.0

File hashes

Hashes for armorblox-sdk-0.1.2.tar.gz
Algorithm Hash digest
SHA256 bf3bdbeead56c7566f77c9fcd92f81b3193c1b172de204a7542e4366aec575c6
MD5 182ae330bec8042b4fba788a22293b6a
BLAKE2b-256 311737c56a51b26805a1571685dfb38587d828e917631368d4f7f61dcff16ebb

See more details on using hashes here.

File details

Details for the file armorblox_sdk-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: armorblox_sdk-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.5 Darwin/21.5.0

File hashes

Hashes for armorblox_sdk-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4aa65c67a71c920c6c708d64aa7ebc2cd8045feb983e18a26f54ebe952d7fb9c
MD5 5dc16092b5f3d367ab7afb6539523451
BLAKE2b-256 ee79480655f90c5a5ccbf747e40452bb2df1b0c950483b4da22cd94e291e8136

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