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 DispatchApiClient
import asyncio

async def print_dispatches():
    # Initialize the client
    client = DispatchApiClient(key="your_api_key", server_url="grpc://dispatch.url.goes.here.example.com")

    # 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-1.0.0.tar.gz (32.6 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-1.0.0-py3-none-any.whl (34.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: frequenz_client_dispatch-1.0.0.tar.gz
  • Upload date:
  • Size: 32.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for frequenz_client_dispatch-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7c8c97bb87e1ba0a8c5c3822752d43127da75d310815ab62507967bfd27ba1b2
MD5 651bcbc23a8038b39cda0a1f96869c94
BLAKE2b-256 173ff0c52b7e1fcdede1ff89fc4f2b2f66699e58833e46dbfc5d5b6df07e7492

See more details on using hashes here.

Provenance

The following attestation bundles were made for frequenz_client_dispatch-1.0.0.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-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for frequenz_client_dispatch-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48b0e15d999f1fa0c99543d2ab95821aec32857733be08c2a6c8c3c0b0b952a2
MD5 7e9b1642f48eb705106e0981627a34c5
BLAKE2b-256 af04e9062be7c4128b6ee648772619602a977c99759aa1d9c80e38746b48fd97

See more details on using hashes here.

Provenance

The following attestation bundles were made for frequenz_client_dispatch-1.0.0-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