Small wrapper for HexWay Hive API
Project description
Hexway Hive API
Unofficial flexible library for HexWay Hive REST API.
Tested on HexWay Hive 0.65.6
Installation
pip install hexway-hive-api
Dependencies
- pydantic ~= 2.4
- requests ~= 2.31.0
- aiohttp ~= 3.9.0
Usage
Synchronous client
from hexway_hive_api import RestClient
def main() -> None:
auth = {
"server": "https://demohive.hexway.io/",
"username": "someuser",
"password": "somepassword",
}
with RestClient().connection(**auth) as client:
projects = client.get_projects().get("items")
client.update_project(project_id=1, fields={"name": "New Project Name"})
if __name__ == "__main__":
main()
Asynchronous client
import asyncio
from hexway_hive_api import AsyncRestClient
async def main() -> None:
auth = {
"server": "https://demohive.hexway.io/",
"username": "someuser",
"password": "somepassword",
}
async with AsyncRestClient().connection(**auth) as client:
projects = (await client.get_projects()).get("items")
await client.update_project(project_id=1, fields={"name": "New Project Name"})
asyncio.run(main())
TLS configuration
AsyncHTTPClient accepts an optional ssl context in its constructor or
through :meth:update_params. This context will be passed to all requests if no
ssl argument is provided explicitly. Verification of server certificates can
be toggled via the verify_ssl flag or verify parameter in
:meth:update_params and individual request methods. Disabling verification will
still keep TLS encryption enabled. AsyncRestClient.connect also respects the
verify / verify_ssl options when establishing the session.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hexway_hive_api-0.2.14.tar.gz.
File metadata
- Download URL: hexway_hive_api-0.2.14.tar.gz
- Upload date:
- Size: 15.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
408e8078c76f474e2cc3eebf07cf5216b1022281ac2f4bed9283df33862e9fd5
|
|
| MD5 |
7fc758889cb3328ff96c672ba1c76ac3
|
|
| BLAKE2b-256 |
da98362187de281bba7c9bb42d16bccc1930de3bebbb357694c23590400cbe6a
|
File details
Details for the file hexway_hive_api-0.2.14-py3-none-any.whl.
File metadata
- Download URL: hexway_hive_api-0.2.14-py3-none-any.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
291131c5ba577aa8094b19f6015e70e25d55b70d3a8cc41421708ae9fb18f81a
|
|
| MD5 |
a44191198506721342faa36f02f9bb99
|
|
| BLAKE2b-256 |
28896b28c09c28e6939443ccf28498ed774e1520de89123b35b944ba2a542cb7
|