{"id":13419309,"url":"https://github.com/pypa/flit","last_synced_at":"2025-12-11T21:03:56.397Z","repository":{"id":28662012,"uuid":"32181539","full_name":"pypa/flit","owner":"pypa","description":"Simplified packaging of Python modules","archived":false,"fork":false,"pushed_at":"2025-05-07T10:40:18.000Z","size":1306,"stargazers_count":2208,"open_issues_count":132,"forks_count":144,"subscribers_count":36,"default_branch":"main","last_synced_at":"2025-06-10T23:50:54.575Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://flit.pypa.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pypa.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-03-13T21:22:27.000Z","updated_at":"2025-06-09T06:48:07.000Z","dependencies_parsed_at":"2024-10-26T16:04:37.296Z","dependency_job_id":"9da67b91-529a-417f-872b-2f162209c790","html_url":"https://github.com/pypa/flit","commit_stats":{"total_commits":975,"total_committers":79,"mean_commits":"12.341772151898734","dds":"0.42358974358974355","last_synced_commit":"e38b172ca415e0b41c82801131d4e09a51e4bd85"},"previous_names":["takluyver/flit"],"tags_count":47,"template":false,"template_full_name":null,"purl":"pkg:github/pypa/flit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pypa%2Fflit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pypa%2Fflit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pypa%2Fflit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pypa%2Fflit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pypa","download_url":"https://codeload.github.com/pypa/flit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pypa%2Fflit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260616537,"owners_count":23036867,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-07-30T22:01:14.176Z","updated_at":"2025-12-11T21:03:51.361Z","avatar_url":"https://github.com/pypa.png","language":"Python","readme":"**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're writing a module ``foobar`` — either as a single file ``foobar.py``,\nor as a directory — and you want to distribute it.\n\n1. Make sure that foobar's 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't 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 can install it using *pip* just like\nany other package. In most cases, pip will download a 'wheel' package, a\nstandard format it knows how to install. If you specifically ask pip to install\nan 'sdist' package, it will install and use Flit in a temporary environment.\n\n\nTo install a package locally for development, run::\n\n    flit install [--symlink] [--python path/to/python]\n\nFlit packages a single importable module or package at a time, using the import\nname as the name on PyPI. All subpackages and data files within a package are\nincluded automatically.\n","funding_links":[],"categories":["Python","HarmonyOS","Build Tools"],"sub_categories":["Windows Manager"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpypa%2Fflit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpypa%2Fflit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpypa%2Fflit/lists"}