Flit-core

3.12.0 · active · verified Sun Mar 29

Flit-core provides a PEP 517 compliant build backend, encapsulating the core distribution-building logic for projects that use Flit for packaging. It is an essential dependency for the user-facing `flit` tool, enabling the creation of wheels and source distributions. The current version is 3.12.0, released on March 25, 2025, and maintains a fairly active release cadence with multiple updates throughout the year.

Warnings

Install

Imports

Quickstart

Flit-core is a build backend, not typically imported directly by end-user applications for their runtime logic. Its primary 'usage' is being declared in a project's `pyproject.toml` file to specify how the package should be built. The example shows the standard `pyproject.toml` configuration for using `flit-core`.

# This is typically found in pyproject.toml, not direct Python code.
# A project using flit-core as its build backend would declare it like this:

# pyproject.toml
# [build-system]
# requires = ["flit_core>=3.2,<4"]
# build-backend = "flit_core.buildapi"

print("flit-core is primarily a build backend. ")
print("Its usage is declared in pyproject.toml and invoked by build tools.")
print("For creating and publishing a package, install 'flit' (pip install flit).")
print("Then run 'flit init' and 'flit publish'.")

view raw JSON →