Skip to main content

Dispatch API client for Python

Project description

Frequenz Dispatch Client Library

Build Status PyPI Version Documentation

🚀 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

frequenz-client-dispatch-0.8.0.tar.gz (27.1 kB view details)

Uploaded Source

Built Distribution

frequenz_client_dispatch-0.8.0-py3-none-any.whl (29.8 kB view details)

Uploaded Python 3

File details

Details for the file frequenz-client-dispatch-0.8.0.tar.gz.

File metadata

File hashes

Hashes for frequenz-client-dispatch-0.8.0.tar.gz
Algorithm Hash digest
SHA256 49d7b0ffbc53799b0ed1ff63c59c323604cbcca421ae158fc7efde42325cc2b2
MD5 90a0260b37ffe4c3670d301b1d9c7a78
BLAKE2b-256 4169a85a82be0ba352334714d28cdd451abdad3e37bed10c864ebf03632dce21

See more details on using hashes here.

Provenance

The following attestation bundles were made for frequenz-client-dispatch-0.8.0.tar.gz:

Publisher: ci.yaml on frequenz-floss/frequenz-client-dispatch-python

Attestations:

File details

Details for the file frequenz_client_dispatch-0.8.0-py3-none-any.whl.

File metadata

File hashes

Hashes for frequenz_client_dispatch-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3568f8fe7f226b147c76a72eaa2ab24f96e9086cc094664d0b89cb9d7ecada4a
MD5 6c2054460f6d7a8bcc767fe3cf1bcef7
BLAKE2b-256 3eeca89ddec2e9da62bff47b4f21c1822e1641bc4e8e89dfc824a45748144382

See more details on using hashes here.

Provenance

The following attestation bundles were made for frequenz_client_dispatch-0.8.0-py3-none-any.whl:

Publisher: ci.yaml on frequenz-floss/frequenz-client-dispatch-python

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page