Skip to content

Cur1iosity/hexway-hive-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Unofficial python wrapper for Hexway Hive API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages