This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

latest version at https://github.com/HatsuneMiku/pytz-memcache

pytz with memcache modified to be high performance that also works on GAE

( copied from pytz-2014.4 )

Usage

  • copy zoneinfo.zip to your application directory (current directory on GAE)
  • copy pytz-2014.4-gae-py2.X.egg to your application directory
import os

if 'SERVER_SOFTWARE' in os.environ.keys(): # on GAE
  from google.appengine.api import memcache
  from google.appengine.ext import webapp
  # use zoneinfo.zip on current directory
  # pytz-2014.4-py2.5.egg does not work on GAE (pytz.common_timezones is [])
  sys.path.append('pytz-2014.4-gae-py2.5.egg')
else:
  import memcache

import pytz

class GAEHandler(webapp.RequestHandler):
  def get(self, param):
    self.response.out.write(pytz.common_timezones)

Remarks

  • ‘zoneinfo.zip’ must be in your application directory
  • memcached must be running on ‘127.0.0.1:11211’ (for local test only)
  • (memcached has been running on GAE)
  • it takes about few seconds to run at the first time, but faster next
  • (it takes very long time when memcahced is not running because worst case)
  • please delete key ‘pytz_loaded’ from cache when update pytz zoneinfo

Do It Yourself

  • unzip pytz-2014.4-py2.X.egg
  • delete *.pyc
  • zip recursive pytz/zoneinfo/ to zoneinfo.zip
  • copy zoneinfo.zip to your application directory (current directory on GAE)
  • replace init.py open_resource function (in this repository)
  • zip pytz/ to pytz-2014.4-gae-py2.X.egg (without zoneinfo.zip)
  • copy pytz-2014.4-gae-py2.X.egg to your application directory

Requirements

  • pytz (included)
  • python-memcached (for local test only)

Relations

Release History

Release History

2014.4.33

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

2014.4.32

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

2014.4

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pytz-memcache-2014.4.33.tar.gz (604.8 kB) Copy SHA256 Checksum SHA256 Source Jul 20, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting