Skip to content

Script size limits are too strict for Python apps #156

Description

@whitphx

The current size limits of 3MB (free plan) or 10MB (paid plan) for the gzipped size are too tight for Python apps because many popular Python libraries contain large binaries.
For example, when I tried to deploy an app using the following libraries, it easily hit the limit (sizes are the sums of the gzipped files of each vendored package):

  • pandas 2.3.3: 4.22MB
  • numpy 2.2.5: 2.90MB
  • Pillow 11.3.0 (PIL): 0.99MB
  • altair 6.0.0: 0.74MB
  • libcrypto.so: 0.62MB

All of them were vendored from the Pyodide v0.29.3 distribution (Python 3.13), synced with workers-py 1.15.0 and deployed with wrangler 4.110.0.

I believe these libraries are very commonly used in the Python ecosystem and cannot be omitted when developing meaningful applications in certain domains.

I believe this is one of the biggest differences from the JavaScript ecosystem.

It would be great if

  • the size limit were relaxed for Python Workers,
  • such prepackaged/common libraries were excluded from the size calculation,
  • or some other solution were provided.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions