Skip to content

djpugh/fstring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple python module for reading in strings based on the PEP 3101 string.format() method

install with python setup.py install

and then simply use:

import fstring

fstring.FormatString("{0:3i} a format string")

fstring.format(...) behaves like string.format(...)

fstring.read(inputString) parses the input string according to the format string and returns a dictionary of the results

To run tests:
>>import fstring
>>fstring._runTests()

About

Simple python module to allow format based reading of strings

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages