Skip to main content

Run Tests PyPI Hexway

HivePy

Unofficial flexible library for HexWay Hive Rest API.

Tested on HexWay Hive 0.62.8

Installation

pip install hw-hivepy

Dependencies

  • pydantic ~= 2.4
  • requests ~= 2.31.0

Usage

API work modes

There are three available modes for the HiveApi:

  • (json) returns raw json response
  • (raw_items) returns raw json response with items only
  • (object [default]) returns parsed json response as object

Simple HiveClient

from hivepy import HiveApi


def main() -> None:
    """Main function."""
    auth = {
        'url': 'http://127.0.0.1',
        'username': 'user',
        'password': 'password',
    }

    hive: HiveApi = HiveApi().connect(**auth)
    # hive.mode = 'json'  # Set mode
    
    # Getting projects and its issues
    hive.get_projects()
    hive.get_project(project_id='some-project-id')
    hive.get_issues(project_id='some-project-id')

    # Download binary file
    hive.get_file(project_id='some-project-id', file_id='some-file-id')


if __name__ == "__main__":
    main()

Metadata

Release files for hw-hivepy 0.3.1

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

Source distribution (sdist)

Source distribution for hw-hivepy 0.3.1
File Size Uploaded
hw_hivepy-0.3.1.tar.gz 17.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hw-hivepy 0.3.1
File Interpreter ABI Platform
hw_hivepy-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 48.9 kB

Release files / hw_hivepy-0.3.1.tar.gz

Download URL hw_hivepy-0.3.1.tar.gz
Size 17.6 kB
Tags Source
SHA-256 checksum
How to use checksums
472057c747aa8cba227ce808a5dcc04e82164f0d31602129923128ce5a32fe5d
BLAKE2b-256 checksum
How to use checksums
c46c07f8790fc0f0644bc878d9abca17135cdee7e5272f09d3e1be3ff0197fa8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release files / hw_hivepy-0.3.1-py3-none-any.whl

Download URL hw_hivepy-0.3.1-py3-none-any.whl
Size 31.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fa4d41c718be7e397bd56a3ed6c23f952ae8825c13a0be9dde8e88e01abd5377
BLAKE2b-256 checksum
How to use checksums
5393a4b73943f6a99c07e02875bfe94facf7bc5644812e799e2a7119f7a4d2b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3

2 release files

0.1.8

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.2

2 release files

0.1.1

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