shahriyardx / easy-pil

A library to make common tasks of Pillow easy.
https://easy-pil.readthedocs.io/
MIT License
41 stars 15 forks source link

refactor: add type safety & fix ci #27

Closed KnownBlackHat closed 1 year ago

KnownBlackHat commented 1 year ago

This codebase was full of bugs. ig i reduced almost all bugs but some still exists

KnownBlackHat commented 1 year ago

Can't we make the cache how much user's actually want?

_raw_limit = os.getenv("EASY_PIL_CACHE_LIMIT")
cache_limit = int(_raw_limit) if _raw_limit else 32

so users can set their own cache limit by defining that environment variable

it will be better if it will be parameterized as there are many use case of PIL things and defining env vars will get quite complex and tricky for users