Skip to main content

A Python library for STRONGARM API

Project description

stronglib is an Apache2 licensed Python library for the STRONGARM API.

https://travis-ci.org/percipient/stronglib.svg?branch=master https://coveralls.io/repos/percipient/stronglib/badge.svg?branch=master

features

  • token authentication

  • get, create, and delete blackholed domains

installation

The latest release can be installed from PyPI:

$ pip install --upgrade stronglib

The latest development version can be installed directly from GitHub:

$ pip install --upgrade https://github.com/percipient/stronglib/tarball/master

usage

import strongarm

# token authentication
strongarm.api_key = 'your_api_token'

# get (ie, search) a single Domain
domain = strongarm.Domain.get('example.com')
print(domain.name)

# list all blackholed domains
for domain in strongarm.Domain.all():
    print(domain.name)

# create a new blackholed domain
domain = strongarm.Domain.create(name='example.com')

# delete a blackholed domain
domain.delete()

contribute

  1. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.

  2. If you feel uncomfortable or uncertain about an issue or your changes, feel free to email support@percipientnetworks.com and we will happily help you.

  3. Fork the repository on GitHub to start making your changes to the master branch (or branch off of it).

  4. Write a test which shows that the bug was fixed or that the feature works as expected.

  5. Send a pull request and bug the maintainer until it gets merged and published. :) Make sure to add yourself to AUTHORS.

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

stronglib-0.1.1.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

stronglib-0.1.1-py2.py3-none-any.whl (8.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file stronglib-0.1.1.tar.gz.

File metadata

  • Download URL: stronglib-0.1.1.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for stronglib-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0f1d124a367a2b1dfb35d6b83b227636635015f1ac945faa57e3e7b4f6c7c2e3
MD5 345403fec5fd4d21eb79790bbc12fe7b
BLAKE2b-256 81a82314aef4525095df77b4edd931e469b0e5fc275cc95c41468d931df7f117

See more details on using hashes here.

File details

Details for the file stronglib-0.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for stronglib-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 cf0475cc30a35ef5703dae2e9b02ef888b985ab3fae978b0e9bef6f8817f4e0d
MD5 dc568e79c57637f65c31a9314e5bffca
BLAKE2b-256 3f163163a83fd6e4df0e880b5078a176361418b41b0b8b0bd5d9d0e40cb62ea3

See more details on using hashes here.

Supported by

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