Spacepackets

Latest version: v0.24.1

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

Scan your dependencies

Page 1 of 7

0.24.1

Reverted

- The `apid` constructor arguments for the PUS TMTC constructors now have a default value of 0.
This allows setting the APID in a centralized manner for APID groups and can reduce duplication.

0.24.0

Removed

- Global configuration module for TC and TM APID was removed.

Changed

- ECSS PUS telemetry time handling is now more generic and low level: Constructors expect
a simple `bytes` type while unpackers/readers expect the length of the timestamp. A helper
constant for the offset of the timestamp is exposed which can help with determining the
length of the timestamp.
- `CdsShortTimestamp.from_now` renamed to `now`.
- The ECSS TMTC APID field must not be set explicitely in the class constructors.

Added

- `spacepackets.ecss.tm.PUS_TM_TIMESTAMP_OFFSET` constant which can be used as a look-ahead to
determine the timestamp length from a raw PUS TM packet.
- `spacepackets.ccsds.CCSDS_HEADER_LEN` constant.

0.23.1

Added

- PUS TC app data setter method.
- New `PusTelecommand` alias/shorthand: `PusTc`.
- New `SpacePacketHeader` alias/shorthand: `SpHeader`.
- New `PusTelemetry` alias/shorthand: `PusTm`.

0.23.0

Changed

- Explicitely disambigute `ByteFieldU<[8, 16, 32, 64]>.from_bytes` from
`UnsignedByteField.from_bytes` by renaming them to
`ByteFieldU<[8, 16, 32, 64].from_<[8, 16, 32, 64]>_bytes`. This might break calling code which
might now call `UnsignedByteField.from_bytes`.
- Improve `ByteFieldGenerator.from_int` and `ByteFieldGenerator.from_bytes` method. These
will now raise an exception if the passed value width in not in [1, 2, 4, 8].

Added

- Added `ByteFieldU64` variant.
- Added `spacepackets.countdown` utility module. This class was moved from
`tmtccmd.util.countdown` and contains the `Countdown` class. It was moved here so it can
be re-used more easily.
- Added `spacepackets.seqcount` utility module. This class was moved from
`tmtccmd.util.seqcnt` and contains sequence counter abstractions and concrete implementations.
It was moved here so it can be re-used more easily.

0.22.0

Changed

- Extended `AbstractSpacePacket` with the following abstract properties:
- `ccsds_version`
- `packet_id`
- `packet_seq_control`
- The following properties were added but use the abstract properties:
- `packet_type`
- `sec_header_flag`
- `seq_flags`

Fixed

- Metadata PDU typing correction.
- More robust `__eq__` implementations which check the type compared against.
- Some minor typing corrections.

Added

- The `PusTelecommand` class now implements `AbstractSpacePacket`.

0.21.0

Fixed

- Directive code for the NAK PDU was set to the ACK PDU directive code.

Changed

- Reordered argument order for `FinishedParams` to be in line with the CFDP standard. This might
break code not using keyword arguments.
- Renamed `FileDeliveryStatus` to `FileStatus` to be closer to the CFDP name.
- Moved `spacepackets.cfdp.pdu.finished.FileDeliveryStatus` to `spacepackets.cfdp.defs.FileStatus`.
The new enumeration is also re-exported in `spacepackets.cfdp`.
- Moved `spacepackets.cfdp.pdu.finished.DeliveryCode` to `spacepackets.cfdp.defs.DeliveryCode`.
The new enumeration is also re-exported in `spacepackets.cfdp`.
- Renamed `len` field of CFDP LV to `value_len` to avoid confusion and for consistency.
- Renamed `length` field of CFDP TLV to `value_len` to avoid confusion and for consistency.

Added

- New `TransactionId` class used for unique identification of CFDP transfers.
- `UnsignedByteField.from_bytes` constructor.
- `DirectoryOperationMessageType` enumeration for CFDP.
- `OriginatingTransactionId` reserved CFDP message abstraction.
- `ProxyPutResponse` reserved CFDP message abstraction.
- `ProxyTransmissionMode` reserved CFDP message abstraction.
- `ProxyClosureRequested` reserved CFDP message abstraction.
- `DirectoryListingRequest` reserved CFDP message abstraction.
- `DirectoryListingResponse` reserved CFDP message abstraction.

Removed

- USLP configuration module.

Page 1 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.