Spacepackets

Latest version: v0.24.1

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

Scan your dependencies

Page 2 of 7

0.20.0

Added

- Added `__repr__` for `AckPdu` class.
- Added `__repr__` for `KeepAlivePdu` class.
- Added `__repr__` for `PromptPdu` class.
- Added a `finished_params` property for the `FinishedPdu` class.
- Added a `transmission_mode` property for the `AbstractPduBase` class.
- Renamed `trans_mode` setter and getter properties to `transmission_mode`.
- Filedata PDU: New `SegmentMetadata` dataclass for better modelling of the filedata PDU.
- Filedata PDU: New API to retrieve the maximum allowed file segment size for a given maximum
packet size.
- NAK PDU: New API to retrieve the maximum amount of segment requests for a given maximum packet
size.

Changed

- Filedata PDU: The `FileDataParams` dataclass now is composed of an `Optional[SegmentMetadata]`.

0.19.0

Fixed

- Set the `direction` field of the PDU classes correctly depending on the PDU type. This field
was previously always set to `Direction.TOWARDS_RECEIVER`.

Changed

- Moved `pdu_header` abstract property from `AbstractFileDirectiveBase` to `AbstractPduBase`
class
- Renamed `TlvHolder` field `base` to `tlv` and `PduHolder` field `base` to `pdu`.

Added

- Added `direction` abstract method for `AbstractPduBase`.

0.18.0

Changed

- The `parse_space_packets` function analysis queue argument is now expected to be filled
on the right side.

0.18.0rc1

Added

- New `ProxyPutRequestParams` dataclass as a generic data model for the CFDP proxy put request
parameters.
- New API for `ReservedCfdpMessage`
- `get_reserved_cfdp_message_type`: Retrieve type as `int`
- `is_cfdp_proxy_operation`
- `get_cfdp_proxy_message_type`
- `get_proxy_put_request_params` to extract proxy put request parameters
from the message when applicable.
- `MessageToUserTlv`: Added new method `to_reserved_msg_tlv` which can be used to create
a `ReservedCfdpMessage` from the instance when applicable.

Changed

- Renamed `MessageToUserTlv.is_standard_proxy_dir_ops_msg` to `is_reserved_cfdp_message`
- `ProxyPutRequest` constructor now expects a `ProxyPutRequestParams` instance.
- Swapped `FileDataPdu`, `KeepAlivePdu`, `EofPdu`, `FinishedPdu`, `PromptPdu` and `AckPdu`
constructor argument order : `PduConfig` is the first parameter now while
`FileDataParams` is the second parameter. `PduConfig` is the only common parameter, so it makes
more sense to have it as the first argument.

Fixed

- The new `is_reserved_cfdp_message` API now checks for a value length of 5 to ensure the message
type is included as well.

0.18.0rc0

- Bumped required Python version to v3.8.

Changed

- Renamed `TlvTypes` to `TlvType`.
- Package version is single-sourced using the `importlib.metadata` variant: The `pyproject.toml`
now contains the version information, but the informatio can be retrieved at runtime
by using the new `version.get_version` API or `importlib.metadata.version("spacepackets")`.

Added

- Added basic low level support for the Proxy Put Request operation.

Removed

- `setup.py` which is not required anymore.

0.17.0

Changed

- Moved `CRC16_CCITT_FUNC` from `spacepackets.ecss.crc` to `spacepackets.crc`. This checksum is
not just used by PUS, but by the CCSDS TC and the CFDP standard as well.

Added

- Checksum and PDU length checks when creating PDUs from a raw buffer.
- CRC flag support for CFDP.

Fixed

- Bugfix in `ccsds.spacepackets` `parse_space_packets` function: If a broken
packet was detected and the current parsing index was larger than 0, the broken
packet was not detected and re-inserted into the `deque` properly.

Page 2 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.