skip to navigation
skip to content

Not Logged In

TraversalKit 0.2

Helper library for Pyramid applications based on Traversal

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.

 
File Type Py Version Uploaded on Size
TraversalKit-0.2-py2.py3-none-any.whl (md5) Python Wheel any 2014-12-05 6KB
TraversalKit-0.2.tar.gz (md5) Source 2014-12-05 4KB
  • Downloads (All Versions):
  • 5 downloads in the last day
  • 73 downloads in the last week
  • 91 downloads in the last month