API reference
For a general library overview, read Architecture. Navigation resources:
pycyphal root module
Submodule import policy
The following submodules are auto-imported when the root module pycyphal is imported:
pycyphal.transport, but not concrete transport implementation submodules.
Submodule pycyphal.application is not auto-imported because in order to have it imported
the DSDL-generated package uavcan containing the standard data types must be compiled first.
Log level override
The environment variable PYCYPHAL_LOGLEVEL can be set to one of the following values to override
the library log level:
CRITICALFATALERRORWARNINGINFODEBUG
- pycyphal.CYPHAL_SPECIFICATION_VERSION = (1, 0)
Version of the Cyphal protocol implemented by this library, major and minor. The corresponding field in
uavcan.node.GetInfo.Responseis initialized from this value, seepycyphal.application.make_node().
Submodules
- pycyphal.dsdl package
- Module contents
compile()compile_all()GeneratedPackageInfoadd_import_hook()remove_import_hooks()serialize()deserialize()get_model()get_class()get_extent_bytes()get_fixed_port_id()get_attribute()set_attribute()is_serializable()is_message_type()is_service_type()to_builtin()update_from_builtin()generate_package()install_import_hook()
- Module contents
- pycyphal.application package
- pycyphal.presentation package
- pycyphal.transport package
- Subpackages
- Module contents
- Abstract transport model
- Sessions
- Sniffing/snooping and tracing
- Implementing new transports
- Class inheritance diagram
TransportProtocolParametersTransportStatisticsTransferTransferFromPriorityDataSpecifierMessageDataSpecifierServiceDataSpecifierSessionSpecifierInputSessionSpecifierOutputSessionSpecifierSessionInputSessionOutputSessionPayloadMetadataSessionStatisticsFeedbackTimestampTransportErrorUnsupportedSessionConfigurationErrorOperationNotDefinedForAnonymousNodeErrorInvalidTransportConfigurationErrorInvalidMediaConfigurationErrorResourceClosedErrorCaptureAlienSessionSpecifierAlienTransferMetadataAlienTransferTraceErrorTraceTransferTraceTracer
- pycyphal.util package