stronglib
stronglib is an Apache2 licensed Python library for the strongarm.io API.
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)
# list just blacklisted domains
for domain in strongarm.Domain.filter(statuses=strongarm.Domain.BLACKLISTED)
# create a new blackholed domain
domain = strongarm.Domain.create(name='example.com')
# create a new whitelisted domain
domain = strongarm.Domain.create(name='my-company.com',
status=strongarm.Domain.WHITELISTED,
description='Our Company Website')
# delete a blackholed domain
domain.delete()
development
In order to develop stronglib you must install the requirements files.
pip install -r requirements.txt
Use pytest to run the test suite:
py.test
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.
Metadata
Release files for stronglib 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stronglib-0.3.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for stronglib-0.3.0-py2.py3-none-any.whl |
Release files / stronglib-0.3.0-py2.py3-none-any.whl
| Download URL | stronglib-0.3.0-py2.py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
0639deed35c5bf32c7dbb83260e0f903ba456c4664386cac158349a07d62eb69
|
|
BLAKE2b-256 checksum How to use checksums |
d54af1d68586427e3ca1eb3e36d4570970efbb1721930ed326a8303e43c9ff84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.15
|
Security for stronglib 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.