TASD file serializer and deserializer
Project description
TASD
This is a python library for the serialization and deserialization of tasd files using the tasd file specfication
Installation
Install tasd with pip
pip install tasd
Usage/Examples
Read a file in a print all the packets in it
from tasd import TASD
with open("example.tasd", "rb") as f:
file = TASD.from_bytes(f.read())
print(file)
for packet in file. packets:
print(packet)
Create a tasd file from scratch and add packets to it
from tasd import TASD, packets
file = TASD()
file.packets.append(packets.extra.Comment(comment="This is a comment"))
file.packets.append(packets.general.Attribution(type=packets.general.Attribution.ATTRIBUTION_TYPE.TASD_FILE_CREATOR, name="Me"))
for packet in file. packets:
print(packet)
print(file.to_bytes())
Brief API Reference
Not an exhaustive list
tasd.TASD
Class holding properties of the tasd file itself: Version and KeyLength
tasd.constants.PACKET_TYPES
Enumlike class containing the different packet type indentifiers
tasd.packets
Submodule containing all the different packet classes
For details about the different packet types i suggest reading the specification document to determine what packets you need to consider for your use case
Appendix
Any additional information goes here
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tasd-1.0.0.tar.gz.
File metadata
- Download URL: tasd-1.0.0.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b60d0dd255b25a052bf83da507c664e3443baeb2642201481869e98d02a000f5
|
|
| MD5 |
0683b1b04580997ca5697a28277b1ef4
|
|
| BLAKE2b-256 |
fcd5cf4761724692fc911258bf7f2f9bf06ac07e47bc91f9bd0f1d7f07d634e9
|
File details
Details for the file tasd-1.0.0-py3-none-any.whl.
File metadata
- Download URL: tasd-1.0.0-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f55a77cbcb8bfb0dff01644fbc48ba55eb541119e0910f566e94b7a9fb498a1
|
|
| MD5 |
ed71076df68d6757d7c8e03138414d4a
|
|
| BLAKE2b-256 |
2cfd67820bae2d268f2ad1dcf755c1550b65da2260d7a5bcd57a790bc3995acb
|