{ "info": { "author": "Rafal Slaby", "author_email": "rafal.slaby222@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8" ], "description": "[![Build Status](https://travis-ci.org/rafalslaby/vbf_parser.svg?branch=master)](https://travis-ci.org/rafalslaby/vbf_parser)\n[![codecov](https://codecov.io/gh/rafalslaby/vbf_parser/branch/master/graph/badge.svg)](https://codecov.io/gh/rafalslaby/vbf_parser)\n[![PyPI](https://img.shields.io/pypi/v/vbf_parser)](https://pypi.org/project/vbf-parser/)\n[![Python: 3.6+](https://img.shields.io/badge/python-3.6%2B-blue)](https://img.shields.io/badge/python-3.6%2B-blue)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Code quality: MyPy](https://img.shields.io/badge/static%20analysis-mypy-informational)](https://github.com/python/mypy)\n[![Security: bandit](https://img.shields.io/badge/security-bandit-blueviolet)](https://github.com/PyCQA/bandit)\n\n# VBF parser\n\nvbf-parser is a Python library for parsing VBF files.\n\n## Installation\n\nUse the package manager [pip](https://pip.pypa.io/en/stable/) to install.\n\n```bash\npip install vbf-parser\n```\n\n## Usage\n\nSimple parsing with converting to json:\n\n```python\nimport json\nfrom vbf_parser import extract_header_body, jsonify_vbf_header\nwith open(\"file.vbf\", \"rb\") as file:\n header_body = extract_header_body(file)\nvbf = json.loads(jsonify_vbf_header(header_body))\n```\n\n#### Work in progress:\nProper lexing and manual parsing:\n```python\nfrom vbf_parser import extract_header_body, lex_vbf_header, parse_vbf_tokens\nwith open(\"file.vbf\", \"rb\") as file:\n header_body = extract_header_body(file)\nvbf = parse_vbf_tokens(lex_vbf_header(header_body))\n```\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "vbf-parser", "package_url": "https://pypi.org/project/vbf-parser/", "platform": "", "project_url": "https://pypi.org/project/vbf-parser/", "project_urls": null, "release_url": "https://pypi.org/project/vbf-parser/1.4.0/", "requires_dist": null, "requires_python": ">=3.6", "summary": "Simple vbf parser", "version": "1.4.0", "yanked": false, "yanked_reason": null }, "last_serial": 6676925, "releases": { "1.4.0": [ { "comment_text": "", "digests": { "md5": "a00ba0d9269a8e7b05d96c0b51fa0e95", "sha256": "5329747fa58d580a1497e87f5bcb010563eab8af6fccd6f79a9d626de613f464" }, "downloads": -1, "filename": "vbf_parser-1.4.0-py3-none-any.whl", "has_sig": false, "md5_digest": "a00ba0d9269a8e7b05d96c0b51fa0e95", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 14208, "upload_time": "2020-02-21T18:10:42", "upload_time_iso_8601": "2020-02-21T18:10:42.400455Z", "url": "https://files.pythonhosted.org/packages/31/90/25379356ced191f587cdfc9590828dc3449edc80cc706ad69756b3efe1c1/vbf_parser-1.4.0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "2e59f1a43c9bd5d75360a078cccc7475", "sha256": "8e5369b676c516c4ac63d91241f2b8afd70bb6e3420cdfd2c268a8693111afff" }, "downloads": -1, "filename": "vbf-parser-1.4.0.tar.gz", "has_sig": false, "md5_digest": "2e59f1a43c9bd5d75360a078cccc7475", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 7102, "upload_time": "2020-02-21T18:10:50", "upload_time_iso_8601": "2020-02-21T18:10:50.720531Z", "url": "https://files.pythonhosted.org/packages/0d/db/e0f98dd6e210ad5e50f225a3b3e50a350ef9b02c7cd45349a8c195d47a82/vbf-parser-1.4.0.tar.gz", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a00ba0d9269a8e7b05d96c0b51fa0e95", "sha256": "5329747fa58d580a1497e87f5bcb010563eab8af6fccd6f79a9d626de613f464" }, "downloads": -1, "filename": "vbf_parser-1.4.0-py3-none-any.whl", "has_sig": false, "md5_digest": "a00ba0d9269a8e7b05d96c0b51fa0e95", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 14208, "upload_time": "2020-02-21T18:10:42", "upload_time_iso_8601": "2020-02-21T18:10:42.400455Z", "url": "https://files.pythonhosted.org/packages/31/90/25379356ced191f587cdfc9590828dc3449edc80cc706ad69756b3efe1c1/vbf_parser-1.4.0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "2e59f1a43c9bd5d75360a078cccc7475", "sha256": "8e5369b676c516c4ac63d91241f2b8afd70bb6e3420cdfd2c268a8693111afff" }, "downloads": -1, "filename": "vbf-parser-1.4.0.tar.gz", "has_sig": false, "md5_digest": "2e59f1a43c9bd5d75360a078cccc7475", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 7102, "upload_time": "2020-02-21T18:10:50", "upload_time_iso_8601": "2020-02-21T18:10:50.720531Z", "url": "https://files.pythonhosted.org/packages/0d/db/e0f98dd6e210ad5e50f225a3b3e50a350ef9b02c7cd45349a8c195d47a82/vbf-parser-1.4.0.tar.gz", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }