Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tasd-1.0.2.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tasd-1.0.2-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file tasd-1.0.2.tar.gz.

File metadata

  • Download URL: tasd-1.0.2.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tasd-1.0.2.tar.gz
Algorithm Hash digest
SHA256 73977bd648e46f8163c77dbcec4ba4babf3da360b10058a50ebb2b7ff28e8646
MD5 baed923fffba49883d8fb008b9667f93
BLAKE2b-256 afe4aae6621a5b41bd7cdf611ef89a189cdfa2ef713efa0810ac638187e2a4d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for tasd-1.0.2.tar.gz:

Publisher: python-publish.yml on TheMas3212/tasd-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tasd-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: tasd-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tasd-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a1826a486c9da67b3c49a45ffbe4da61bd445ece4d6abf5676a53670c388887e
MD5 5c24bc512bd2fa868ec833df60b9a044
BLAKE2b-256 44b48cc70b16de97d52c9f3cb8a0dd35dcbbbce1b1dd4d3a66cc564619d867f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for tasd-1.0.2-py3-none-any.whl:

Publisher: python-publish.yml on TheMas3212/tasd-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page