Skip to main content

Run Tests PyPI Hexway

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.

Metadata

Release files for hexway-hive-api 0.2.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hexway-hive-api 0.2.14
File Size Uploaded
hexway_hive_api-0.2.14.tar.gz 15.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hexway-hive-api 0.2.14
File Interpreter ABI Platform
hexway_hive_api-0.2.14-py3-none-any.whl Python 3 none any Details

Total release size: 33.2 kB

Release files / hexway_hive_api-0.2.14.tar.gz

Download URL hexway_hive_api-0.2.14.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
408e8078c76f474e2cc3eebf07cf5216b1022281ac2f4bed9283df33862e9fd5
BLAKE2b-256 checksum
How to use checksums
da98362187de281bba7c9bb42d16bccc1930de3bebbb357694c23590400cbe6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.23

Release files / hexway_hive_api-0.2.14-py3-none-any.whl

Download URL hexway_hive_api-0.2.14-py3-none-any.whl
Size 18.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
291131c5ba577aa8094b19f6015e70e25d55b70d3a8cc41421708ae9fb18f81a
BLAKE2b-256 checksum
How to use checksums
28896b28c09c28e6939443ccf28498ed774e1520de89123b35b944ba2a542cb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.23

Release history Release notifications | RSS feed

This release

0.2.14 This release

2 release files

0.2.13

2 release files

0.2.12

2 release files

0.2.10

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page