Skip to content

parse prototxt files to python dict objects

License

Notifications You must be signed in to change notification settings

jinluyang/prototxt_parser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prototxt-parser

prototxt-parser allows to parse *.prototxt files to python dict objects

Usage:

From command line from this repo:

$ python3 prototxt_parser_main.py prototxt_file

Alternatively can use pip as well to get the package:

pip3 install --extra-index-url https://testpypi.python.org/pypi prototxt-parser

To run, from python:

input_string = ... # the prototxt string to be parsed e.g., open("some_prototxt_file").read()
from prototxt_parser.prototxt import parse
parsed_dict = parse(input_string)

my parsy cannot recognize braces {} ...

About

parse prototxt files to python dict objects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%