🍺 BREW Explorer

← all formulae

flit

brew install flit v3.12.0_7 BSD-3-Clause

Simplified packaging of Python modules

36
30-day installs · #5427
142
90-day · #4806
481
365-day · #5211
2.2k
★ GitHub stars · updated 2mo ago

Runtime dependencies

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [
    "certifi",
    "python@3.14"
  ],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Simplified packaging of Python modules",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:37:42+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "flit",
  "github_default_branch": "main",
  "github_last_commit_at": "2026-06-18T20:12:16Z",
  "github_readme_excerpt": "**Flit** is a simple way to put Python packages and modules on PyPI.\nIt tries to require less thought about packaging and help you avoid common\nmistakes.\nSee `Why use Flit? \u003chttps://flit.readthedocs.io/en/latest/rationale.html\u003e`_ for\nmore about how it compares to other Python packaging tools.\n\nInstall\n-------\n\n::\n\n    $ python3 -m pip install flit\n\nFlit requires Python 3 and therefore needs to be installed using the Python 3\nversion of pip.\n\nPython 2 modules can be distributed using Flit, but need to be importable on\nPython 3 without errors.\n\nUsage\n-----\n\nSay you\u0027re writing a module ``foobar`` \u2014 either as a single file ``foobar.py``,\nor as a directory \u2014 and you want to distribute it.\n\n1. Make sure that foobar\u0027s docstring starts with a one-line summary of what\n   the module is, and that it has a ``__version__``:\n\n   .. code-block:: python\n\n       \"\"\"An amazing sample package!\"\"\"\n\n       __version__ = \"0.1\"\n\n2. Install flit if you don\u0027t already have it::\n\n       python3 -m pip install flit\n\n3. Run ``flit init`` in the directory containing the module to create a\n   ``pyproject.toml`` file. It will look something like this:\n\n   .. code-block:: ini\n\n       [build-system]\n       requires = [\"flit_core \u003e=3.2,\u003c4\"]\n       build-backend = \"flit_core.buildapi\"\n\n       [project]\n       name = \"foobar\"\n       authors = [{name = \"Sir Robin\", email = \"robin@camelot.uk\"}]\n       dynamic = [\"version\", \"description\"]\n\n       [project.urls]\n       Home = \"https://github.com/sirrobin/foobar\"\n\n   You can edit this file to add other metadata, for example to set up\n   command line scripts. See the\n   `pyproject.toml page \u003chttps://flit.readthedocs.io/en/latest/pyproject_toml.html#scripts-section\u003e`_\n   of the documentation.\n\n   If you have already got a ``flit.ini`` file to use with older versions of\n   Flit, convert it to ``pyproject.toml`` by running ``python3 -m flit.tomlify``.\n\n4. Run this command to upload your code to PyPI::\n\n       flit publish\n\nOnce your package is published, people",
  "github_repo": "pypa/flit",
  "github_stars": 2250,
  "github_topics": [],
  "homepage": "https://github.com/pypa/flit",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 36,
  "installs_365d": 481,
  "installs_90d": 142,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "BSD-3-Clause",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "flit",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 5427,
  "rank_365d": 5211,
  "rank_90d": 4806,
  "raw_hash": "e40ab43db5b86108",
  "recommended_dependencies": [],
  "revision": 7,
  "ruby_source_path": "Formula/f/flit.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "3.12.0",
  "versioned_formulae": [],
  "why_use_this": null
}