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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hexway_hive_api-0.2.14.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hexway_hive_api-0.2.14-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

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

Hashes for hexway_hive_api-0.2.14.tar.gz
Algorithm Hash digest
SHA256 408e8078c76f474e2cc3eebf07cf5216b1022281ac2f4bed9283df33862e9fd5
MD5 7fc758889cb3328ff96c672ba1c76ac3
BLAKE2b-256 da98362187de281bba7c9bb42d16bccc1930de3bebbb357694c23590400cbe6a

See more details on using hashes here.

File details

Details for the file hexway_hive_api-0.2.14-py3-none-any.whl.

File metadata

File hashes

Hashes for hexway_hive_api-0.2.14-py3-none-any.whl
Algorithm Hash digest
SHA256 291131c5ba577aa8094b19f6015e70e25d55b70d3a8cc41421708ae9fb18f81a
MD5 a44191198506721342faa36f02f9bb99
BLAKE2b-256 28896b28c09c28e6939443ccf28498ed774e1520de89123b35b944ba2a542cb7

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.14 This release

2 files

0.2.13

2 files

0.2.12

2 files

0.2.10

2 files

0.2.9

2 files

0.2.8

2 files

0.2.7

2 files

0.2.6

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page