Python package for the Ion Channel API
Project description
PyIonic is a Python library to interact with Ion Channel’s API.
Example
Install PyIonic:
pip install pyionic
Set the IONCHANNEL_SECRET_KEY:
export IONCHANNEL_SECRET_KEY=####IONCHANNEL_SECRET_KEY####
Write code:
from pyionic import core
vuln = core.Vulnerability()
vulnerabilities = vuln.get_vulnerabilities('python', '3.4')
print('%s total vulnerabilities found.' % vulnerabilities['meta']['total_count'])
Run code:
python test.py
7 total vulnerabilities found.
Tests
To setup tests you must first export a valid token for the pyionic test team:
export IONCHANNEL_SECRET_KEY=####IONCHANNEL_SECRET_KEY####
Then run:
pipenv run python setup.py test
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
pyionic-0.0.4.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for pyionic-0.0.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd8b3ca0152eed0c731523d4b6a89fa3c8e0747cb888b831daf4f01f01a1973e |
|
MD5 | 62480cb01899de83de9f927cc411aae7 |
|
BLAKE2b-256 | fb9f46dc0eae81bbf30264d73a77fe741645de89cfc74e4ef3c0b01d0941daad |