Skip to content

etng/tomless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Versions

tomless

A toml language file parser made for less dependency

install

pip install -e git+git@github.com:etng/tomless.git@master#egg=tomless

usage

cli

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

code

from tomless import TomlParser
result = TomlParser.parse_file('example.toml')
print toml

known issues

  • can not parse escaped quote char in string due to regexp limit
  • should merge regexp to improve tokenlize speed
  • many others

thanks

About

a toml language parser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages