Dispatch API client for Python
Project description
Frequenz Dispatch Client Library
🚀 Introduction
Welcome to the Frequenz Dispatch Client Library—your go-to Python client for low-level interactions with the Frequenz Dispatch API!
If you're a developer who needs direct access to the Dispatch API without the abstraction layers of the high-level client, you're in the right place. This library serves as the foundation for our more feature-rich and user-friendly high-level client.
📦 Installation
Install the library via pip:
pip install frequenz-client-dispatch
🛠️ Usage
Here's a quick example to get you started:
from frequenz.client.dispatch import Client
import asyncio
async def print_dispatches():
# Initialize the client
client = Client(key="your_api_key", server_url="grpc://fz-0004.frequenz.io")
# List all dispatches for a specific microgrid
async for page in client.list(microgrid_id=1):
for dispatch in page:
print(dispatch)
# Run the Example
asyncio.run(print_dispatches())
For detailed usage and advanced features, check out the client documentation.
🌐 Supported Platforms
We officially support and test the following platforms:
- Python: 3.11
- Operating System: Ubuntu Linux 20.04
- Architectures: amd64, arm64
🤝 Contributing
We welcome contributions! If you're interested in building or improving this project, please read our Contributing Guide to get started.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file frequenz-client-dispatch-0.8.1.tar.gz
.
File metadata
- Download URL: frequenz-client-dispatch-0.8.1.tar.gz
- Upload date:
- Size: 27.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 220014aad385b65e7d0d0a5c0159aa1b2474a5e8d0f5557061a3469e3c9f88ba |
|
MD5 | 966d565fecf85599bdc60a2210dba72b |
|
BLAKE2b-256 | 5eda15dd547fbdc1a3dba4d2606b5ac1d3843a79a8f99270e936c313f3b2a898 |
Provenance
The following attestation bundles were made for frequenz-client-dispatch-0.8.1.tar.gz
:
Publisher:
ci.yaml
on frequenz-floss/frequenz-client-dispatch-python
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
frequenz_client_dispatch-0.8.1.tar.gz
- Subject digest:
220014aad385b65e7d0d0a5c0159aa1b2474a5e8d0f5557061a3469e3c9f88ba
- Sigstore transparency entry: 149881063
- Sigstore integration time:
- Predicate type:
File details
Details for the file frequenz_client_dispatch-0.8.1-py3-none-any.whl
.
File metadata
- Download URL: frequenz_client_dispatch-0.8.1-py3-none-any.whl
- Upload date:
- Size: 29.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5163ec8205f406f7c9a9a7fe2d428b96d72aa111f009b8f0a3581382f4bb330c |
|
MD5 | 3c00d303329a7c3fcad4df56a7cc5b96 |
|
BLAKE2b-256 | 5b13e62d584f8459fcfedb4e207d879f55f6d37710a25b510cee8267e6929990 |
Provenance
The following attestation bundles were made for frequenz_client_dispatch-0.8.1-py3-none-any.whl
:
Publisher:
ci.yaml
on frequenz-floss/frequenz-client-dispatch-python
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
frequenz_client_dispatch-0.8.1-py3-none-any.whl
- Subject digest:
5163ec8205f406f7c9a9a7fe2d428b96d72aa111f009b8f0a3581382f4bb330c
- Sigstore transparency entry: 149881065
- Sigstore integration time:
- Predicate type: