Python Client for Crimson Hexagon API
Project description
A Python Client for the Crimson Hexagon API
hexpy is a simple python package for working with the Crimson Hexagon API
Project Homepage
Documentation: hexpy
Source Code: Github
Why use this client?
- Easily and securely manage account authentication.
- Automatically abide by Crimson Hexagon's rate limits.
- Automatically convert python data to/from JSON strings.
- Automatically check requests success.
- Make it easy to do common tasks like exporting and uploading content.
- Easily create shell scripts to work with API data.
Requirements
hexpy is compatible with Python 3.6 and higher
Installation
To install the most recent stable release run pip install hexpy
.
To install the latest version:
$ git clone https://github.com/sullivancolin/hexpy.git
$ pip install hexpy/
Quick Start
>>> from hexpy import HexpySession, MonitorAPI
>>> session = HexpySession.login(username="user@email.com", password="crimson_login")
>>> monitor_results_client = MonitorAPI(session)
>>> monitor_results_client.details(monitor_id)
{'categories': [{'hidden': False,
'id': 6054759055,
'name': 'Basic Positive',
'sortOrder': 100,
'status': 'red',
'trainingDocs': 0},
{'hidden': False,
'id': 6054759059,
'name': 'Basic Neutral',
'sortOrder': 101,
'status': 'red',
'trainingDocs': 0},
{'hidden': False,
'id': 6054759051,
'name': 'Basic Negative',
'sortOrder': 102,
...
}
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
hexpy-0.7.3.tar.gz
(378.6 kB
view details)
Built Distribution
hexpy-0.7.3-py36-none-any.whl
(34.8 kB
view details)
File details
Details for the file hexpy-0.7.3.tar.gz
.
File metadata
- Download URL: hexpy-0.7.3.tar.gz
- Upload date:
- Size: 378.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd6e9ea62008573d24a9f0d93822f405464f3f776742112f19e43566d8845668 |
|
MD5 | 6be4f193d6b11e2883a86c06503f4999 |
|
BLAKE2b-256 | 42a437f0d96da70351067756a8cf66a6217e86ed9c798319be83f0d8c55355f9 |
File details
Details for the file hexpy-0.7.3-py36-none-any.whl
.
File metadata
- Download URL: hexpy-0.7.3-py36-none-any.whl
- Upload date:
- Size: 34.8 kB
- Tags: Python 3.6
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d34e6440cebe9d9a2dd9a52a63fce46db1dff901bc086dd49a113a52c977063 |
|
MD5 | 14f2131b155e95b2008e467381af389b |
|
BLAKE2b-256 | 0ddc14345a5e2a141c26fdf8db2a05eadf801a7ed90da83b999eb6afcf2d11c4 |