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.4.tar.gz (29.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

frequenz_client_dispatch-0.8.4-py3-none-any.whl (31.5 kB view details)

Uploaded Python 3

File details

Details for the file frequenz_client_dispatch-0.8.4.tar.gz.

File metadata

  • Download URL: frequenz_client_dispatch-0.8.4.tar.gz
  • Upload date:
  • Size: 29.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for frequenz_client_dispatch-0.8.4.tar.gz
Algorithm Hash digest
SHA256 d38f63efb2e3aa0ffa40f7d01520e0d05295dc7758a07c4087b257b59f2588fc
MD5 ef6c1bae4973237ae868a51fa386e7c8
BLAKE2b-256 060f62ee5f3998f5a2a77e022e80801169abb758b70c6eaf0239be1d5fa11cf1

See more details on using hashes here.

Provenance

The following attestation bundles were made for frequenz_client_dispatch-0.8.4.tar.gz:

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for frequenz_client_dispatch-0.8.4-py3-none-any.whl
Algorithm Hash digest
SHA256 02ebf1062bc2e9f05f576a804b735ed63a4b86114634448ff25b1bdf91d8e50d
MD5 b75800ed093b7d5c6aff9c7964d003b8
BLAKE2b-256 88def4b4cc2edf6cee69f3b1097593f46c22eb0de65d2654cc5f130a5b31e9e7

See more details on using hashes here.

Provenance

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

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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