Skip to content
/ pysett Public

tiny library for parsing the *.xml setting file into python data model

License

Notifications You must be signed in to change notification settings

wizath/pysett

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pysett - tiny library for parsing the *.xml setting file into python data model

usage

  • xml-structure is super simple
  • <tab> tag - starts each category
  • <option> tag - represents single option

example

xml file :

<settings>
   <tab name="general">
       <option name="text size" type="int" default="80"/>
       <option name="font size" type="int" default="20"/>
       <option name="color" type="str" default="black"/>
       <option name="padding" type="int" default="10"/>
   </tab>
</settings>

will be converted to :

Settings.general.text_size
Settings.general.font_size
Settings.general.color
Settings.general.paddng

where Settings is your storage object

ToDo

  • inital commit
  • test files
  • fool proof
  • gui integration (PyQt)
  • export to pip

About

tiny library for parsing the *.xml setting file into python data model

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages