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.1.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.1-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tasd-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 d628694fe93e24edb8b5edb282574968b92e9c32ad15b0d5476209ac5ee9bccf
MD5 1c11b6936904c3dbca34427ef4176eef
BLAKE2b-256 17b04a64b40b2ba2a0d6ec3aebc5cc47fb7b48260727514160a74e8a2d708b6c

See more details on using hashes here.

Provenance

The following attestation bundles were made for tasd-1.0.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: tasd-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c8b92891023e01cda65ef16d674722744ef8d530a19251e117fa8ebcea97c0b8
MD5 00f3849e5955a83be8e54d0baddc337f
BLAKE2b-256 2768cafb5adb77c98d0fd0987a22e916321c795845f65237fd399349a33fa596

See more details on using hashes here.

Provenance

The following attestation bundles were made for tasd-1.0.1-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