Simple vbf parser
Project description
VBF parser
vbf-parser is a Python library for parsing VBF files.
Installation
Use the package manager pip to install.
pip install vbf-parser
Usage
Simple parsing with converting to json:
import json
from vbf_parser import extract_header_body, jsonify_vbf_header
with open("file.vbf", "rb") as file:
header_body = extract_header_body(file)
vbf = json.loads(jsonify_vbf_header(header_body))
Work in progress:
Proper lexing and manual parsing:
from vbf_parser import extract_header_body, lex_vbf_header, parse_vbf_tokens
with open("file.vbf", "rb") as file:
header_body = extract_header_body(file)
vbf = parse_vbf_tokens(lex_vbf_header(header_body))
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vbf-parser-1.4.0.tar.gz
(7.1 kB
view hashes)
Built Distribution
vbf_parser-1.4.0-py3-none-any.whl
(14.2 kB
view hashes)
Close
Hashes for vbf_parser-1.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5329747fa58d580a1497e87f5bcb010563eab8af6fccd6f79a9d626de613f464 |
|
MD5 | a00ba0d9269a8e7b05d96c0b51fa0e95 |
|
BLAKE2b-256 | 319025379356ced191f587cdfc9590828dc3449edc80cc706ad69756b3efe1c1 |