-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/31/2014 07:30 AM, Luis Aguirre wrote:

> mmm.. wait a minute.  If nobody is interested in
> pyramid/sqlalchemy/rest should be a good reason.
> 
> Somebody is using pyramid as a REST server?  If you do, how do you use
> it? Using nosql databases as mongodb?  Some advice about all of this
> thing?

Lots of folks are using Pyramid for REST, but not all of them are tied to
an RDBMS / ORM:  one of Pyramid's strengths is that it doesn't force you
into a "square data" world if your problem doesn't fit.

For instance, I've implemented REST-ish services designed to populate and
query a Redis back-end (for graph visualization), to serve data from
LDAP, and to generate JSON feeds for arbitrarily complex hierarchies
stored in the ZODB.  Others may be serving queries based on Mongo or
Couch document stores, search engines such as solr or elasitsearch, or
RDF databases.

If your needs are simple enough (e.g., you just need to serve data to
scripts running on pages served from Pyramid, so CORS doesn't apply),
then you can just write "normal" Pyramid views using the 'json' renderer:


http://docs.pylonsproject.org/docs/pyramid/en/latest/narr/renderers.html#json-renderer

For dealing with more full-featured REST stuff, I've looked at two
frameworks:

- - The Mozilla project's 'cornice':
  http://cornice.readthedocs.org/en/latest/

- - Wichert Ackerman's 'rest-toolkit':
  https://rest-toolkit.readthedocs.org/en/latest/




Tres.
- -- 
===================================================================
Tres Seaver          +1 540-429-0999          [email protected]
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAlSoyQcACgkQ+gerLs4ltQ72hQCeKwg8C6p5MhAIPqwVze8+sdPA
y2QAnjDu8kfAaUAelmHhFX7LLANeE2aN
=kxOU
-----END PGP SIGNATURE-----

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to