Giter VIP home page Giter VIP logo

awesome-pyproject's Introduction

Awesome pyproject.toml Awesome Link Checker GH Action Status

logo

pyproject.toml is a new configuration file defined in PEP 518, expanded in PEP 621 and PEP 660. It is design to store build system requirements, but it can also store any tool configuration for your Python project, possibly replacing the need for setup.cfg or other tool-specific files.

We think pyproject.toml is pretty awesome, so this awesome list contains projects already using it, or discussing its inclusion.

Do you know of any other project not included here? Please submit a PR!

Contents

Testing

  • Coverage.py - Code coverage measurement for Python.
  • ptr - Python Test Runner (ptr) was born to run tests in an opinionated way, within arbitrary code repositories.
  • pytest - A testing framework that makes it easy to write small tests, yet scales to support complex functional testing.
  • pytest-env - A pytest plugin that enables you to set environment variables in a pyproject.toml file.
  • Tox - A generic virtualenv manager to run test in different environments.
  • Ward - A modern Python test framework designed to help you find and fix flaws faster.

Code Formatting

  • autoflake - Removes unused imports and unused variables as reported by pyflakes.
  • autoimport - Automatically add missing imports and remove unused imports.
  • autopep8 - A tool that automatically formats Python code to conform to the PEP 8 style guide.
  • Black - The uncompromising Python code formatter.
  • Blue - The slightly less uncompromising Python code formatter.
  • Darker - Apply black reformatting to Python files only in regions changed since a given commit.
  • flake8-isort - flake8 plugin that integrates isort.
  • isort - A Python utility / library to sort imports alphabetically, and automatically separated into sections.
  • pyproject-fmt - Apply a consistent format to your pyproject.toml file with comment support.
  • YAPF - A formatter for Python files.

Code Analysis

  • Bandit - A tool designed to find common security issues in Python code.
  • deptry - A command line tool to check for issues with dependencies in a Python project, such as obsolete or missing dependencies.
  • FlakeHell - Flake8 wrapper to make it nice, legacy-friendly, configurable.
  • flake8-pyproject - Plugin for Flake8 that reads configuration from pyproject.toml and injects the config into Flake8
  • import-linter - Import Linter defines and enforces rules for the imports within and between Python packages.
  • interrogate - Interrogate a codebase for docstring coverage.
  • Mypy - An optional static type checker for Python (PEP 484).
  • Nitpick - Flake8 plugin to enforce the same tool configuration (flake8, isort, mypy, Pylint...) across multiple Python projects.
  • pydocstyle - A static analysis tool for checking compliance with Python docstring conventions.
  • Pylint - A tool that checks for errors in Python code, tries to enforce a coding standard and looks for code smells.
  • Pyright - Static type checker for Python.
  • pytest-pylint - A pytest plugin for running pylint against your codebase.
  • Refurb - A tool for refurbishing and modernizing Python codebases.
  • Robocop - Tool for static code analysis of Robot Framework language.
  • rstcheck - Checks syntax of reStructuredText and code blocks nested within it.
  • Ruff - An extremely fast Python linter, written in Rust.
  • Unimport - Detects unused python libraries.
  • validate-pyproject - A command line tool and Python library for validating pyproject.toml files based on JSON Schema, and includes checks for PEP 517, PEP 518 and PEP 621.
  • Vulture - Finds unused code in Python programs.
  • wemake-python-styleguide - The strictest and most opinionated python linter ever!

Packaging & Project Management

  • BeeWare Briefcase - Tools to support converting a Python project into a standalone native application.
  • check-wheel-contents - Check your wheels have the right contents.
  • DepHell - Project management for Python. Manage packages: convert between formats, lock, install, resolve, isolate, test, build graph, show outdated, audit. Manage venvs, build package, bump version.
  • FawltyDeps - Find undeclared and unused dependencies in your Python project. Verify that your declared dependencies (in pyproject.toml or elsewhere) match what you actually import in your code.
  • Flit - A simple way to put Python packages and modules on PyPI.
  • Hatch - Modern, extensible Python project manager.
  • Maturin - Build and publish crates with pyo3, rust-cpython and cffi bindings as well as rust binaries as python packages.
  • PDM - A modern Python package manager with PEP 582 support.
  • pip - The package installer for Python. You can use pip to install packages from the Python Package Index and other indexes.
  • Poetry - A tool for dependency management and packaging in Python. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.
  • Pyflow - An installation and dependency system for Python.
  • setuptools - Easily download, build, install, upgrade, and uninstall Python packages.
  • setuptools_scm - Handles managing your Python package versions in SCM metadata instead of declaring them as the version argument or in a SCM managed file.

Project Templates

Python project templates or project generators supporting pyproject.toml.

Other Tools

  • Autohooks - Library for managing git hooks.
  • Commitizen - Create commiting rules for projects, auto bump versions and auto changelog generation.
  • datamodel-code-generator - Creates Pydantic data-model code from OpenAPI/JSON Schema files.
  • django-pyproject - Django package to store some or all of your settings in your pyproject.toml file.
  • ini2toml - Automatically translates .ini/.cfg files into TOML.
  • Poe the Poet - A task runner that works well with Poetry.
  • Poetrify - Convert a Pipfile (or requirements.txt) to pyproject.toml for Poetry.
  • poetry-setup - Generate setup.py (setuptools) from pyproject.toml.
  • poetry-version - Python library for extracting version from poetry pyproject.toml file.
  • Python License Checker - Check python packages from requirement.txt/pyproject.toml and report issues.
  • Tartufo - Searches through git repositories and their history for high entropy strings and secrets.
  • towncrier - A utility to produce useful, summarised news files for your project.
  • Vendy - A tool for vendoring third-party packages into your project.
  • zsh-autoswitch-virtualenv - ZSH plugin to automatically switch python virtualenvs and Pipenvs as you move between directories.

