CODDE Protocol
Multi Communication protocol in heart of the C.O.D.D.E. Pi framework.
This Project is written in Rust, enabling fast serializing/deserializing and data processing. Client side is ported for Dart/Flutter applications, and server side has been translated in python.
CODDE Protocol integrates data generated by CODDE Pi App widgets, and received by embedded systems. See https://codde-pi.com to stay tuned about new widgets integration.
Show me the code
With one code structure and a dozen of lines, you can receive data from socket, bluetooth of UART com. Just need a port address and registered actions on data is received :
import codde_protocol
import time
server = CoddePiServer.use_socket('localhost:12345')
def action(*args):
widget: ToggleButton = args[0]
print("value received : ", widget.value)
server.callback(1, ServerStatus.Idle, ConfirmResult(True))
if __name__ == "__main__":
print('open server...')
server.open()
server.on(1, "ToggleButton", action)
# server.callback(1, cp.ServerStatus.Idle, cp.ConfirmResult(True))
server.serve()
time.sleep(2)
server.close()
Roadmap
Protocols:
- WebSocket
- Bluetooth
- UART
- HTTP
Metadata
Release files for codde-protocol-client 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| codde_protocol_client-0.1.3-cp38-abi3-manylinux_2_34_x86_64.whl | CPython 3.8 | abi3 | Linux glibc 2.34+ x86-64 | Details for codde_protocol_client-0.1.3-cp38-abi3-manylinux_2_34_x86_64.whl |
Release files / codde_protocol_client-0.1.3-cp38-abi3-manylinux_2_34_x86_64.whl
| Download URL | codde_protocol_client-0.1.3-cp38-abi3-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 392.4 kB |
| Tags | CPython 3.8 Linux glibc 2.34+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
9a0170b3062ceb36b5018d8ce88fd2e5cfe415538396f2e01f28095d685da67b
|
|
BLAKE2b-256 checksum How to use checksums |
c4ae0c6a41baf739d100023560f88b3fd874e2381545becaaebf30a96cfaf6ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.5.1
|
Security for codde-protocol-client 0.1.3
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.