# Frequenz Dispatch Client Library
[](https://github.com/frequenz-floss/frequenz-client-dispatch-python/actions/workflows/ci.yaml)
[](https://pypi.org/project/frequenz-client-dispatch/)
[](https://frequenz-floss.github.io/frequenz-client-dispatch-python/)
## 🚀 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](https://github.com/frequenz-floss/frequenz-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](https://github.com/frequenz-floss/frequenz-dispatch-python).
## 📦 Installation
Install the library via pip:
```bash
pip install frequenz-client-dispatch
```
## 🛠️ Usage
Here's a quick example to get you started:
```python
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](https://frequenz-floss.github.io/frequenz-client-dispatch-python/latest/reference/frequenz/client/dispatch/#frequenz.client.dispatch.ApiDispatchClient).
## 🌐 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](CONTRIBUTING.md) to get started.
Raw data
{
"_id": null,
"home_page": null,
"name": "frequenz-client-dispatch",
"maintainer": null,
"docs_url": null,
"requires_python": "<4,>=3.11",
"maintainer_email": null,
"keywords": "frequenz, python, lib, library, dispatch-client, dispatch, client, api, python",
"author": null,
"author_email": "Frequenz Energy-as-a-Service GmbH <floss@frequenz.com>",
"download_url": "https://files.pythonhosted.org/packages/10/b5/c96fdd3375550297e40be9e4f8e6b0f9a172e3869a1acaeba01f2b07d097/frequenz_client_dispatch-0.11.1.tar.gz",
"platform": null,
"description": "# Frequenz Dispatch Client Library\n\n[](https://github.com/frequenz-floss/frequenz-client-dispatch-python/actions/workflows/ci.yaml)\n[](https://pypi.org/project/frequenz-client-dispatch/)\n[](https://frequenz-floss.github.io/frequenz-client-dispatch-python/)\n\n## \ud83d\ude80 Introduction\n\nWelcome to the **Frequenz Dispatch Client Library**\u2014your go-to Python client for low-level interactions with the Frequenz Dispatch API!\n\nIf you're a developer who needs direct access to the [Dispatch API](https://github.com/frequenz-floss/frequenz-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](https://github.com/frequenz-floss/frequenz-dispatch-python).\n\n## \ud83d\udce6 Installation\n\nInstall the library via pip:\n\n```bash\npip install frequenz-client-dispatch\n```\n\n## \ud83d\udee0\ufe0f Usage\n\nHere's a quick example to get you started:\n\n```python\nfrom frequenz.client.dispatch import DispatchApiClient\nimport asyncio\n\nasync def print_dispatches():\n # Initialize the client\n client = DispatchApiClient(key=\"your_api_key\", server_url=\"grpc://dispatch.url.goes.here.example.com\")\n\n # List all dispatches for a specific microgrid\n async for page in client.list(microgrid_id=1):\n for dispatch in page:\n print(dispatch)\n\n# Run the Example\nasyncio.run(print_dispatches())\n```\n\nFor detailed usage and advanced features, check out the [client documentation](https://frequenz-floss.github.io/frequenz-client-dispatch-python/latest/reference/frequenz/client/dispatch/#frequenz.client.dispatch.ApiDispatchClient).\n\n## \ud83c\udf10 Supported Platforms\n\nWe officially support and test the following platforms:\n\n- **Python:** 3.11\n- **Operating System:** Ubuntu Linux 20.04\n- **Architectures:** amd64, arm64\n\n## \ud83e\udd1d Contributing\n\nWe welcome contributions! If you're interested in building or improving this project, please read our [Contributing Guide](CONTRIBUTING.md) to get started.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Dispatch API client for Python",
"version": "0.11.1",
"project_urls": {
"Changelog": "https://github.com/frequenz-floss/frequenz-client-dispatch-python/releases",
"Documentation": "https://frequenz-floss.github.io/frequenz-client-dispatch-python/",
"Issues": "https://github.com/frequenz-floss/frequenz-client-dispatch-python/issues",
"Repository": "https://github.com/frequenz-floss/frequenz-client-dispatch-python",
"Support": "https://github.com/frequenz-floss/frequenz-client-dispatch-python/discussions/categories/support"
},
"split_keywords": [
"frequenz",
" python",
" lib",
" library",
" dispatch-client",
" dispatch",
" client",
" api",
" python"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "f625abc21d6282d24c85344d3a1a2dcee29905688b4d0fca50893d57b915531a",
"md5": "357329ed4863d2451195c9868b6fa941",
"sha256": "8135e6d7dbaf2d84df65b30db90dca5d85d1169d2bb6aca567fc32bf1e0a841d"
},
"downloads": -1,
"filename": "frequenz_client_dispatch-0.11.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "357329ed4863d2451195c9868b6fa941",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4,>=3.11",
"size": 33200,
"upload_time": "2025-07-16T13:39:18",
"upload_time_iso_8601": "2025-07-16T13:39:18.226393Z",
"url": "https://files.pythonhosted.org/packages/f6/25/abc21d6282d24c85344d3a1a2dcee29905688b4d0fca50893d57b915531a/frequenz_client_dispatch-0.11.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "10b5c96fdd3375550297e40be9e4f8e6b0f9a172e3869a1acaeba01f2b07d097",
"md5": "2368b9699bcb52e566d48d8580e78991",
"sha256": "5e9008fc64def1aadea9c4f8583e225914a68c181a67da05fffab731ce8753e4"
},
"downloads": -1,
"filename": "frequenz_client_dispatch-0.11.1.tar.gz",
"has_sig": false,
"md5_digest": "2368b9699bcb52e566d48d8580e78991",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4,>=3.11",
"size": 31183,
"upload_time": "2025-07-16T13:39:19",
"upload_time_iso_8601": "2025-07-16T13:39:19.853775Z",
"url": "https://files.pythonhosted.org/packages/10/b5/c96fdd3375550297e40be9e4f8e6b0f9a172e3869a1acaeba01f2b07d097/frequenz_client_dispatch-0.11.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-16 13:39:19",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "frequenz-floss",
"github_project": "frequenz-client-dispatch-python",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "frequenz-client-dispatch"
}