Skip to main content

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.

Release files for gaepytz 2011h

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distributions (sdists)

Source distribution for gaepytz 2011h
File Size Uploaded
gaepytz-2011h.zip 376.7 kB Details
gaepytz-2011h.tar.gz 373.4 kB Details

Release files / gaepytz-2011h.zip

Download URL gaepytz-2011h.zip
Size 376.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8b4df07ca7555ed5f590cf97553b6fb050f6809398c85114cb21e6ffdc021e63
BLAKE2b-256 checksum
How to use checksums
dfc8bf563d1b043e034bc9a1e7f6461761912cda963805ff14eb9f2e579c0dc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gaepytz-2011h.tar.gz

Download URL gaepytz-2011h.tar.gz
Size 373.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d6e214fdc071c9a22234aed92ea763889501d0c000ee202b8a5493ef4390843b
BLAKE2b-256 checksum
How to use checksums
99de39ab9e14045842caa059687df480c5af1779b0cc83693b2e6fa78a06a5e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

2011h This release

2 release files

2010l

2 release files

2010h

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page