Repository navigation
Releases
Releases · microrti/microrti-python
MicroRTI for Python 0.3.0
On top of the MicroRTI Rust crates 0.5.0 (they were 0.4.1), whose changelog says more. Two changes may
break a federate: FOM modules named by URL, and the federation saves of a microrti server 0.4.
Added
FomUrlPolicy,FomUrlReaderand the methodsset_fom_url_policy,set_fom_url_readerand
fom_url_readerofEmbeddedRti, with the names of the Rust library: which FOM modules and MIMs named
by URL anEmbeddedRtireads (FomUrlPolicy.unrestricted(), the default,.refused(),
.directory(path)) and the time limit for all the modules of one Create or Join Federation Execution
(FomUrlReader().with_timeout(seconds), 30 seconds by default).RtiAmbassador.close(), and thewithblock that invokes it at its end: the connection ends without
Disconnect, whatever the state of the federate; a federate still joined is resigned by the RTI with its
automatic resign directive, as a lost federate (IEEE 1516.1-2025, 4.1.6). It never fails, does nothing
when not connected and, unlike Disconnect, may be invoked inside a callback. An extension of MicroRTI.RtiAmbassador.with_call_timeout(seconds), another handle of the same ambassador whose services wait at
most that long for the RTI, then raiseRTIinternalError, recognized by the new function
microrti.is_call_timeout;call_timeout()reads the limit. The RTI may still carry out a service
given up. An extension of MicroRTI.RtiAmbassador.evoke_callback_countedandevoke_multiple_callbacks_counted, Evoke Callback and Evoke
Multiple Callbacks (10.57, 10.58) that return anEvokeOutcome: the number of callbacks delivered and
the pending callback indicator. An extension of MicroRTI.
Changed
- Depends on
microrti-client,microrti-encodingandmicrorti-fom0.5.0. The network tests of the CI
run against themicrortiandchatbinaries of MicroRTI v0.5.0. The enumerations are converted by
their numbers in the Rust client (to_i32,TryFrom<i32>); the Python classes do not change. - Incompatible: FOM modules and MIMs named by URL (
FomModule.url). Themicrortiserver 0.5 reads by
default everyfile:,http:andhttps:URL a federate names, wherever it leads; it read none unless
its operator setfom_url_directory. Its operator restricts it withfom_urls = "none"or
fom_url_directory.EmbeddedRtireads the same URLs,http:andhttps:included, and now refuses a
designator without a scheme (Fleet.xml,/srv/fom/Fleet.xml) withCouldNotOpenFOM
(CouldNotOpenMIMfor a MIM): writefile:///srv/fom/Fleet.xml(pathlib.Path.as_uri()), or send the
content withFomModule.file, which every RTI accepts. A relativefile:URL is read only under
FomUrlPolicy.directory, relative to the directory. - Incompatible (
micrortiserver): the saves written by amicrortiserver 0.4 in its
save_directorycannot be restored by a server 0.5, which writes a new save format with a checksum:
Request Federation Restore is answered withrequest_federation_restore_failed(4.28), and the server
logs the reason. A save damaged after it was written is refused the same way. Nothing changes for a
federate otherwise; anEmbeddedRtikeeps its saves in memory, within the process. EmbeddedRtiis the RTI of MicroRTI 0.5.0. A module named by URL is read without holding the RTI, the
other federates go on: at most 64 URLs, 8 MiB each and 16 MiB in all for one Create or Join Federation
Execution, within its time limit. A FOM module or MIM with more than 1 048 576<or=raises
ErrorReadingFOM(ErrorReadingMIM) before it is parsed.
Fixed
evoke_callbackandevoke_multiple_callbacksgiven a number of seconds too large to be added to the
current instant (1.8e19) raisedPanicException; they wait without end, until a callback comes (or
Ctrl-C).- Create Federation Execution with a MIM and a FOM module that both cannot be read raises
CouldNotOpenMIM, which IEEE 1516.1-2025 4.5.5 ranks aboveCouldNotOpenFOM; it raised
CouldNotOpenFOM.
MicroRTI for Python 0.2.1
On top of the MicroRTI Rust crates 0.4.1 (they were 0.3.0). The Python API is the same; what changes
comes from the crates, whose changelog says more.
Changed
- Depends on
microrti-client,microrti-encodingandmicrorti-fom0.4.1. The network tests of the CI
run against themicrortiandchatbinaries of MicroRTI v0.4.1. - The
micrortiserver, from 0.4.0 on, no longer reads a FOM module or MIM named by URL or path on its
host unless its operator setsfom_url_directory:FomModule.urlthen raisesCouldNotOpenFOM(or
CouldNotOpenMIM).FomModule.fileand a plain path send the content of a local file and are not
affected. AnEmbeddedRtistill reads every URL it is given.
Fixed
- A service invoked while not connected raises
NotConnectedwithout reading its FOM module or MIM files
(a file that could not be read raisedCouldNotOpenFOMorCouldNotOpenMIMfirst), and Join
Federation Execution invoked from a callback raisesCallNotAllowedFromWithinCallbackbefore reading
them (IEEE 1516.1-2025, 1.6, 4.11, 12.8). - Over the network, a call made at the very moment the session ends now always returns, with the reason
the session ended; it could wait for ever. - Connect over the network fails when the RTI grants the session with an invalid sequence number in the
header ofCTRL_NEW_SESSION_STATUS(IEEE 1516.1-2025, 12.13.4.6); it was accepted. EmbeddedRtiis the RTI of MicroRTI 0.4.1: a pending Enable Time Regulation is honoured as soon as the
time-constrained federate that held it back invokes Disable Time Constrained (8.2); an update due when
its time-regulating sender resigns is delivered before Initiate Federate Save (4.19); a FOM module named
by a path to a named pipe or a device raisesErrorReadingFOMinstead of blocking the RTI; a damaged
save whose FDD differs from the one of the federation execution is not restored; with Delay
Subscription Evaluation enabled, the MOM interactions and updates are evaluated when they are
delivered (8.1.8); a federate that becomes time-regulating after a time-constrained federate was
instructed to save at a time cannot send it anything up to that time (4.19).
MicroRTI for Python 0.2.0
On top of the MicroRTI Rust crates 0.3.0 (they were 0.1.1). The Python API is the same; what changes
comes from the crates, whose changelog says more.
Added
- The first release on GitHub: wheels for Linux (
manylinux_2_28andmusllinux_1_2, x86_64 and
aarch64) and the source distribution, with their SHA-256. Nothing is published on PyPI; the README says
how to install from the release.
Changed
- Depends on
microrti-client,microrti-encodingandmicrorti-fom0.3.0. The network tests of the CI
run against themicrortiandchatbinaries of MicroRTI v0.3.0. - Connect: the
ConfigurationResultis completed with what the federate side did with the configuration
(IEEE 1516.1-2025 4.2). Over the Federate Protocol,address_usedisTruewhen the link reached the
RTI at the address given, and theFED_*andTLS_*settings it applied giveSETTINGS_APPLIEDand
are named inmessage. An ambassador of anEmbeddedRtinames them as without effect, and
address_usedisTruewhen the scheme registered withEmbeddedRti.registerchose the RTI. - Connect: an unknown
FED_*orTLS_*key or a value that cannot be read no longer raises
ConnectionFailed: the connection is made and the result isSETTINGS_FAILED_TO_PARSE, with the line
and the reason inmessage. Overtls://andwss://, aTLS_*line the federate side cannot use
still raisesConnectionFailed, naming the line: it may be the trust anchors written wrong (a
deliberate deviation of MicroRTI from 4.2). - Over the network, a response of the RTI larger than the federate's message size limit raises
RTIinternalErrorand the session goes on; themicrortiRTI 0.3.0 answers a request larger than its
own limit (a Create Federation Execution with large FOM modules, for instance) the same way. Both ended
the session before. A callback larger than the federate's limit still ends it. EmbeddedRtiis the RTI of MicroRTI 0.3.0. When the FOM modules leave the automatic resign directive
unspecified, it is now CancelThenDeleteThenDivest (IEEE 1516.2-2025 4.13.3; it was No Action): the
object instances of a lost federate are deleted. FOM modules are checked against more rules of
IEEE 1516.2-2025 and merged as its clause 7 requires (more InvalidFOM and InconsistentFOM). An empty
logical time implementation name at Create Federation Execution meansHLAfloat64Time(4.5.1). A
time-constrained federate receives a message stamped with its GALT once no other federate can still
send with that timestamp (8.8, 8.9), and the other corrections of time management of MicroRTI 0.1.2.microrti.encoding: the codec of a FOM resolves the basic data representations it defines of any size
up to 1024 bits, with the octet boundary of IEEE 1516.2-2025 4.14.10: up to 64 bits they are anint
(only 8, 16, 32 and 64 bits were; the others werebytesthat took the rest of the input). A
discriminant of anHLAvariantRecordthat no alternative applies to is encoded and decoded alone
(aVariantwithout value; it was refused).HLAextendableVariantRecordalways writes the padding
after its length (4.14.10.3), which changes the encoding of a record whose discriminant has more than
four octets and that carries no alternative (16 octets, not 12), and its length is signed.