You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are trying to use Pydantic in our website, currently using Django under AWS Lambda with Zappa. But the size of the compiled Cython binaries are considerably large, especially in the limited environment like serverless functions.
AWS had ~250MB hard limit on the total function size even if unzipped, and Cython version of Pydantic will eat up 25MB (~10%) for it.
But after investigation, it is hard to tell the Pip, Pipenv or Poetry to stick with wheel without Cython manylinux wheels. Although we can still stick with the non-Cython version by assigning wheel URL and hack Zappa to use it, we have to manually update wheel URL.
Can this package use similar technique like psycopg2 and psycopg2-binary to provide separate package with/without Cython, to make people with limited resources to install the package much more easier? Like pydantic and pydantic-pure.
The text was updated successfully, but these errors were encountered:
pip install --no-binary pydantic pydantic
doesn't work for me, but installing from git works.
The problem is that in the end of the installation some copying is missing, and the success message says successfully installed pydantic (and then pip list doesn't have it), while a proper installation would show successfully installed pydantic=<VERSION>
Feature Request
Output of
python -c "import pydantic.utils; print(pydantic.utils.version_info())"
:We are trying to use Pydantic in our website, currently using Django under AWS Lambda with Zappa. But the size of the compiled Cython binaries are considerably large, especially in the limited environment like serverless functions.
AWS had
~250MB
hard limit on the total function size even if unzipped, and Cython version of Pydantic will eat up 25MB (~10%) for it.But after investigation, it is hard to tell the Pip, Pipenv or Poetry to stick with wheel without Cython manylinux wheels. Although we can still stick with the non-Cython version by assigning wheel URL and hack Zappa to use it, we have to manually update wheel URL.
Can this package use similar technique like
psycopg2
andpsycopg2-binary
to provide separate package with/without Cython, to make people with limited resources to install the package much more easier? Likepydantic
andpydantic-pure
.The text was updated successfully, but these errors were encountered: