TLV - Type/Tag Length Format
Simple class that supports TLV encoding/decoding.
Installation
pip install tlvdict
Simple to use!
>>> from tlvdict import TLVDict
>>> tlv = TLVDict.FromDict({"5F25": "200531", "9F06": "A0000000041010"})
>>> tlv
TLVDict([('5F25', '200531'), ('9F06', 'A0000000041010')])
>>> tlv.build()
'5F25032005319F0607A0000000041010'
>>> tlv2 = TLVDict.FromHex("5F25032005319F0607A0000000041010")
>>> tlv2
TLVDict([('5f25', '200531'), ('9f06', 'A0000000041010')])
Release files for tlvdict 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tlvdict-1.2.0.tar.gz | 7.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tlvdict-1.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.2 kB
Release files / tlvdict-1.2.0.tar.gz
| Download URL | tlvdict-1.2.0.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a542745326dbf7128c7988e0447c596e12c439cb06604baf14c14caf5fa5b49
|
|
BLAKE2b-256 checksum How to use checksums |
2748ade8b911b448d37f7a5c4de48dba6b26422ee69da9df680424281dcfa86c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.11.0 Darwin/22.1.0
|
Release files / tlvdict-1.2.0-py3-none-any.whl
| Download URL | tlvdict-1.2.0-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
52fd338474062941a896e89f190361d7157463ead3b9e7fc811584498096a04e
|
|
BLAKE2b-256 checksum How to use checksums |
a040c035a5b2f978429df0b99eb92fc1b394484ea01c71d0f837ebbf886dd0e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.11.0 Darwin/22.1.0
|