pytoml icon indicating copy to clipboard operation
pytoml copied to clipboard

A TOML-0.4.0 parser/writer for Python.

Results 8 pytoml issues
Sort by recently updated
recently updated
newest added

Currently this is hard-coded: https://github.com/avakar/pytoml/blob/cd54e915672dc2c3039b874c70d402abc4ec5f00/pytoml/writer.py#L47 Would be nice to pass an option to use the '' format for projects where this is the standard

python 3.4.3, pytoml==0.1.7 ``` >>> import pytoml as toml >>> import datetime >>> d={'dt':datetime.datetime.now()} >>> d {'dt': datetime.datetime(2016, 2, 25, 11, 18, 17, 536767)} >>> toml.dumps(d) 'dt = 2016-02-25T11:18:17.536767Z\n' >>>...

Hello, would it be possible to add an option for pretty printed/indented output? So we can have: ```TOML [[fruit]] name = "apple" [fruit.physical] color = "red" shape = "round" [[fruit.variety]]...

When `_Source._expect()` fails it raises a TomlError with the unhelpful error message `msg`: https://github.com/avakar/pytoml/blob/cb92445ca769b3966b3976cd69f5140761f15843/pytoml/parser.py#L164 Example to provoke this error: ``` [a]b ```

``` a.b.c = 1 # Equivalent to: [a.b] c = 1 ``` This is a new feature added to what's going to become TOML 1.0: https://github.com/toml-lang/toml/pull/505 Of course, TOML 1.0...

Hi! I was wondering if there would be any possibilities to include commented out pairs. My problem at the moment is that I load a toml file, that has default...

I have some code parsing TOML doing: ```python except toml.TomlDecodeError as e: msg = "'{}' is not a valid TOML file (Error given is: {})\n" error = e.args[0] if error...

I am trying to use a custom dictionary class for all parsed dictionaries and I thought that I could do that using the translate callback to load/loads. Turns out, translate...