Metadata-Version: 2.1
Name: hw-hivepy
Version: 0.1.8
Summary: Small wrapper for HexWay Hive API
Home-page: https://github.com/Cur1iosity/hivepy
Author: @Cur1iosity
Author-email: Cur1iosity@protonmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.31.0
Requires-Dist: pydantic>=2.4.0

# HivePy
Small wrapper for [HexWay Hive](https://hexway.io/hive/) Rest API.

## Installation
```bash
pip install hw-hivepy
```

## Dependencies

- pydantic ~= 2.4
- requests ~= 2.31.0

## Usage

```python
from hivepy import Hive


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

    hive: Hive = Hive().connect(**auth)

    # Getting projects and its issues
    hive.get_projects()
    hive.get_projects(project_id='some-project-id')
    hive.get_issues(project_id='some-project-id')

    # Updating issue fields
    hive.update_issue(project_id='some-project-id', issue_id='some-issue-id', status='ready')

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


if __name__ == "__main__":
    main()

```
