Skip to main content

Hexway Hive API

Tests PyPI Python License Downloads Last commit

Hexway Hive API is an unofficial Python client for the Hexway Hive REST API. It has an asynchronous client (aiohttp) and a blocking client with exactly the same methods for working with projects, issues, files and users, so you can automate Hive from your own scripts or async applications. The blocking RestClient is the async implementation wrapped with synchronicity: one implementation, two interfaces.

Tested on Hexway Hive 2026.11.1.

Installation

pip install hexway-hive-api

Requires Python 3.11 or newer. Version 0.4.0 dropped Python 3.9 and 3.10, which have reached end of life; use 0.3.1 on those.

Usage

Synchronous client

from hexway_hive_api import RestClient


def main() -> None:
    auth = {
        "server": "https://hive.example.com/",
        "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://hive.example.com/",
        "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())

All methods, their arguments and what Hive returns: docs/methods.md.

TLS configuration

Certificate verification is on by default. verify=False (in the constructor or connect) turns it off explicitly; TLS encryption stays on. cert="client.pem" or cert=("client.crt", "client.key") sets a client certificate. Both work the same for RestClient and AsyncRestClient.

Upgrading from 0.3

0.4 runs both clients on one async implementation. Most scripts keep working; check these points (all changes: CHANGELOG.md):

  • Python 3.11+.
  • RestClient is AsyncRestClient made blocking (no more requests). It now has get_project_pages_metadata and get_project_page_metadata too.
  • Errors: HTTP errors raise HiveRestError (status_code, body, title, detail, ...), network errors TransportError, invalid JSON ProtocolError. All three are ClientErrors, so except ClientError still works. A refused login raises AuthenticationError, an MFA-protected account MfaRequiredError (both RestConnectionErrors). get_users() no longer turns HTTP errors into RestConnectionError. Requests before connect() raise ClientNotConnected. Exceptions of requests (requests.exceptions.ConnectionError, ...) no longer appear: an unreachable server raises RestConnectionError in connect() and TransportError elsewhere.
  • connect() needs both username and password.
  • get_file() always returns bytes, also for JSON files.
  • RestClient().http_client and hexway_hive_api.rest.HTTPClient are gone; rest/error_handler.py (unused) is removed. Extra constructor arguments go to aiohttp.ClientSession; SOCKS proxies are not supported.

Development

pip install -e ".[dev]"
pytest

Tests run without a Hive server. Requests the library sends are checked against the Hive OpenAPI contract in contracts/, which is extracted from the official offline installer. See docs/testing.md for the whole workflow and for what to do when a new Hive version comes out.

API coverage

API coverage by library version

See api_coverage_info/COVERAGE.md for what is covered, by API section, and what is not yet.

License

MIT, see LICENSE.

Metadata

Release files for hexway-hive-api 0.4.0

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.4.0
File Size Uploaded Provenance Actions
hexway_hive_api-0.4.0.tar.gz 46.5 kB With provenance Details for hexway_hive_api-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 74.3 kB

Release files / hexway_hive_api-0.4.0.tar.gz

Download URL hexway_hive_api-0.4.0.tar.gz
Size 46.5 kB
Tags Source
SHA-256 checksum
How to use checksums
656e72cfac070455aeb3484a4671830d828801558edbbcbe1ee38580db98b30e
BLAKE2b-256 checksum
How to use checksums
6a1992dc92ff0982d11bda6f9b7d384fb40d0036b5355ba1493031943e0786b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

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

Download URL hexway_hive_api-0.4.0-py3-none-any.whl
Size 27.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
715ee5acbc82da6f63d3cec2d55143ec9c2e64526724b64ee9c0b2a08e2b3717
BLAKE2b-256 checksum
How to use checksums
5f516dde453a2f1f23a416612290765fc804f97679e5b967d659f2adee3ff275
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Security for hexway-hive-api 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for hexway_hive_api-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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