About
This is package is create to interface with COSMED Omnia (created by ©1996-2024 COSMED 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:-
-
normally install COSMED Omnia.
-
run the regedit.reg file provided to configure the OCP.
-
then normally start COMSED OMNIA.
-
then you can use the python module ocp.py to send commands to the software.
steps to install and use the OCP package:
- clone the package.
- 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
Metadata
Release files for pycosmed 0.0.23
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pycosmed-0.0.23.tar.gz | 6.6 kB | Without provenance | Details for pycosmed-0.0.23.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pycosmed-0.0.23-py3-none-any.whl | Python 3 | none | any | Details for pycosmed-0.0.23-py3-none-any.whl |
Total release size: 13.9 kB
Release files / pycosmed-0.0.23.tar.gz
| Download URL | pycosmed-0.0.23.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d902edcc0ec133521eb50698ca835e1251d00d114e0e7d1124140d679954953e
|
|
BLAKE2b-256 checksum How to use checksums |
f00c27b2b7db5d83f4849255b4f29ec40f17e6b374859543b3835c3ebc8810f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / pycosmed-0.0.23-py3-none-any.whl
| Download URL | pycosmed-0.0.23-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3c0c20233eef6df869793149757f7b23b5494722590f7a9f919a3126ed70a0bd
|
|
BLAKE2b-256 checksum How to use checksums |
6cb71e0a35307e4bf17e12ad496eaae932ea8ada75ce1d825414aaa2d5edd986
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Security for pycosmed 0.0.23
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.