Onboardapis

Latest version: v1.3.2

Safety actively analyzes 641082 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

1.3.0

\+ Added ``NotImplementedInAPIError`` that is raised every time a functionality is requested by the user that is not covered by the providers API
\+ Added the ``IncompleteVehicleMixin`` and ``IncompleteTrainMixin`` mixin classes, that will raise a ``NotImplementedInAPIError`` on not implemented abstract methods
\+ Added the ``DummyDataConnector`` that is now the default ``DataConnector`` connected to a ``Train`` object
\+ Added support for FlixTrains ``FlixTainment`` API

Known issues:
---

Can't use ``FlixTainment`` because of wrong MRO - fixed in v1.3.1

1.2.3

\* TLS can't be disabled for a whole ``DataConnector`` anymore
\* Reorganized and optimized parts of the backend code

1.2.2

\+ Added more type hints

\* Fixed ``JSONDataConnector`` adds an _application/json_ header
\* Fixed ``Station().connections`` for ``ICEPortal``

1.2.1

Connecting trains can't be generated for ``ICEPortal`` - fixed in v1.2.2

1.2.0

1.1.0

\+ Added the ``Train.connected`` property to easily check if you are connected to the trains on-board API
\+ Added the ``Train.shutdown()`` method to safely close the DataConnectors of the Train
\+ Added a context manager to Train, you can now use ``with Train() as train``, which automatically calls ``Train.init()`` and ``Train.shutdown()``
\+ Added conversions for coordinates (decimal <-> degrees, minutes, seconds)
\+ Added the ``InitialConnectionError`` to better indicate whether the connection to the API is lost or can't be established

\* Fixed an issue where ``ICEPortal`` fails to generate ``ICEPortal().stations``

Known issues:
---

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.