Articles

Open PEPs

Python Enhancement Proposals (PEPs) still under consideration related to pyproject.toml.

Rejected/Withdrawn/Superseded

Projects discussing the use of pyproject.toml

Some project are still considering the adoption of the pyproject.toml file. These entries link directly to the project discussion.

  • Alembic - A database migrations tool for SQLAlchemy.
  • AWS SAM - CLI tool to build, test, debug, and deploy Serverless applications using AWS SAM.
  • Briefcase Bootstrap Template - A template for starting a Python app that will be deployed using briefcase.
  • bumpversion - Version-bump your software with a single command.
    • bump2version - An interim fork with the intent to merge back to the original project.
  • Dependency Parser - A parser for Python dependency files.
  • flake8 - A python tool that glues together pep8, pyflakes, mccabe, and third-party plugins to check the style and quality of some python code.
  • gitlint - Linting for your git commit messages.
  • Invoke - Library for managing shell-oriented subprocesses and organizing executable Python code into CLI-invokable tasks.
  • mach-nix - Create highly reproducible python environments.
  • nose2 - The successor to nose. Its purpose is to extend unittest to make testing nicer and easier to understand.
  • prospector - A tool to analyse Python code and output information about errors, potential problems, convention violations and complexity.
  • pycodestyle - A tool to check your Python code against some of the style conventions in PEP 8.
  • pyenv - Simple Python version management.
  • pytest-benchmark - A pytest fixture for benchmarking code.
  • Pylama - Code audit tool for Python and JavaScript. Pylama wraps these tools: pycodestyle, pydocstyle, PyFlakes, Mccabe, Pylint, Radon, gjslint, eradicate, mypy.
  • PyOxidizer - A modern Python application packaging and distribution tool.
  • pypyr - Task-runner cli & api for automation pipelines. Automate anything by combining commands, different scripts in different languages & applications into one pipeline process.
  • pytype - A static type analyzer for Python code.
  • pyup - tool to update your project's dependencies on GitHub. Runs on pyup.io, comes with a command line interface.
  • Radon - A Python tool that computes various metrics from the source code.
  • readthedocs.org - Read the Docs hosts documentation for the open source community.
  • Spack - A flexible package manager that supports multiple versions, configurations, platforms, and compilers.
  • zest.releaser - Python software releasing made easy and repeatable.

License

CC0

To the extent possible under law, the authors have waived all copyright and related or neighbouring rights to this work.

awesome-pyproject's People

Contributors

and-semakin avatar barry1 avatar branchvincent avatar carlosperate avatar dmyersturnbull avatar domdfcoding avatar epogrebnyak avatar fpgmaas avatar frostming avatar gbdlin avatar hydrargyrum avatar ibledy avatar jherland avatar joshbode avatar jwilhelm-godaddy avatar lsorber avatar michael-k avatar nat-n avatar pepoluan avatar retnikt avatar rharish101 avatar simonepri avatar sirrus233 avatar sobolevn avatar sysid avatar tezromach avatar tonnydourado avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

awesome-pyproject's Issues

Suggest to remove PyOxidizer

The issue you link to discusses supporting PEP 517 build tools, not for PyOxidizer itself to become configurable through pyproject.toml.

Add awesome-pyproject to Awesome and Awesome Python

Hi,

Thank you for this awesome list. It really helped me to choose my tools for my next Python project.

Sadly I couldn't reach this list nor from Awesome Python,
nor from Awesome.

I found this list though after several researches about setup.cfg vs pyproject.toml on reddit

(I went on those lists and tried to open an issue but I did not understand how they want it, so I post it here).

Adding autoimport?

autoimport is a tool for removing unused imports and adding missing imports (e.g. you use Collection but did not import it from typing, autoimport will add it!)

Add Flake9

I have created Flake9, a fork of Flake8 (who refused to implement it) that supports reading configuration from pyproject.toml files. Is it worth adding here?

Proposal to add poe

Poe the Poet is a task runner that works well with poetry.

Tasks are defined in the pyproject.toml

[tool.poe.tasks]
test = "pytest --cov=src"

and executed via a dedicated cli tool

poe test

I would make a PR to add it, but it's not obvious where a task runner should go within the current organisation of projects.

New supporting tool: Flake518

Flake 518 v1.0.0 has been released.

It is a small wrapper around flake8 but the configuration is stored in pyproject.toml instead of tox.ini, setup.cfg or .flake8.

As depicted in PyCQA/flake8#234 there might be some second thoughts to think before adding it mainline. Unlike flake9, it is not a fork, so the mainline development will be collected.

You can find the Repository here: https://github.com/carstencodes/flake518

The package is already available at PyPI: https://pypi.org/project/flake518/

Could you please add it to the list?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.