{"id":20325770,"url":"https://github.com/aboutcode-org/flot","last_synced_at":"2026-03-10T02:33:35.883Z","repository":{"id":213768658,"uuid":"734884036","full_name":"aboutcode-org/flot","owner":"aboutcode-org","description":"Make it easier to create Python packages. Build multiple Python packages from one repo easily. ","archived":false,"fork":false,"pushed_at":"2024-10-15T07:22:07.000Z","size":1425,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-19T11:54:49.090Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aboutcode-org.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"aboutcode-org","open_collective":"aboutcode","custom":"https://causes.benevity.org/causes/056-5528680976845_a486"}},"created_at":"2023-12-22T22:52:59.000Z","updated_at":"2025-07-22T22:03:11.000Z","dependencies_parsed_at":"2023-12-29T23:00:54.745Z","dependency_job_id":null,"html_url":"https://github.com/aboutcode-org/flot","commit_stats":null,"previous_names":["pombredanne/flot","nexb/flot"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/aboutcode-org/flot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutcode-org%2Fflot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutcode-org%2Fflot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutcode-org%2Fflot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutcode-org%2Fflot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aboutcode-org","download_url":"https://codeload.github.com/aboutcode-org/flot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutcode-org%2Fflot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30322645,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T01:36:58.598Z","status":"online","status_checked_at":"2026-03-10T02:00:06.579Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-14T19:41:36.365Z","updated_at":"2026-03-10T02:33:35.857Z","avatar_url":"https://github.com/aboutcode-org.png","language":"Python","readme":"**flot** is an easy tool to build Python packages (wheel and sdist) with no\nmagic and guesswork. Flot can also create one or more Python packages\nfrom a single code tree, just by listing which files you want to include.\n\nBecause \"Explicit is better than implicit\" and \"Simple is better than complex\"\n\n``flot`` takes the magic and guesswork away of which files are included in a\nPython package: you just specify a list of paths or glob patterns for the files\nyou want to include or exclude in your package. No more mystery! Include data\nfiles, multiple modules or any files as easily as listing their paths.\n\nWith ``flot`` you can also have multiple ``pyproject.toml`` files to enjoy the\nbenefits of a simpler monolithic code repo and still be able to easily share\nand package multiple Pypi packages and foster the reuse of subsets of your larger\nproject, without having some imposed directory structure.\n\nUnlike ``flot``, other Python build tools assume that you can only build a\nsingle Python package from a given directory or repository and use a lot of\nmagic to find which module or file to include in your package.\n\nAlso, while ``flot`` promotes declarative builds, it is also possible to run\narbitrary Python scripts when you need more power.\n\nSee also `Why use Flot? \u003chttps://github.com/nexB/flot/blob/main/docs/rationale.rst\u003e`_\n\nFlot is derived from and based on a modified Flit https://github.com/pypa/flit/\nby Thomas Kluyver @takluyver\n\nIt was started following this discussion https://github.com/pypa/flit/discussions/669\n\n\nInstall\n-------\n\n::\n\n    pip install flot\n\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. Create a ``pyproject.toml`` file. It will look something like this::\n\n       [build-system]\n       requires = [\"flot\"]\n       build-backend = \"flot.buildapi\"\n\n       [project]\n       name = \"foobar\"\n       version = \"1.0.0\"\n       description = \"foobar frobinator\"\n\n       [tool.flot]\n       includes = [\"foobar.py\"]\n\n   You can edit this file to add other metadata, like URL for example to set up\n   command line scripts or add your dependencies. See the ``pyproject.toml``\n   documentation at https://github.com/nexB/flot/blob/main/docs/pyproject_toml.rst\n\n2. Run this command to build your wheel in the dist/ directory::\n\n       flot\n\nOnce your package is published to PyPI (I use the standard ``twine`` tool for this),\npeople can install it using ``pip`` or any other Python packaging tool just like\nany other package. \n\n3. Say you're writing a second module ``baz`` as a single file ``baz.py``.\n   Just create a second file named for instance ``baz-pyproject.toml``.\n   It will look something like this::\n\n       [build-system]\n       requires = [\"flot\"]\n       build-backend = \"flot.buildapi\"\n\n       [project]\n       name = \"baz\"\n       version = \"1.0.0\"\n       description = \"baz frobinator\"\n\n       [tool.flot]\n       includes = [\"baz.py\"]\n\n4. Run this command to build a second wheel in the dist/ directory::\n\n       flot --pyproject baz-pyproject.toml\n\n\nYou now have a second wheel built from the same tree with different content.\n","funding_links":["https://github.com/sponsors/aboutcode-org","https://opencollective.com/aboutcode","https://causes.benevity.org/causes/056-5528680976845_a486"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faboutcode-org%2Fflot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faboutcode-org%2Fflot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faboutcode-org%2Fflot/lists"}