A Python library for STRONGARM API
Project description
stronglib is an Apache2 licensed Python library for the STRONGARM API.
features
token authentication
get, create, and delete blackholed domains
installation
stronglib is still in beta.
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
Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.
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.
Fork the repository on GitHub to start making your changes to the master branch (or branch off of it).
Write a test which shows that the bug was fixed or that the feature works as expected.
Send a pull request and bug the maintainer until it gets merged and published. :) Make sure to add yourself to AUTHORS.
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
File details
Details for the file stronglib-0.1.0.tar.gz
.
File metadata
- Download URL: stronglib-0.1.0.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26d256a88b7225bac4d24029f69cc9ffddb1436b9fbf0992b906e0471e0e6c5f |
|
MD5 | a231c1339394e7421dec2ac353cf99db |
|
BLAKE2b-256 | 5c0660977513f32b940aba694c4ad06fecd85359c385f070287a2cc5b2bddeff |
File details
Details for the file stronglib-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: stronglib-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 360a206fabdec0ad7b2406729fb61e4774ddd3068956a5f0db4508449e092883 |
|
MD5 | bc802a386a1d220fbb552b9986becf86 |
|
BLAKE2b-256 | bd87ca5eb5ac319af79770190175ab62c234ecdbcd20f1f9fa3c97c9661c0b9b |