Introducing pyramid-resource

26 views
Skip to first unread message

Theron Luhn

unread,
Feb 4, 2019, 8:27:06 PM2/4/19
to pylons-discuss
Hi all,

I hope it's okay to share some of my Pyramid packages on the mailing list.

URL Traversal is one of my favorite features of Pyramid.  However, I ended up create a simple resource base class in all of my projects.  Eventually I got tired of the boilerplate and the subtle differences between projects, so I packaged my resource class, documented it, and published it.  The result is https://pypi.org/project/pyramid-resource/

It's perhaps a trivial package, but I've found it quite useful.  The subclassed resources have some nice properties:

- Location-aware
- Dynamic, e.g. can generate child resources based on database calls.
- Can hold data (such as an ID identifying a database object in a dynamic resource), which is inherited by all child resources.

Bert JW Regeer

unread,
Feb 4, 2019, 10:35:35 PM2/4/19
to Pylons Project
Absolutely! Please share your pyramid add-ons and packages :-).

This looks great, and something that I too have written many a time for various projects!

--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discus...@googlegroups.com.
To post to this group, send email to pylons-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/1285c23f-1d6e-4bc0-9be0-034c360b5748%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages