Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

papyrus_tilecache

Project Description

papyrus_tilecache provides an easy and convenient method for embeding TileCache in Pyramid applications.

Install

papyrus_tilecache can be installed with easy_install:

$ easy_install papyrus_tilecache

Often you’ll want to make papyrus_tilecache a dependency of your Pyramid application, which is done by adding papyrus_tilecache to the install_requires list defined in the Pyramid application’s setup.py file.

Embed TileCache

Embeding TileCache in a Pyramid application is easy.

Edit the application’s development.ini file and, in the main section ([app:]), set tilecache.cfg to the location of the TileCache config file. Example:

[app:MyApp]
use = egg:MyApp
...
tilecache.cfg = %(here)s/tilecache.cfg

In this example the TileCache config file is located at the same location as the development.ini file.

You can use the following TileCache config as an example:

[cache]
type=Disk
base=/tmp/tilecache
[basic]
type=WMS
url=http://vmap0.tiles.osgeo.org/wms/vmap0
extension=png

Now, edit the application’s main file, __init__.py, and register papyrus_tilecache using the Configurator.include method:

def main(global_config, **settings):

    config = Configurator(settings=settings)

    import papyrus_tilecache
    config.include(papyrus_tilecache)

That’s it! The Pyramid application now exposes a TileCache service at /tilecache.

Test URL

0.1

  • First version
Release History

Release History

This version
History Node

0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
papyrus_tilecache-0.1.tar.gz (4.2 kB) Copy SHA256 Checksum SHA256 Source Jan 25, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS 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