frequenz-client-dispatch


Namefrequenz-client-dispatch JSON
Version 0.8.3 PyPI version JSON
download
home_pageNone
SummaryDispatch API client for Python
upload_time2024-12-03 11:19:13
maintainerNone
docs_urlNone
authorNone
requires_python<4,>=3.11
licenseMIT
keywords frequenz python lib library dispatch-client dispatch client api python
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Frequenz Dispatch Client Library

[![Build Status](https://github.com/frequenz-floss/frequenz-client-dispatch-python/actions/workflows/ci.yaml/badge.svg)](https://github.com/frequenz-floss/frequenz-client-dispatch-python/actions/workflows/ci.yaml)
[![PyPI Version](https://img.shields.io/pypi/v/frequenz-client-dispatch)](https://pypi.org/project/frequenz-client-dispatch/)
[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen)](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 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](https://frequenz-floss.github.io/frequenz-client-dispatch-python/latest/reference/frequenz/client/dispatch/#frequenz.client.dispatch.Client).

## 🌐 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/3e/cc/d1314edf33d22957dc8249a30323794e6734df130ae7f300bff819c449d7/frequenz_client_dispatch-0.8.3.tar.gz",
    "platform": null,
    "description": "# Frequenz Dispatch Client Library\n\n[![Build Status](https://github.com/frequenz-floss/frequenz-client-dispatch-python/actions/workflows/ci.yaml/badge.svg)](https://github.com/frequenz-floss/frequenz-client-dispatch-python/actions/workflows/ci.yaml)\n[![PyPI Version](https://img.shields.io/pypi/v/frequenz-client-dispatch)](https://pypi.org/project/frequenz-client-dispatch/)\n[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen)](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 Client\nimport asyncio\n\nasync def print_dispatches():\n    # Initialize the client\n    client = Client(key=\"your_api_key\", server_url=\"grpc://fz-0004.frequenz.io\")\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.Client).\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.8.3",
    "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": "",
            "digests": {
                "blake2b_256": "6a553b20c9d1b99f8d6af27e31f96263d5e2e30782a7f3aa51dc0789719192c4",
                "md5": "80596b194e9d321aff537686cefae98c",
                "sha256": "1d712b83cf08c87aa35c841bbbbb28d57d11b95772a3fe8910b98a6d8a3276d7"
            },
            "downloads": -1,
            "filename": "frequenz_client_dispatch-0.8.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "80596b194e9d321aff537686cefae98c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4,>=3.11",
            "size": 31380,
            "upload_time": "2024-12-03T11:19:12",
            "upload_time_iso_8601": "2024-12-03T11:19:12.426671Z",
            "url": "https://files.pythonhosted.org/packages/6a/55/3b20c9d1b99f8d6af27e31f96263d5e2e30782a7f3aa51dc0789719192c4/frequenz_client_dispatch-0.8.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3eccd1314edf33d22957dc8249a30323794e6734df130ae7f300bff819c449d7",
                "md5": "d2a478161a4ed56bdc9ea19372036875",
                "sha256": "149a3ba4c781955a0124369535ccf63b949af64ff6da62f8357083257b4e0ad8"
            },
            "downloads": -1,
            "filename": "frequenz_client_dispatch-0.8.3.tar.gz",
            "has_sig": false,
            "md5_digest": "d2a478161a4ed56bdc9ea19372036875",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4,>=3.11",
            "size": 29223,
            "upload_time": "2024-12-03T11:19:13",
            "upload_time_iso_8601": "2024-12-03T11:19:13.968420Z",
            "url": "https://files.pythonhosted.org/packages/3e/cc/d1314edf33d22957dc8249a30323794e6734df130ae7f300bff819c449d7/frequenz_client_dispatch-0.8.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-03 11:19:13",
    "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"
}
        
Elapsed time: 0.36688s