Skip to content

Releases: ianlini/flatten-dict

0.4.2

08 Aug 09:49
42a9b62
Compare
Choose a tag to compare

Change

  • require importlib-metadata for Python<3.8 to improve importing performance (#46)
  • support enumerating the objects that don't support bool() (#42, #49)

Code Quality

  • migrate to Github Actions and test Python 3.10 (#47, #48)

0.4.1

22 Jul 16:59
3c8e6cc
Compare
Choose a tag to compare

Change

  • improve import speed when Python >= 3.8 or importlib-metatdata is installed (#44) (thanks @isidentical)

0.4.0

16 May 13:15
47c5ffa
Compare
Choose a tag to compare

New

  • add max_flatten_depth to flatten() (#22, #31, #35)

Change

  • made pathlib2 optional for Python < 3.4 (#32)
  • use poetry-core instead of poetry in pyproject.toml (#36)
  • deprecate flatten_dict.splitter in favor of flatten_dict.splitters (#38)
  • deprecate flatten_dict.reducer in favor of flatten_dict.reducers (#38)

Code Quality

  • improve code quality (#32)
  • test for Python 3.9 (#34)

0.3.0

19 Apr 10:01
85263bd
Compare
Choose a tag to compare

New

  • add dot splitter and reducer (#20) (thanks @zemelLeong)
  • add factory functions make_reducer() and make_splitter to create reducer and splitter with delimiter (#25) (thanks @hsorsky)

Fix

  • cast type to str when using underscore reducer (#21) (thanks @gllrt)

0.2.0

29 Sep 08:01
Compare
Choose a tag to compare

New

  • add underscore splitter and reducer (#13) (thanks @duarteocarmo)
  • add keep_empty_types to flatten() (#18)

0.1.0

30 May 15:22
Compare
Choose a tag to compare

New

  • add a parameter enumerate_types to flatten() (#5, #7)

0.0.3.post1

04 Jun 15:53
Compare
Choose a tag to compare

Docs

  • add documentation for unflatten()
  • fix a typo in docstring

0.0.3

25 May 16:00
Compare
Choose a tag to compare

New

  • implement unflatten (#2)

0.0.2

16 Dec 09:26
Compare
Choose a tag to compare

Fix

  • accept collections.Mapping as input (oringinally collections.MutableMapping) (1c6d5d4)
  • correctly raise error when invert with duplicate value (c7d8697)

0.0.1

15 Dec 09:35
Compare
Choose a tag to compare
path reducer