urlminer

Provides a class for building RESTful applications and web services using a Resource Oriented Architecture
Download

urlminer Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Stephen Day
  • Publisher web site:
  • http://purl.oclc.org/

urlminer Tags


urlminer Description

Provides a class for building RESTful applications and web services using a Resource Oriented Architecture urlminer's aim is to handle url traversal for your application. It doesn't try (or want) to do much more, as other tools can easily be integrated, thanks to WSGI.The only tools that aren't useful with urlminer are dispatchers, except when they are used to direct requests to your application root.How do I use it? 1. Create a subclass of urlminer.Resource for each type of resource you want to serve. 2. Add methods (WGSI applications) for each REQUEST_METHOD you want to support. 3. Provide a class attribute that is a regular expression for the part of the url that identifies that resource. * Often this is just something like "+" or even ".+" 4. (optional) If you want to serve a list of a particular resource (you probably will), repeat steps 1 to 3 for each. urlminer considers a list of resources as just another resource. * In this case your regular expression may be more like "posts" or "pages". * Provide a second class attribute that indicates the member (child) resource to use. These are the classes that you created above. 5. Create a "root" for your application by again subclassing urlminer.Resource * No regular expression here. * As with your list resources, provide child resources in a class attribute. 6. Call your root resource without any arguments, this is your WSGI application. 7. Mount and serve! Requirements: · Python


urlminer Related Software