NEWS¶
0.10.1 - 2025-07-31 ¶
Fixes¶
- Fix validation of
--reader,--writer, and--patternoptions. This addresses a regression introduced in v0.10.0 while adding compatibility forclick8.2.
0.10.0 - 2025-06-06 ¶
Added¶
- toml: treat tomli as a separate entity from tomllib. This allows using tomli instead of tomllib from the stdlib on newer Python versions to take advantage of the mypyc speedups in tomli.
- Support Python 3.14
Fixed¶
- cli: fix compatibility with click 8.2
0.9.0 - 2025-03-02 ¶
Added¶
- set: add top-level
replacecommand based onarrays replacethat operates on a single string key instead of an array of strings - set: add
--requiredflag to[arrays] replaceandarrays delitemsubcommands - set: add
regex_fullmatch,regex_partial, andregex_searchpattern types to[arrays] replaceandarrays delitem
0.8.0 - 2024-09-16 ¶
Added¶
- arrays delitem: add
--keyflag to access arrays of tables (see https://todo.sr.ht/~gotmax23/tomcli/9 andman tomcli-set-arraysfor more details!). - packaging: declare support for Python 3.13
Changed¶
- all: parsing of
SELECTORs is now more strict. Keys must be quoted if they contain characters that are not allowed as TOML keys without quotes. For example,tomcli-get foo.toml "multiple words", given thatfoo.tomlcontains"multiple words" = 1234, used to return1234but now errors. Usetomcli-get foo.toml "'multiple words'"instead. Trailing quotes are now handled properly, as well. - lists: the
listssubcommand has been renamed toarrays, to align with the TOML standard's name for that data type.listswill perpetually remain an alias to thearrayscommand; backwards compatibility is important to the tomcli project.
Fixed¶
- doc: use proper unicode dashes in manpages
0.7.0 - 2024-05-06 ¶
Added¶
cli set del: allow removing multiple keys in one invocationformatters: add-F newline-keysand-F newline-values
Removed¶
- Remove support for Python 3.8
0.6.0 - 2024-03-28 ¶
Added¶
cli main: add command descriptioncli set: allow passing multiple values to the append commandcli: supportpython -m tomclidoc: add manpagesdoc: add mkdocs configuration
Fixed¶
cli set: remove unnecessaryresilient_parsingconditionalcli get: properly handleFormatterErrorexceptions
0.5.0 - 2023-12-14 ¶
Added¶
- README.md: add usage examples
- tomcli.spec: add smoke tests
- tomcli.spec: add minimal py3_test_envvars def for EPEL 9
Changed¶
- build: use flit_core instead of hatchling as build backend
- cli: use click instead of typer as CLI framework
Fixed¶
- cli: allow accessing keys containing dots
0.4.0 - 2023-12-02 ¶
Added¶
- cli set: add
truesubcommand - cli set: add
falsesubcommand - cli: add
--versionargument - cli: add parent
tomclicommand withsetandgetsubcommands - cli get: add
-F/--formatterarg to customize output - cli: add
tomcli-formatters/tomcli formatterscommand to list availablegetformatters
0.3.0 - 2023-09-07 ¶
Added¶
- cli set: add
lists delitemsubcommand
Fixed¶
- Fully drop support for Python 3.7. Support for 3.7 was officially removed in the previous release, but the metadata was not updated correctly.
0.2.0 - 2023-09-01 ¶
Added¶
- add py.typed file
- declare support for Python 3.12
- cli set: add missing help messages
- cli set: add
lists replaceandlists strcommands
Fixed¶
- cli: improve error handling
Removed¶
- drop support for Python 3.7
0.1.2 - 2023-05-20 ¶
Fixed¶
- tomcli-set: fix typo in error message
- tomcli-set: fix recursive dictionary creation
0.1.1 - 2023-05-03 ¶
Added¶
- tomcli.spec: add gnupg2 BuildRequires
- tomcli.spec: add missing extras subpackages
- tomcli.spec: include NEWS.md
Fixed¶
- tomcli-get: fix broken toml backend fallback
- fix pronunciation description in packaging metadata and README
0.1.0 - 2023-04-14 ¶
Added¶
- cli: add tomcli-set subcommand
- packaging: add RPM specfile
- packaging: wire up automated copr builds.
- packaging: include shell completions in the RPM specfile
- internal: cleanup and increase tomlkit compat.
Dev builds are available at
gotmax23/tomcli-devand releases atgotmax23/tomcli.
0.0.0 - 2023-04-13 ¶
Initial release of tomcli, a CLI tool for working with TOML files.
Pronounced "tohm-clee."
Currently, tomcli only provides tomcli-get command but more are planned!