To import the pytlv module in your code:
```python
from pytlv.TLV import *
```
To parse data from a TLV string:
```python
tlv = TLV(['84', 'A5']) # provide the possible tag values
tlv.parse('840E315041592E5359532E4444463031A5088801025F2D02656E')
>>> {'84': '315041592E5359532E4444463031', 'A5': '8801025F2D02656E'}
```
To build a TLV string:
```python
tlv = TLV(['9F02', '9F04'])
tlv.build({'9f02': '000000001337'})
>>> '9F0206000000001337'
```
Metadata
Release files for pytlv 0.71
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytlv-0.71.tar.gz | 15.7 kB | Without provenance | Details for pytlv-0.71.tar.gz |
Release files / pytlv-0.71.tar.gz
| Download URL | pytlv-0.71.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6edc59d284339f5669c178a11e583a09db8b87c9e47ab2d5ed2a05c97cc98d56
|
|
BLAKE2b-256 checksum How to use checksums |
bffb05cb227d725bae7fce250c5b4706442d74e94e3f5faa655efd4621ed559c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pytlv 0.71
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.