tomlkit icon indicating copy to clipboard operation
tomlkit copied to clipboard

Style-preserving TOML library for Python

Results 31 tomlkit issues
Sort by recently updated
recently updated
newest added

It would be helpful if we could get the line numbers of every parsed toml element. We could probably add it as a new parameter to the` Item` class. The...

enhancement

I've just tried to set up comment parsing in a TOML config file to see if I could use it for documentation, and it seems like it'll work except for...

Error: > Argument 2 to "add" of "Container" has incompatible type "Table"; expected "Optional[Item]" However, in the source code of `Item`, it indicates it can be a `Table`. https://github.com/sdispater/tomlkit/blob/627fb1ae496a2531ec738e00c1abf6339472c1a4/tomlkit/items.py#L303-L304 It...

``` =================================== FAILURES =================================== _____________________ test_datetimes_behave_like_datetimes _____________________ def test_datetimes_behave_like_datetimes(): i = item(datetime(2018, 7, 22, 12, 34, 56)) assert i == datetime(2018, 7, 22, 12, 34, 56) assert i.as_string() == "2018-07-22T12:34:56"...

These warnings are new with python 3.8 (see the "Changed in version 3.8" note at the end of https://docs.python.org/3.8/reference/lexical_analysis.html#string-and-bytes-literals ): ``` =============================== warnings summary =============================== tests/test_write.py:8 /builddir/build/BUILD/tomlkit-0.5.3/tests/test_write.py:8: SyntaxWarning: invalid escape...

I am wondering, would this be a feasible feature to implement? I dug into the code and saw there is an internal `_insert_at` method implemented; would it be a good...

enhancement

pipenv applies a patch to their vendored copy of tomlkit, and it seems that it doesnt exist here yet. The patch is https://github.com/pypa/pipenv/blob/master/tasks/vendoring/patches/vendor/tomlkit-fix.patch Parts of that have been merged, but...

The following is valid however **tomlkit** isn't able to properly handle the dual scopes: ```toml a.b.c = 12 [a.b] d = 34 ``` ```python import tomlkit doc = tomlkit.parse("""\ a.b.c...

Hi. I ran into an issue when using tomlkit on windows with multiprocessing. ```python import multiprocessing as mp import tomlkit class Worker: def run(self): print(self.db_conf) print(self.db_conf['path']) # bug here, get()...

Due to Debian packaging, I have to work with some old versions of tomlkit. I would appreciate it if I could see the docs for past versions e.g. 0.6.0. Also...