Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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 2011c

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 2011c
File Size Uploaded
gaepytz-2011c.zip 389.5 kB Details
gaepytz-2011c.tar.gz 386.4 kB Details

Release files / gaepytz-2011c.zip

Download URL gaepytz-2011c.zip
Size 389.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ff616b9c83e1861e0e5d6760bd688c6e4758b13c9ae1574cc9e870c20350d316
BLAKE2b-256 checksum
How to use checksums
e982cd111d405cc8372ff5ed16cde991750693f1a6fcbe054051a134e23013db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gaepytz-2011c.tar.gz

Download URL gaepytz-2011c.tar.gz
Size 386.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b200c0b97b0a3e0844c5fc729e88ee85e808e17e70fcff399ce682797c90a2a0
BLAKE2b-256 checksum
How to use checksums
96a327d1d20ad40b168d487cb6cd0d317816d7bf45dac980fc6b687a1f921505
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

2011h

2 release files

This release

2011c 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