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,
...
}
Release files for hexpy 0.7.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hexpy-0.7.3.tar.gz | 378.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hexpy-0.7.3-py36-none-any.whl | Python 3.6 | none | any | Details |
Total release size: 413.3 kB
Release files / hexpy-0.7.3.tar.gz
| Download URL | hexpy-0.7.3.tar.gz |
|---|---|
| Size | 378.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd6e9ea62008573d24a9f0d93822f405464f3f776742112f19e43566d8845668
|
|
BLAKE2b-256 checksum How to use checksums |
42a437f0d96da70351067756a8cf66a6217e86ed9c798319be83f0d8c55355f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / hexpy-0.7.3-py36-none-any.whl
| Download URL | hexpy-0.7.3-py36-none-any.whl |
|---|---|
| Size | 34.8 kB |
| Tags | Python 3.6 |
|
SHA-256 checksum How to use checksums |
3d34e6440cebe9d9a2dd9a52a63fce46db1dff901bc086dd49a113a52c977063
|
|
BLAKE2b-256 checksum How to use checksums |
0ddc14345a5e2a141c26fdf8db2a05eadf801a7ed90da83b999eb6afcf2d11c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|