semvec/pypi-packages huggingface dataset:
mercuto-client 0.3.9a7
Library for interfacing with Rockfield's Mercuto API
Requires Python: >=3.10
Keywords: mercuto, rockfield, infratech

# Mercuto Client Python Library

Library for interfacing with Rockfield's Mercuto public API.
This library is in an early development state and is subject to major structural changes at any time.

(Visit our Github Repository)[https://github.com/RockfieldTechnologiesAustralia/mercuto-client]

## Installation
Install from PyPi: `pip install mercuto-client` or adding the same line into your `requirements.txt`.

## Basic Usage

Use the `connect()` function exposed within the main package and provide your API key.

```python
from mercuto_client import connect

client = connect(api_key="<YOUR API KEY>")
print(client.core().list_projects())

# Logout after finished.
client.logout()

```

You can also use the client as a context manager. It will logout automatically.

```python
from mercuto_client import MercutoClient

with MercutoClient.as_credentials(api_key='<YOUR API KEY>') as client:
    print(client.core().list_projects())
```

## Current Status
This library is incomplete and may not be fully compliant with the latest Mercuto version. It is only updated periodically and provided for use without any warranty or guarantees.

- [x] API Based login (Completed)
- [ ] Username/password login

## Running tests
Install test packages:
`python -m uv sync --group tests`
Run tests:
`uv run pytest`