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 """
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.
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|