concord4ws


Nameconcord4ws JSON
Version 0.2.1 PyPI version JSON
download
home_pageNone
SummaryA package for interacting with the concord4ws server.
upload_time2024-08-15 03:27:08
maintainerNone
docs_urlNone
authorJoey Eamigh
requires_python<4.0,>=3.11
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # concord4ws-py

Python library for interfacing with Concord4WS [https://github.com/JoeyEamigh/concord4ws](https://github.com/JoeyEamigh/concord4ws). This library depends on the Concord4WS server.

## Installation

```bash
pip install concord4ws
```

## Usage

```python
import asyncio
from concord4ws import Concord4WSClient


async def main():
    client = Concord4WSClient("127.0.0.01", 8080)

    if await client.test_connect():
        print("Connected")
    else:
        print("Not Connected")

    zoneCallback = lambda: print(client._state.zones)
    partitionCallback = lambda: print(client._state.partitions)

    await client.connect()

    print("Ready!")

    for zone in client._state.zones:
        client.register_callback(zone, zoneCallback)

    for partition in client._state.partitions:
        client.register_callback(partition, partitionCallback)

    await asyncio.futures.Future()


asyncio.run(main())
```

## Development Setup

```bash
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "concord4ws",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.11",
    "maintainer_email": null,
    "keywords": null,
    "author": "Joey Eamigh",
    "author_email": "55670930+JoeyEamigh@users.noreply.github.com",
    "download_url": "https://files.pythonhosted.org/packages/da/cf/30d4e4b7287bbacde294d3f1d940049c1d1b2265f1c2f3960ab4bf3db84d/concord4ws-0.2.1.tar.gz",
    "platform": null,
    "description": "# concord4ws-py\n\nPython library for interfacing with Concord4WS [https://github.com/JoeyEamigh/concord4ws](https://github.com/JoeyEamigh/concord4ws). This library depends on the Concord4WS server.\n\n## Installation\n\n```bash\npip install concord4ws\n```\n\n## Usage\n\n```python\nimport asyncio\nfrom concord4ws import Concord4WSClient\n\n\nasync def main():\n    client = Concord4WSClient(\"127.0.0.01\", 8080)\n\n    if await client.test_connect():\n        print(\"Connected\")\n    else:\n        print(\"Not Connected\")\n\n    zoneCallback = lambda: print(client._state.zones)\n    partitionCallback = lambda: print(client._state.partitions)\n\n    await client.connect()\n\n    print(\"Ready!\")\n\n    for zone in client._state.zones:\n        client.register_callback(zone, zoneCallback)\n\n    for partition in client._state.partitions:\n        client.register_callback(partition, partitionCallback)\n\n    await asyncio.futures.Future()\n\n\nasyncio.run(main())\n```\n\n## Development Setup\n\n```bash\npython -m venv .venv\nsource .venv/bin/activate\npip install --upgrade pip\npip install -r requirements.txt\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A package for interacting with the concord4ws server.",
    "version": "0.2.1",
    "project_urls": {
        "Bug Tracker": "https://github.com/JoeyEamigh/concord4ws-py/issues",
        "Homepage": "https://github.com/JoeyEamigh/concord4ws-py"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "88257ebad20bd37a3288aaa759228f8e261622901679d7b227c959efe57fcfcb",
                "md5": "0c9e7cf3f28ed0f486b53b40bad578a6",
                "sha256": "d9e319cdc949c6af11ae4c64d9e6c52d5b82d0b585f8b81819dd32782e872761"
            },
            "downloads": -1,
            "filename": "concord4ws-0.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0c9e7cf3f28ed0f486b53b40bad578a6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.11",
            "size": 7269,
            "upload_time": "2024-08-15T03:27:06",
            "upload_time_iso_8601": "2024-08-15T03:27:06.795056Z",
            "url": "https://files.pythonhosted.org/packages/88/25/7ebad20bd37a3288aaa759228f8e261622901679d7b227c959efe57fcfcb/concord4ws-0.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dacf30d4e4b7287bbacde294d3f1d940049c1d1b2265f1c2f3960ab4bf3db84d",
                "md5": "957a35e7872ea5afb7dfb76bb09158c2",
                "sha256": "e016888470e50e9fe77562ea41cf2e4c18ba474c621883b89edaa0de0d956a1e"
            },
            "downloads": -1,
            "filename": "concord4ws-0.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "957a35e7872ea5afb7dfb76bb09158c2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.11",
            "size": 6384,
            "upload_time": "2024-08-15T03:27:08",
            "upload_time_iso_8601": "2024-08-15T03:27:08.048491Z",
            "url": "https://files.pythonhosted.org/packages/da/cf/30d4e4b7287bbacde294d3f1d940049c1d1b2265f1c2f3960ab4bf3db84d/concord4ws-0.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-15 03:27:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "JoeyEamigh",
    "github_project": "concord4ws-py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "concord4ws"
}
        
Elapsed time: 0.31327s