ipcs


Nameipcs JSON
Version 0.2.0 PyPI version JSON
download
home_page
SummarySimple IPC server/client
upload_time2023-07-15 01:57:50
maintainer
docs_urlNone
author
requires_python>=3.10
license
keywords ipc networking
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![PyPI](https://img.shields.io/pypi/v/ipcs)](https://pypi.org/project/ipcs/) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/ipcs) ![PyPI - Downloads](https://img.shields.io/pypi/dm/ipcs) ![PyPI - License](https://img.shields.io/pypi/l/ipcs) [![Documentation Status](https://readthedocs.org/projects/ipcs/badge/?version=latest)](https://ipcs.readthedocs.io/en/latest/?badge=latest) [![Buy Me a Coffee](https://img.shields.io/badge/-tasuren-E9EEF3?label=Buy%20Me%20a%20Coffee&logo=buymeacoffee)](https://www.buymeacoffee.com/tasuren)
# ipcs
A library for Python for IPC.  
(Although it is written as IPC, it can also be used for communication with an external server.)

## Installation
`$ pip install ipcs`

## Examples
Run `ipcs-server` and run following code.
### Client A
```python
# Client A

from ipcs import Client, Request

client = Client("a")

@client.route()
async def hello(request: Request, word: str):
    print("Hello, %s!" % word)

client.run("ws://localhost/", port=8080)
```
### Client B
```python
# Client B

from ipcs import Client

client = Client("b")

@client.listen()
async def on_ready():
    # Run client a's hello str to say greetings to world.
    await client.request("a", "hello", "World")
    # or `await client.connections.a.request("hello", "World")`

client.run("ws://localhost/", port=8080)
```

## License
The license is MIT and details can be found [here](https://github.com/tasuren/ipcs/blob/main/LICENSE).

## Documentation
Documentation is avaliable [here](https://ipcs.readthedocs.io/en/latest/).

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "ipcs",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "",
    "keywords": "ipc,networking",
    "author": "",
    "author_email": "Takagi Tasuku <tasuren@outlook.jp>",
    "download_url": "https://files.pythonhosted.org/packages/88/72/8f5ce888c5298224bfb34096b2c8667b420fe8ebd8fe54645aeec880a48a/ipcs-0.2.0.tar.gz",
    "platform": null,
    "description": "[![PyPI](https://img.shields.io/pypi/v/ipcs)](https://pypi.org/project/ipcs/) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/ipcs) ![PyPI - Downloads](https://img.shields.io/pypi/dm/ipcs) ![PyPI - License](https://img.shields.io/pypi/l/ipcs) [![Documentation Status](https://readthedocs.org/projects/ipcs/badge/?version=latest)](https://ipcs.readthedocs.io/en/latest/?badge=latest) [![Buy Me a Coffee](https://img.shields.io/badge/-tasuren-E9EEF3?label=Buy%20Me%20a%20Coffee&logo=buymeacoffee)](https://www.buymeacoffee.com/tasuren)\n# ipcs\nA library for Python for IPC.  \n(Although it is written as IPC, it can also be used for communication with an external server.)\n\n## Installation\n`$ pip install ipcs`\n\n## Examples\nRun `ipcs-server` and run following code.\n### Client A\n```python\n# Client A\n\nfrom ipcs import Client, Request\n\nclient = Client(\"a\")\n\n@client.route()\nasync def hello(request: Request, word: str):\n    print(\"Hello, %s!\" % word)\n\nclient.run(\"ws://localhost/\", port=8080)\n```\n### Client B\n```python\n# Client B\n\nfrom ipcs import Client\n\nclient = Client(\"b\")\n\n@client.listen()\nasync def on_ready():\n    # Run client a's hello str to say greetings to world.\n    await client.request(\"a\", \"hello\", \"World\")\n    # or `await client.connections.a.request(\"hello\", \"World\")`\n\nclient.run(\"ws://localhost/\", port=8080)\n```\n\n## License\nThe license is MIT and details can be found [here](https://github.com/tasuren/ipcs/blob/main/LICENSE).\n\n## Documentation\nDocumentation is avaliable [here](https://ipcs.readthedocs.io/en/latest/).\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Simple IPC server/client",
    "version": "0.2.0",
    "project_urls": {
        "Chat": "https://discord.gg/kfMwZUyGFG",
        "Documentation": "https://ipcs.readthedocs.io/",
        "Donate": "https://www.buymeacoffee.com/tasuren",
        "Source": "https://github.com/tasuren/ipcs"
    },
    "split_keywords": [
        "ipc",
        "networking"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fb99348b3d69b6e2c9cd6cd0456807fca98301a056f86dee2d3868aa83ad7479",
                "md5": "59752e99d16b22df2bc4007dd563a08e",
                "sha256": "9582a2d14be8da48a5541e7bb6999308196f3ec0afe47d30bc1bdb3f47d634e7"
            },
            "downloads": -1,
            "filename": "ipcs-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "59752e99d16b22df2bc4007dd563a08e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 15492,
            "upload_time": "2023-07-15T01:57:48",
            "upload_time_iso_8601": "2023-07-15T01:57:48.044270Z",
            "url": "https://files.pythonhosted.org/packages/fb/99/348b3d69b6e2c9cd6cd0456807fca98301a056f86dee2d3868aa83ad7479/ipcs-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "88728f5ce888c5298224bfb34096b2c8667b420fe8ebd8fe54645aeec880a48a",
                "md5": "234befe9d622f0725d429c150ca99982",
                "sha256": "c21d6f53ef6105ee44b77af6d884546e75baa13bc30751d7a1cab2b58f60ee10"
            },
            "downloads": -1,
            "filename": "ipcs-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "234befe9d622f0725d429c150ca99982",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 14277,
            "upload_time": "2023-07-15T01:57:50",
            "upload_time_iso_8601": "2023-07-15T01:57:50.254831Z",
            "url": "https://files.pythonhosted.org/packages/88/72/8f5ce888c5298224bfb34096b2c8667b420fe8ebd8fe54645aeec880a48a/ipcs-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-15 01:57:50",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "tasuren",
    "github_project": "ipcs",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "ipcs"
}
        
Elapsed time: 0.09268s