Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.2 KB

README.md

File metadata and controls

49 lines (34 loc) · 1.2 KB

Run Tests PyPI Hexway

Hexway Hive API

Unofficial flexible library for HexWay Hive Rest API.

Tested on HexWay Hive 0.62.8

Installation

pip install hexway-hive-api

Dependencies

  • pydantic ~= 2.4
  • requests ~= 2.31.0

Usage

Simple HiveClient

from hexway_hive_api import RestClient


def main() -> None:
    auth = {
        'server': 'https://demohive.hexway.io/',
        'username': 'someuser',
        'password': 'somepassword',
        'proxies': {
            'http': 'http://127.0.0.1:8080',
            'https': 'http://127.0.0.1:8080',
        }
    }
    client = RestClient(**auth)

    client.authenticate()
    projects: list = client.get_projects().get('items')
    
    
    client.update_project(project_id=1, fields={'name': 'New Project Name'})
    
if __name__ == "__main__":
    main()