{"id":26026132,"url":"https://github.com/gotmax23/tomcli-mirror","last_synced_at":"2026-06-01T03:31:37.621Z","repository":{"id":280309003,"uuid":"860200770","full_name":"gotmax23/tomcli-mirror","owner":"gotmax23","description":"CLI for working with TOML files. Pronounced \"tom clee.\" | Mirror of https://git.sr.ht/~gotmax23/tomcli | PRs not accepted in this mirror ","archived":false,"fork":false,"pushed_at":"2025-06-06T16:42:52.000Z","size":297,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-06T17:35:39.325Z","etag":null,"topics":["cli","python","toml"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gotmax23.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-09-20T02:23:59.000Z","updated_at":"2025-06-06T16:42:54.000Z","dependencies_parsed_at":"2025-03-02T17:25:11.498Z","dependency_job_id":"290dde1d-1c9a-4e97-b229-6eb0e46825fa","html_url":"https://github.com/gotmax23/tomcli-mirror","commit_stats":null,"previous_names":["gotmax23/tomcli-mirror"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/gotmax23/tomcli-mirror","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotmax23%2Ftomcli-mirror","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotmax23%2Ftomcli-mirror/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotmax23%2Ftomcli-mirror/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotmax23%2Ftomcli-mirror/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gotmax23","download_url":"https://codeload.github.com/gotmax23/tomcli-mirror/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotmax23%2Ftomcli-mirror/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33759178,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","python","toml"],"created_at":"2025-03-06T14:51:39.066Z","updated_at":"2026-06-01T03:31:37.613Z","avatar_url":"https://github.com/gotmax23.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\nCopyright (C) 2023 Maxwell G \u003cmaxwell@gtmx.me\u003e\nSPDX-License-Identifier: MIT\n--\u003e\n\n# [tomcli](https://tomcli.gtmx.me)\n\n[![builds.sr.ht status](https://builds.sr.ht/~gotmax23/tomcli/commits/main.svg)](https://builds.sr.ht/~gotmax23/tomcli/commits/main?)\n\n[![copr build status][badge-copr]][link-copr] (gotmax23/tomcli)\n\n[![copr build status][badge-copr-dev]][link-copr-dev] (gotmax23/tomcli-dev)\n\nCLI for working with TOML files. Pronounced \"tom clee.\"\n\n## Links\n\n- [**tomcli docsite**](https://tomcli.gtmx.me)\n- [tomcli project hub](https://sr.ht/~gotmax23/tomcli)\n- [tomcli git.sr.ht repo](https://git.sr.ht/~gotmax23/tomcli)\n- [tomcli tracker](https://todo.sr.ht/~gotmax23/tomcli)\n- [tomcli mailing list][archives] ([~gotmax/tomcli@lists.sr.ht][mailto])\n\n[archives]: https://lists.sr.ht/~gotmax23/tomcli\n[mailto]: mailto:~gotmax/tomcli@lists.sr.ht\n\n## Examples\n\n### `tomcli get`\n\n\u003e Query TOML files\n\nPrint a TOML table:\n\n``` console\n$ tomcli get pyproject.toml build-system\n[build-system]\nrequires = [\"flit_core \u003e=3.2,\u003c4\"]\nbuild-backend = \"flit_core.buildapi\"\n```\n\nGet a newline-separated list of strings:\n\n``` console\n$ tomcli get pyproject.toml --formatter newline-list project.dependencies\nclick\nimportlib_metadata; python_version\u003c'3.11'\n```\n\nList all available formatters for use\nwith `tomcli get -F` / `tomcli get --formatter`:\n\n``` console\n$ tomcli-formatters\ndefault\n        Use the `toml` formatter if the object is a Mapping and fall back to\n        `string`.\n\njson\n        Return the JSON representation of the object\n\nnewline-keys\n        Return a newline-separated list of Mapping keys\n\nnewline-list\n        Return a newline separated list\n\nnewline-values\n        Return a newline-separated list of Mapping values\n\nstring\n        Print the Python str() representation of the object\n\ntoml\n        Return the TOML mapping of the object\n\n```\n\n### `tomcli set`\n\n\u003e Modify TOML files\n\nDelete a TOML value:\n\n``` console\n$ tomcli set pyproject.toml del 'project.dependencies'\n```\n\nSet a value to `true` or `false`:\n\n``` console\n$ tomcli set pyproject.toml true 'tool.mypy.check_untyped_defs'\n$ tomcli set pyproject.toml false 'tool.mypy.check_untyped_defs'\n```\n\nSet a `float` or `int` value:\n\n``` console\n$ tomcli set pyproject.toml float 'tool.coverage.run.fail_under' '90.0'\n$ tomcli set pyproject.toml int 'tool.coverage.run.fail_under' '90'\n```\n\nSet a string value:\n\n``` console\n$ tomcli set pyproject.toml str 'project.readme' 'README.rst'\n```\n\n### `tomcli get arrays`\n\n\u003e Modify arrays within a TOML file\n\nRemove all values that match a Python regex:\n\n\u003e **NOTE:** The regex must match the entire string\n\n``` console\n$ tomcli set pyproject.toml arrays delitem \\\n    'project.classifiers' 'Programming Language :: Python.*'\n```\n\nRemove all values that match an fnmatch-style pattern:\n\n``` console\n$ tomcli set pyproject.toml arrays delitem --type fnmatch \\\n    'project.optional-dependencies.dev' '*cov*'\n```\n\nReplace values that match a Python regex:\n\n\u003e **NOTE:** The regex must match the entire string\n\n``` console\n$ tomcli set pyproject.toml arrays replace \\\n    'project.optional-dependencies.test' '(.+)==(.+)' '\\1\u003e=\\2'\n```\n\nCreate a list of strings:\n\n``` console\n## Create the new file\n$ touch plays.toml\n## Automatically creates the \"Romeo and Juliet\" table\n$ tomcli set plays.toml arrays str \\\n    '\"Romeo and Juliet\".characters' 'Romeo' 'Juliet' 'Mercuitio' 'Nurse'\n```\n\n\n## Contributing\n\nSee [CONTRIBUTING.md](https://git.sr.ht/~gotmax23/tomcli/tree/main/item/CONTRIBUTING.md).\n\n## License\n\nThis repository is licensed under\n\n    SPDX-License-Identifer: MIT\n\n[badge-copr]: https://copr.fedorainfracloud.org/coprs/gotmax23/tomcli/package/tomcli/status_image/last_build.png\n[link-copr]: https://copr.fedorainfracloud.org/coprs/gotmax23/tomcli/\n[badge-copr-dev]: https://copr.fedorainfracloud.org/coprs/gotmax23/tomcli-dev/package/tomcli/status_image/last_build.png\n[link-copr-dev]: https://copr.fedorainfracloud.org/coprs/gotmax23/tomcli-dev/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgotmax23%2Ftomcli-mirror","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgotmax23%2Ftomcli-mirror","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgotmax23%2Ftomcli-mirror/lists"}