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!

Helper library for Pyramid applications based on Traversal

Project Description

TraversalKit helps you to build Pyramid applications, which use traversal as their routing method. It provides single base class Resource, which your ones should inherit. The base class has a handful of features have been done for you, which includes location-awareness, mounting resources to each-other to build a resource tree, and resource lineage inspection.

Quick example of usage:

from traversalkit import Resource, DEC_ID


class SiteRoot(Resource):
    """ Root resource of your site """

@SiteRoot.mount('blog')
class Blog(Resource):
    """ Blog resource will be available under the URL: /blog/ """

@Blog.mount_set(DEC_ID)
class BlogPost(Resource):
    """
    Blog post resource will be available under the URL: /blog/xxx

    Where ``xxx`` is a decimal number

    """

Pretty neat and simple, isn’t it? Look over the example application and library source code (it’s really compact, I swear) to learn how TraversalKit can be used.

Even though the library was developed to be used within Pyramid applications, it doesn’t have any dependencies. So if you find out that it is useful in your non-Pyramid application, feel free to get it.

Release History

Release History

This version
History Node

0.2

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
TraversalKit-0.2-py2.py3-none-any.whl (6.3 kB) Copy SHA256 Checksum SHA256 any Wheel Dec 5, 2014
TraversalKit-0.2.tar.gz (5.1 kB) Copy SHA256 Checksum SHA256 Source Dec 5, 2014

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