github jocxfin/pwgen v1.7.2
v1.7.2 - Optimizing Caching and Static File Delivery

latest releases: v1.93.0, v1.92.4, v1.92.3...
21 months ago

Changes:

  • Custom Serialization for Cache: Introduced custom serialization logic for caching responses in serve_manifest and serve_sw endpoints to handle serialization of text-based files, such as manifest.json. This prevents issues related to attempting to cache non-serializable objects and optimizes cache usage for static content.
  • Refined Cache Strategy for Static Files: Modified caching strategy for static files to ensure that only serializable content is cached, thus avoiding TypeError: cannot pickle 'BufferedReader' instances. This change enhances the reliability of caching mechanisms within the Flask application, reducing server load and improving response times for serving static content.

To use:

Deploy the latest version with Docker:

docker pull jocxfin/pwgen:latest
docker run -d -p 5069:5069 jocxfin/pwgen:latest

Enable offline mode, bypassing external API checks:

docker pull jocxfin/pwgen:latest
docker run -d -e NO_API_CHECK=true -p 5069:5069 jocxfin/pwgen:latest

With environmental variables defining settings:

docker pull jocxfin/pwgen:latest
docker run -d -p 5069:5069 \
  -e NO_API_CHECK=false \
  -e PW_LENGTH=12 \
  -e PW_INCLUDE_UPPERCASE=true \
  -e PW_INCLUDE_DIGITS=true \
  -e PW_INCLUDE_SPECIAL=true \
  -e PW_EXCLUDE_HOMOGLYPHS=false \
  -e PP_WORD_COUNT=4 \
  -e PP_CAPITALIZE=true \
  -e PP_SEPARATOR_TYPE=space \
  -e PP_USER_DEFINED_SEPARATOR='' \
  -e PP_MAX_WORD_LENGTH=12 \
  -e PP_INCLUDE_NUMBERS=true \
  -e PP_INCLUDE_SPECIAL_CHARS=true \
  -e PP_LANGUAGE=en \
  jocxfin/pwgen:latest

Quick and straightforward improvements for a better tool.

Fixes #53, fixes #54

Don't miss a new pwgen release

NewReleases is sending notifications on new releases.