Skip to main content

A version of pytz that works well on Google App Engine.

Project description

This package does nothing more than making pytz usable on App Engine.

pytz has a severe performance problem that impedes its usage on Google App Engine. This is caused because pytz.__init__ builds a list of available zoneinfos checking the entire zoneinfo database (which means: it tries to open hundreds of files). This is done in the module globals, so it is not easily avoidable. And it is far from ideal to do this in App Engine - app initialization becomes unacceptable if every time we import pytz it checks 500+ files.

In this alternative version, pytz is highly optimized for App Engine, following ideas from several recipes around:

  • database files are not automatically reads when the module is imported

  • the database files are loaded using zipimport to reduce number of files

  • it uses memcache to cache already loaded zoneinfos

This results in almost unnoticeable load time and makes pytz usable on App Engine.

pytz is written and maintained by Stuart Bishop. Learn more about it at http://pypi.python.org/pypi/pytz/

Project details


Download files

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

Source Distributions

gaepytz-2010h.zip (385.0 kB view details)

Uploaded Source

gaepytz-2010h.tar.gz (381.3 kB view details)

Uploaded Source

File details

Details for the file gaepytz-2010h.zip.

File metadata

  • Download URL: gaepytz-2010h.zip
  • Upload date:
  • Size: 385.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gaepytz-2010h.zip
Algorithm Hash digest
SHA256 29b41489c4e0951a8c6edd84b03429276707e599db4cad867b336b27e5c52701
MD5 75a26e0802668402c67b1663f6b23725
BLAKE2b-256 0616d3fa0f8b570bc122ed0babb23c0a8b3bb8ba411c0285a0d770caaa1c0f52

See more details on using hashes here.

File details

Details for the file gaepytz-2010h.tar.gz.

File metadata

  • Download URL: gaepytz-2010h.tar.gz
  • Upload date:
  • Size: 381.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gaepytz-2010h.tar.gz
Algorithm Hash digest
SHA256 ab3dd2674dba35b7431af483da5463c11d355f88d4fcc5e92db7ea34457bffc2
MD5 13a75e18b230a6ce82e4e3a47b11a961
BLAKE2b-256 5100714973073bf74e7fc61dae6994dc9cef3c461c7ca0f04ddf86bffd4cfab3

See more details on using hashes here.

Supported by

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