A toml language file parser made for less dependency
pip install -e git+git@github.com:etng/tomless.git@master#egg=tomless
tomless example.toml -o example.json
tomless example.toml -f json -o example.json
tomless example.toml -f xml -o example.json
tomless example.toml -f dict -o example.txt
tomless example.toml -f dict
# npm install -g prettyjson pretty-xml
tomless example.toml -f json|prettyjson
tomless example.toml -f xml|pretty-xml
from tomless import TomlParser
result = TomlParser.parse_file('example.toml')
print toml
- can not parse escaped quote char in string due to regexp limit
- should merge regexp to improve tokenlize speed
- many others