Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Simple vbf parser

Project description

Build Status codecov PyPI Python: 3.6+ Code style: black License: MIT Code quality: MyPy

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

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for vbf-parser, version 1.3.0
Filename, size File type Python version Upload date Hashes
Filename, size vbf_parser-1.3.0-py3-none-any.whl (13.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size vbf-parser-1.3.0.tar.gz (6.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page