star-spacepacket 0.1.1
CCSDS Space Packets, built and read strictly
Public state: Released & Verified. The registry label is RELEASED. What the states mean →
Apache-2.0 Released & Verified single file
Summary
CCSDS Space Packet primary header and packet boundary (CCSDS 133.0-B-2): encode and decode the six header fields, build and read whole packets, split a stream, advance the sequence count; every field checked, nothing masked, a truncated packet refused with the octet where the stream breaks; identical to spacepackets and ccsdspy on 1483 cases.
Run in your browser
Edit the code and press Run (or Ctrl+Enter). Python runs in your browser with this package's published code. The first run downloads Python once (about 12 MB).
Runs in the browser: all 75 tests pass in the browser's Python (Pyodide 314.0.7, Python 3.14.2), measured on 20 October 2026.
Use it on your computer
No account and no GitHub needed. Download, then install with one command:
- Install file · star_spacepacket-0.1.1-py3-none-any.whl 3 kB
- Single file — copy it alongside your code · star_spacepacket.py 6 kB
- Source code (.zip) 23 kB
python -m pip install star_spacepacket-0.1.1-py3-none-any.whlIn Python: import star_spacepacket
Cite it, and its bill of materials
For a paper, a report or a supplier file: the citation in two formats, and the software bill of materials (SBOM) in the two standard formats, with the fingerprint of the wheel.
@software{cavazzini_star_spacepacket_0_1_1,
author = {Cavazzini, Andrea},
title = {{star-spacepacket}: CCSDS Space Packets, built and read strictly},
version = {0.1.1},
year = {2026},
url = {https://andrea07072000.github.io/S.T.A.R.-/software/star_spacepacket/},
note = {Apache-2.0. Source: https://github.com/Andrea07072000/S.T.A.R.-, commit dc09f61d}
}
For developers
Install directly from the public repository:
python -m pip install "star-spacepacket @ git+https://github.com/Andrea07072000/S.T.A.R.-.git@dc09f61dcee098d518f070d6a23a8815defc1109#subdirectory=packages/star_spacepacket"
Technical sheet
Requirements
- R1
encode_headeranddecode_headerconvert between the six fields of the primary header and its 6 octets;encode_packetanddecode_packetdo the same for a whole packet, the length field being the number of data octets minus one;split_packetscuts a stream of packets laid end to end;next_countadvances the 14-bit sequence count. - R2 Layout of CCSDS 133.0-B-2, section 4.1.3: version (3 bits, 0), type (1), secondary header flag (1), APID (11), sequence flags (2), sequence count (14), data length (16).
- R3 Measured against two independent libraries, spacepackets and ccsdspy, each in its own interpreter: 701 headers encoded, 701 random headers decoded, 81 streams split into packets (one with the largest data field, 65536 octets): no difference.
- R4 Every function returns its result or raises
ValueError: a field that is not an integer in its range (booleans refused; the secondary header flag must be a bool), a header that is not 6 octets, a version other than 0, an empty or oversized data field, a packet whose length disagrees with its header, a stream that ends inside a packet (the message says at which octet).
Limits (what is not claimed)
The primary header and the packet boundary only: no secondary header format (time codes, PUS), no packet error control, no segmentation or reassembly of user data across packets, no check that sequence counts are consecutive, no transfer frames (see star_telemetry for extracting packets from frames). Idle packets (APID 2047) are returned like any other packet. A stream with one damaged length field cannot be resynchronised here: it is refused. Not affiliated with or endorsed by CCSDS; the standard is cited as the source of the layout.
Release gate
Computed by the registry from the result files, with the same function that decides RELEASED.
- Mutation score, latest measure of each module (needs at least 0.850)
- star_spacepacket.py 1.000 (2026-10-07)
- Independent implementations written by others (needs 2)
- ccsdspy read_primary_headers and split_packet_bytes, spacepackets SpacePacketHeader (pack, unpack)
- Result
- Released & Verified
Evidence in the registry
| Check | Status | Recorded | What was observed |
|---|---|---|---|
| Clean install from the release tag | VERIFIED | 2026-10-07 | pytest outside the tree: 75 passed in 0.32s |
| Clean install from the release tag | VERIFIED | 2026-10-07 | pytest outside the tree: 68 passed in 0.35s |
| Unit tests | VERIFIED | 2026-10-07 | 68 passed in 0.53s |
| Review | VERIFIED | 2026-10-07 | Requirements, interface, units, data provenance, dependency surface and failure behaviour reviewed |
| Review | VERIFIED | 2026-10-07 | Re-running the cross-check gives a byte-identical evidence file |
| Reference value | VERIFIED | 2026-10-07 | encode_header(0x123, 42, 1, secondary_header=True) = 0923c02a0001; encode_header(2047, 0, 0) = 07ffc0000000 (suite: 68 passed in 0.53s) |
| Cross-check with independent libraries | VERIFIED | 2026-10-07 | star_spacepacket encodes and decodes the CCSDS Space Packet primary header and splits a stream of packets exactly as two independent libraries do |
| Benchmark | VERIFIED | 2026-10-07 | 1483 cases against each library, 0 differences |
Fingerprints (SHA-256)
| star_spacepacket-0.1.1-py3-none-any.whl | c125ed4da0e7df6ba5dfa0a583d89b3f48d1e17b2207eb840d5eba22c9252f7f |
| star_spacepacket.py | 32ac1ffb1eb6bf8e0cc5560ef1480ac2e2298125bd13a80b1ed42d5625d36cb4 |
| star_spacepacket-0.1.1-source.zip | 8ad1902ef19d0e6491b70c34aa8b580870d867eef808ccc45c3f97175f2e1052 |
