Skip to main content

peppyproject

build pypi implementation python tests codecov Code style: black License: GPL v3

peppyproject creates a PEP621-compliant pyproject.toml file from an existing Python project's build configuration (setup.cfg, setup.py, tox.ini, pytest.ini, etc.).

Installation

pip install peppyproject

Usage

Warning peppyproject uses ini2toml[full] to read setup.cfg and INI files, and ast.literal_eval() to read and parse a setup.py file. It assumes you have vetted the setup.py and does not perform any sanitization or safety checking; thus, it is inadvisable to use on unknown or potentially malicious setup.py scripts.

peppyproject . -o pyproject.toml
Usage: peppyproject [OPTIONS] [DIRECTORY]

  read a Python project configuration and output a PEP621-compliant `pyproject.toml`

Arguments:
  [DIRECTORY]  directory from which to read configuration

Options:
  -o, --output PATH  path to which to write TOML
  --help             Show this message and exit.

API

from peppyproject import PyProjectConfiguration

configuration = PyProjectConfiguration.from_directory('./my_python_project')
configuration.to_file('./my_python_project/pyproject.toml')

Metadata

Release files for peppyproject 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for peppyproject 1.0.2
File Size Uploaded Provenance
peppyproject-1.0.2.tar.gz 78.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for peppyproject 1.0.2
File Interpreter ABI Platform
peppyproject-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 119.0 kB

Release files / peppyproject-1.0.2.tar.gz

Download URL peppyproject-1.0.2.tar.gz
Size 78.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1e6168fbe34ba19ce2d0a4ccc58198ba018e68f93b6c26aa99e99865a294e059
BLAKE2b-256 checksum
How to use checksums
90f1d5b17d59013174fe8857874748eed6bd8717a50a6c63eda8523c2b5aeabc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / peppyproject-1.0.2-py3-none-any.whl

Download URL peppyproject-1.0.2-py3-none-any.whl
Size 40.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a12cfb1fef157c4dd4957bdefcf0b78fdff6c7ca979981bec1dec6c264d5dd72
BLAKE2b-256 checksum
How to use checksums
00f35c89ba5586e11715a0b7e55362b707dd7f60fd12a139fc0bb00294a8f88e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Security for peppyproject 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page