Unofficial flexible library for HexWay Hive Rest API.
pip install hexway-hive-api
- pydantic ~= 2.4
- requests ~= 2.31.0
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()