# Inhumate RTI Client for Python
## Installing
```sh
pip install inhumate-rti
```
## Quick Start
```python
import inhumate_rti as RTI
rti = RTI.Client(application="Python RTI App")
rti.wait_until_connected()
def on_connect():
print("Connected")
rti.on("connect", on_connect)
def on_hello(content):
print(f"Received: {content}")
rti.subscribe_text("hello", on_hello)
rti.publish_text("hello", "Hello World!")
```
For a more complete usage example, see
[usage_example.py](https://github.com/inhumatesystems/rti-client/blob/main/python/test/usage_example.py) and
[usage_example_main_loop.py](https://github.com/inhumatesystems/rti-client/blob/main/python/test/usage_example_main_loop.py).
## Running tests
Clone the project from [GitHub](https://github.com/inhumatesystems/rti-client), and in the `python` folder:
```sh
python -m virtualenv .venv
. .venv/bin/activate
pip install -r inhumate_rti/requirements.txt
pip install -r test/requirements.txt
pytest
```
## Feedback & Contributing
Feedback and contributions of any kind are welcome.
- Please file bug reports and/or feature requests as [GitHub issues](https://github.com/inhumatesystems/rti-client/issues)
- Suggest code changes by creating a [pull request](https://github.com/inhumatesystems/rti-client/pulls)
- For any other questions, comments or inquiries, [get in touch](https://inhumatesystems.com/#contact)
Raw data
{
"_id": null,
"home_page": "https://github.com/inhumatesystems/rti-client",
"name": "inhumate-rti",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "RTI",
"author": "Inhumate AB",
"author_email": "packages@inhumatesystems.com",
"download_url": "https://files.pythonhosted.org/packages/77/25/1731286ab29f1bc1f0c1f8eec4f618e3b388d01f7eed8a80fd1f13d163f6/inhumate_rti-1.1.2.tar.gz",
"platform": null,
"description": "# Inhumate RTI Client for Python\n\n## Installing\n\n```sh\npip install inhumate-rti\n```\n\n## Quick Start\n\n```python\nimport inhumate_rti as RTI\n\nrti = RTI.Client(application=\"Python RTI App\")\nrti.wait_until_connected()\n\ndef on_connect():\n print(\"Connected\")\nrti.on(\"connect\", on_connect)\n\ndef on_hello(content): \n print(f\"Received: {content}\")\nrti.subscribe_text(\"hello\", on_hello)\n\nrti.publish_text(\"hello\", \"Hello World!\")\n```\n\nFor a more complete usage example, see \n[usage_example.py](https://github.com/inhumatesystems/rti-client/blob/main/python/test/usage_example.py) and \n[usage_example_main_loop.py](https://github.com/inhumatesystems/rti-client/blob/main/python/test/usage_example_main_loop.py).\n\n## Running tests\n\nClone the project from [GitHub](https://github.com/inhumatesystems/rti-client), and in the `python` folder:\n\n```sh\npython -m virtualenv .venv\n. .venv/bin/activate\npip install -r inhumate_rti/requirements.txt \npip install -r test/requirements.txt\npytest\n```\n\n## Feedback & Contributing\n\nFeedback and contributions of any kind are welcome.\n\n- Please file bug reports and/or feature requests as [GitHub issues](https://github.com/inhumatesystems/rti-client/issues)\n- Suggest code changes by creating a [pull request](https://github.com/inhumatesystems/rti-client/pulls)\n- For any other questions, comments or inquiries, [get in touch](https://inhumatesystems.com/#contact)\n",
"bugtrack_url": null,
"license": "Proprietary",
"summary": "Inhumate RTI Client",
"version": "1.1.2",
"project_urls": {
"Homepage": "https://github.com/inhumatesystems/rti-client"
},
"split_keywords": [
"rti"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6e196925d5a3f7e95a5351bc684fc29f8388884b32b027f791e9deafa9f806ef",
"md5": "ee2216a06325ffd34f41ff4feed372e9",
"sha256": "8e851b0c3397009771b45f004fcab1ef73d44a1a514a5ad4420338e38dd5b4ea"
},
"downloads": -1,
"filename": "inhumate_rti-1.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ee2216a06325ffd34f41ff4feed372e9",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 49482,
"upload_time": "2024-09-29T23:03:52",
"upload_time_iso_8601": "2024-09-29T23:03:52.915844Z",
"url": "https://files.pythonhosted.org/packages/6e/19/6925d5a3f7e95a5351bc684fc29f8388884b32b027f791e9deafa9f806ef/inhumate_rti-1.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "77251731286ab29f1bc1f0c1f8eec4f618e3b388d01f7eed8a80fd1f13d163f6",
"md5": "aa5adf2f74c0310368e4987d8534bbc8",
"sha256": "ac61e8710eb05a37cd05ecff8750f2e9f543cd981719f912596afcd765ce1c97"
},
"downloads": -1,
"filename": "inhumate_rti-1.1.2.tar.gz",
"has_sig": false,
"md5_digest": "aa5adf2f74c0310368e4987d8534bbc8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 28744,
"upload_time": "2024-09-29T23:03:54",
"upload_time_iso_8601": "2024-09-29T23:03:54.350906Z",
"url": "https://files.pythonhosted.org/packages/77/25/1731286ab29f1bc1f0c1f8eec4f618e3b388d01f7eed8a80fd1f13d163f6/inhumate_rti-1.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-29 23:03:54",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "inhumatesystems",
"github_project": "rti-client",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "inhumate-rti"
}