{"id":47162912,"url":"https://github.com/patrickarmengol/pptoml","last_synced_at":"2026-03-13T03:47:25.422Z","repository":{"id":64586332,"uuid":"575648165","full_name":"patrickarmengol/pptoml","owner":"patrickarmengol","description":"Library and CLI tool for parsing, validating, modifying, and updating pyproject.toml files","archived":false,"fork":false,"pushed_at":"2022-12-14T07:02:50.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-07-06T06:01:21.631Z","etag":null,"topics":["cli","packaging","packaging-python","pypi","python","toml"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/patrickarmengol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-12-08T01:38:36.000Z","updated_at":"2022-12-18T04:14:00.000Z","dependencies_parsed_at":"2023-01-28T18:45:23.616Z","dependency_job_id":null,"html_url":"https://github.com/patrickarmengol/pptoml","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/patrickarmengol/pptoml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickarmengol%2Fpptoml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickarmengol%2Fpptoml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickarmengol%2Fpptoml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickarmengol%2Fpptoml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patrickarmengol","download_url":"https://codeload.github.com/patrickarmengol/pptoml/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickarmengol%2Fpptoml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30457127,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T02:22:12.178Z","status":"ssl_error","status_checked_at":"2026-03-13T02:06:49.475Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","packaging","packaging-python","pypi","python","toml"],"created_at":"2026-03-13T03:47:25.238Z","updated_at":"2026-03-13T03:47:25.411Z","avatar_url":"https://github.com/patrickarmengol.png","language":"Python","readme":"# pptoml\n\n[![PyPI - Version](https://img.shields.io/pypi/v/pptoml.svg)](https://pypi.org/project/pptoml)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pptoml.svg)](https://pypi.org/project/pptoml)\n\nLibrary and CLI tool for parsing, validating, modifying, and updating `pyproject.toml` files. \n\n-----\n\n**Table of Contents**\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Roadmap](#roadmap)\n- [License](#license)\n\n## Installation\n\n### as a module\n\n```console\n\u003cvirtual environment shenanigans\u003e\npip install pptoml\n```\n\n### as a cli app\n\n```console\npipx install pptoml\n```\n\n## Usage\n\n### as a module\n```python\nfrom pathlib import Path\nfrom pptoml.inout import load_config\nfrom pptoml.fetch import fetch_info\n\nconfig = load_config(Path('path/to/pyproject.toml'))\ninfo = fetch_info(config)\n```\n\n### as a cli app\n\n```console                                        \n$ pptoml --help\n\n Usage: pptoml [OPTIONS] COMMAND [ARGS]...\n\n cli for pptoml\n\n╭─ Options ───────────────────────────────────────────╮\n│ --install-completion          Install completion    │\n│                               for the current       │\n│                               shell.                │\n│ --show-completion             Show completion for   │\n│                               the current shell, to │\n│                               copy it or customize  │\n│                               the installation.     │\n│ --help                        Show this message and │\n│                               exit.                 │\n╰─────────────────────────────────────────────────────╯\n╭─ Commands ──────────────────────────────────────────╮\n│ dump      print pyproject config in specified       │\n│           format                                    │\n│ get       print the value of the specified field    │\n│ info      fetch generally useful info about the     │\n│           project from the pyproject config         │\n│ new       generate a pyproject.toml file            │\n│ validate  validate pyproject against PEP            │\n│           specifications                            │\n╰─────────────────────────────────────────────────────╯\n```\n\n#### example info fetch\n\n```console\n$ pptoml info\nname                          pptoml\ndescription                   Library and CLI tool for parsing, validating, modifying, and updating `pyproject.toml` files. \nauthors                       Patrick Armengol\npython_version                \u003e=3.7\ndependencies                  typer, tomli, validate-pyproject, questionary\nlicense                       Apache-2.0 OR MIT\nmulti_licensed                True\nscripts                       pptoml\ndocs_url                      https://github.com/patrickarmengol/pptoml#readme\nissues_url                    https://github.com/patrickarmengol/pptoml/issues\nsource_url                    https://github.com/patrickarmengol/pptoml\nbuild_backend                 hatchling\ntype_checking                 pyright\nformatting                    autopep8\nlinting                       ruff\ntesting                       coverage\nother_tools                   hatch\n```\n\n\n\n#### example new pyproject.toml generation\n\n```console\n$ pptoml new\n? backend:  hatchling\n? project name:  asdf\n? project description:  does something i think\n? licenses:  [MIT]\n? author name:  Pat Cat\n? author email:  pat@cat.cat\n? github username (for urls):  patthecat\n? tools:  done (3 selections)\n? max line length (for tools):  120\n```\n\n```toml\n[build-system]\nrequires = [\"hatchling\"]\nbuild-backend = \"hatchling.build\"\n\n[project]\nname = \"asdf\"\nversion = \"0.0.1\"\ndescription = 'does something i think'\nreadme = \"README.md\"\nrequires-python = \"\u003e=3.7\"\nlicense = \"MIT\"\nlicense-files = { globs = [\"LICENSE*\"] }\nkeywords = []\nauthors = [\n  { name = \"Pat Cat\", email = \"pat@cat.cat\" },\n]\nclassifiers = [\n  \"Development Status :: 4 - Beta\",\n  \"Programming Language :: Python\",\n  \"Programming Language :: Python :: 3.7\",\n  \"Programming Language :: Python :: 3.8\",\n  \"Programming Language :: Python :: 3.9\",\n  \"Programming Language :: Python :: 3.10\",\n  \"Programming Language :: Python :: 3.11\",\n  \"Programming Language :: Python :: Implementation :: CPython\",\n  \"Programming Language :: Python :: Implementation :: PyPy\",\n]\ndependencies = []\n\n[project.scripts]\n\n[project.urls]\nDocumentation = \"https://github.com/patthecat/asdf#readme\"\nIssues = \"https://github.com/patthecat/asdf/issues\"\nSource = \"https://github.com/patthecat/asdf\"\n\n[tool.pyright]\ninclude = [\"src/pptoml\", \"tests\"]\nexclude = [\n    \"**/__pycache__\",\n]\ntypeCheckingMode = \"strict\"\n\n[tool.ruff]\ntarget-version = \"py37\"\nline-length = 120\nselect = [\"A\", \"B\", \"C\", \"E\", \"F\", \"FBT\", \"I\", \"N\", \"Q\", \"RUF\", \"S\", \"T\", \"UP\", \"W\", \"YTT\"]\nignore = [\n  # Allow non-abstract empty methods in abstract base classes\n  \"B027\",\n  # Ignore McCabe complexity\n  \"C901\",\n  # Allow boolean positional values in function calls, like `dict.get(... True)`\n  \"FBT003\",\n  # Ignore checks for possible passwords\n  \"S105\", \"S106\", \"S107\",\n]\nunfixable = [\n  # Don't touch unused imports\n  \"F401\",\n]\n\n[tool.ruff.isort]\nknown-first-party = [\"pptoml\"]\n\n[tool.ruff.flake8-tidy-imports]\nban-relative-imports = \"all\"\n\n[tool.ruff.per-file-ignores]\n# Tests can use relative imports and assertions\n\"tests/**/*\" = [\"I252\", \"S101\"]\n\n[tool.autopep8]\nmax_line_length = 120\n```\n\n\n\n\n## Roadmap\n\n### 0.1.0\n\n- [x] fetch general info for the project\n- [x] dump config in various formats\n\n### 0.2.0\n\n\u003e using existing validate-pyproject library to validate\n\u003e\n\u003e postponed support for PEP 639, tracked in https://github.com/abravalheri/validate-pyproject/issues/70\n\n- [x] validate with schema\n\n### 0.3.0\n\n- [x] generate new pyproject.toml with prompts\n\n### 0.4.0\n\n\u003e the following depend on tomlkit, which is a bit broken for type hinting atm\n\n- [ ] update version\n- [ ] add, remove dependencies\n\n### 0.5.0\n\n- [ ] check for dep updates\n\n\n## License\n\n`pptoml` is distributed under the terms of any of the following licenses:\n\n- [Apache-2.0](https://spdx.org/licenses/Apache-2.0.html)\n- [MIT](https://spdx.org/licenses/MIT.html)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickarmengol%2Fpptoml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrickarmengol%2Fpptoml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickarmengol%2Fpptoml/lists"}