## About
This is package is create to interface with COSMED Omnia *(created by ©1996-2024 [COSMED](https://www.cosmed.com/en/) srl)* using OCP (Omnia control protocol) it Could be used to send any command from the OCP and get the result as a python dictionary by first creating the command as an xml send it and receive the response and process it to get a python dictionary to all easy Integration with python.
## to get started with OCP using python follow the following steps:-
1. normally install COSMED Omnia.
2. run the regedit.reg file provided to configure the OCP.
3. then normally start COMSED OMNIA.
4. then you can use the python module ocp.py to send commands to the software.
### steps to install and use the OCP package:
1. clone the package.
2. run setup.py using (pip install .) while on the same directory as the setup.py.
```
from OCP import OCP #import the OCP main class
ocp = OCP() # to creates an OCP object
ocp.connect() # to initiate a TCP connection with COSMED Omnia
# to login and notice COSMED omnia needs to be running and replace the username and password with username and password created on COMED Omnia
ocp.login("username", "password")
```
you can then send any command and get the result in python as the OCP interface and you can find a
method for every command on the OCP to send that command and receive a response
Raw data
{
"_id": null,
"home_page": "https://github.com/ahmeds0s/ocp_package",
"name": "pycosmed",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.11",
"maintainer_email": null,
"keywords": null,
"author": "Ahmed M. Hesham",
"author_email": "ah.hesham3333@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/f0/0c/27b2b7db5d83f4849255b4f29ec40f17e6b374859543b3835c3ebc8810f3/pycosmed-0.0.23.tar.gz",
"platform": null,
"description": "## About\r\nThis is package is create to interface with COSMED Omnia *(created by \u00c2\u00a91996-2024 [COSMED](https://www.cosmed.com/en/) srl)* using OCP (Omnia control protocol) it Could be used to send any command from the OCP and get the result as a python dictionary by first creating the command as an xml send it and receive the response and process it to get a python dictionary to all easy Integration with python.\r\n\r\n\r\n## to get started with OCP using python follow the following steps:-\r\n\r\n1. normally install COSMED Omnia.\r\n\r\n2. run the regedit.reg file provided to configure the OCP.\r\n\r\n3. then normally start COMSED OMNIA.\r\n\r\n4. then you can use the python module ocp.py to send commands to the software.\r\n\r\n \r\n \r\n### steps to install and use the OCP package:\r\n1. clone the package.\r\n2. run setup.py using (pip install .) while on the same directory as the setup.py.\r\n\r\n\r\n\r\n\r\n```\r\nfrom OCP import OCP #import the OCP main class\r\n\r\n\r\nocp = OCP() # to creates an OCP object\r\nocp.connect() # to initiate a TCP connection with COSMED Omnia\r\n# to login and notice COSMED omnia needs to be running and replace the username and password with username and password created on COMED Omnia \r\nocp.login(\"username\", \"password\")\r\n\r\n\r\n\r\n\r\n```\r\n\r\n\r\nyou can then send any command and get the result in python as the OCP interface and you can find a\r\nmethod for every command on the OCP to send that command and receive a response\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "an OCP interface to send commands and recieve using Omnia control protocol",
"version": "0.0.23",
"project_urls": {
"Homepage": "https://github.com/ahmeds0s/ocp_package"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6cb71e0a35307e4bf17e12ad496eaae932ea8ada75ce1d825414aaa2d5edd986",
"md5": "e3a3b412f6a105123e8587416c8cdae2",
"sha256": "3c0c20233eef6df869793149757f7b23b5494722590f7a9f919a3126ed70a0bd"
},
"downloads": -1,
"filename": "pycosmed-0.0.23-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e3a3b412f6a105123e8587416c8cdae2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11",
"size": 7305,
"upload_time": "2024-08-18T17:54:40",
"upload_time_iso_8601": "2024-08-18T17:54:40.176909Z",
"url": "https://files.pythonhosted.org/packages/6c/b7/1e0a35307e4bf17e12ad496eaae932ea8ada75ce1d825414aaa2d5edd986/pycosmed-0.0.23-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f00c27b2b7db5d83f4849255b4f29ec40f17e6b374859543b3835c3ebc8810f3",
"md5": "becb7d1e2d6c474605ec1759fbf167a8",
"sha256": "d902edcc0ec133521eb50698ca835e1251d00d114e0e7d1124140d679954953e"
},
"downloads": -1,
"filename": "pycosmed-0.0.23.tar.gz",
"has_sig": false,
"md5_digest": "becb7d1e2d6c474605ec1759fbf167a8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11",
"size": 6563,
"upload_time": "2024-08-18T17:54:41",
"upload_time_iso_8601": "2024-08-18T17:54:41.373644Z",
"url": "https://files.pythonhosted.org/packages/f0/0c/27b2b7db5d83f4849255b4f29ec40f17e6b374859543b3835c3ebc8810f3/pycosmed-0.0.23.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-18 17:54:41",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ahmeds0s",
"github_project": "ocp_package",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "pycosmed"
}