Skip to main content

Small wrapper for HexWay Hive API

Project description

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()

Project details


Download files

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

Source Distribution

hw_hivepy-0.3.1.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

hw_hivepy-0.3.1-py3-none-any.whl (31.2 kB view details)

Uploaded Python 3

File details

Details for the file hw_hivepy-0.3.1.tar.gz.

File metadata

  • Download URL: hw_hivepy-0.3.1.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for hw_hivepy-0.3.1.tar.gz
Algorithm Hash digest
SHA256 472057c747aa8cba227ce808a5dcc04e82164f0d31602129923128ce5a32fe5d
MD5 f438dcd571a89eacc7d1f0155feeeb80
BLAKE2b-256 c46c07f8790fc0f0644bc878d9abca17135cdee7e5272f09d3e1be3ff0197fa8

See more details on using hashes here.

File details

Details for the file hw_hivepy-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: hw_hivepy-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 31.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for hw_hivepy-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fa4d41c718be7e397bd56a3ed6c23f952ae8825c13a0be9dde8e88e01abd5377
MD5 99bddbc97361549e638f903948a1d294
BLAKE2b-256 5393a4b73943f6a99c07e02875bfe94facf7bc5644812e799e2a7119f7a4d2b1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page