Skip to main content

Bundle, treeshake and minify your python projects

Project description

flay

[!IMPORTANT] This project is in a very experimental/alpha stage and can definitely not be used in a productive way so far

A utility for bundling, treeshaking and minifying your python modules and scripts and building OCI container images out of them.

One day I was tasked with building a docker container for a python project and was frustrated with the fact that I have to put all the bloat into it. This cannot be too difficult I thought...

Goals

Step 1

  • a working pipeline for bundling, treeshaking and minifying modules
  • a working CLI with no configuration effort for simple projects

Step 2

  • support for shared objects (i.e. rust based libraries such as pydantic or orjson)
  • support for modules with external files such as HTML, CSS, JavaScript...
  • support for bundling into "one-file"-scripts as far as possible

Step 3

  • automatically build OCI container images from your project by integrating buildah and possibly other building tools as building backends with presets provided by flay or bring your own ???
  • PEP517 compliant build backend for integration with other tooling

Comparison to other tools

snakepack

TODO...

pyodide-pack

TODO...

pyinstaller

TODO...

nukita

TODO...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flay-0.1.0a1.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

flay-0.1.0a1-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file flay-0.1.0a1.tar.gz.

File metadata

  • Download URL: flay-0.1.0a1.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.20.0.post1 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for flay-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 4df17806637fbf9831005c53acdbeb0d07bcfeeed73b2a6855447d5a6dda9c1c
MD5 e1405f655ef71eca188ecd6a8ef841fe
BLAKE2b-256 af021c9bf7eec646e3a8aa0e43528e09d0dbf943c79a58c16a40c383c3ce844e

See more details on using hashes here.

File details

Details for the file flay-0.1.0a1-py3-none-any.whl.

File metadata

  • Download URL: flay-0.1.0a1-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.20.0.post1 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for flay-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 bdf366e04f6525ea06d9b1c2311c0cbb6570e5aa900c26ef6eb1320c0778df7c
MD5 4ce37113eedb3050246eb219d96edff7
BLAKE2b-256 f6fd7dbd4c737ea63d139f4bc9c41275b0183a71ae4de3165ee8c0edb824b36a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page