VDF 3
Pure python module for (de)serialization to and from VDF that works just like json.
VDF is Valve's KeyValue text file format
Supports:
kv1
Installation
Python 3.7 or higher is required
pip install git+https://github.com/ValvePython/vdf
Example usage
For text representation.
import vdf
# parsing vdf from file or string
d = vdf.load(open('file.txt'))
d = vdf.loads(vdf_text)
d = vdf.parse(open('file.txt'))
d = vdf.parse(vdf_text)
# dumping dict as vdf to string
vdf_text = vdf.dumps(d)
indented_vdf = vdf.dumps(d, pretty=True)
# dumping dict as vdf to file
vdf.dump(d, open('file2.txt','w'), pretty=True)
For binary representation
d = vdf.binary_loads(vdf_bytes)
b = vdf.binary_dumps(d)
# alternative format - VBKV
d = vdf.binary_loads(vdf_bytes, alt_format=True)
b = vdf.binary_dumps(d, alt_format=True)
# VBKV with header and CRC checking
d = vdf.vbkv_loads(vbkv_bytes)
b = vdf.vbkv_dumps(d)
Using an alternative mapper
d = vdf.loads(vdf_string, mapper=collections.OrderedDict)
Metadata
Release files for vdf3 3.1.1.1
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 | |
|---|---|---|---|---|
| vdf3-3.1.1.1.tar.gz | 98.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vdf3-3.1.1.1-cp39-cp39-macosx_10_9_x86_64.whl | CPython 3.9 | CPython 3.9 | macOS 10.9+ x86-64 | Details |
Total release size: 285.8 kB
Release files / vdf3-3.1.1.1.tar.gz
| Download URL | vdf3-3.1.1.1.tar.gz |
|---|---|
| Size | 98.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
16a21da4029382687c8ff8db584291d451fe9b6366c3cf154f76aa9e1d52d378
|
|
BLAKE2b-256 checksum How to use checksums |
f3f0f5abf9898f326eea460add27f518f7cfad9388dc1dd314787b6e4e72bb88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0b4
|
Release files / vdf3-3.1.1.1-cp39-cp39-macosx_10_9_x86_64.whl
| Download URL | vdf3-3.1.1.1-cp39-cp39-macosx_10_9_x86_64.whl |
|---|---|
| Size | 187.5 kB |
| Tags | CPython 3.9 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
811ded59ec53bf729c2106ff1ea696978a10a0fd9a9b017fd21d321e6c4be4de
|
|
BLAKE2b-256 checksum How to use checksums |
80b90e861e12731fec496170c70421e4511b9287e3e8cf18d6fa107cec54efa9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0b4
|
Security for vdf3 3.1.1.1
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.