Skip to main content
=========================
pyramid_restful_toolkit
=========================


A toolkit for RESTful API development in Pyramid.

That includes:

1. JSON renderer
2. HTTP Auth Policy (Basic, Digest)
3. Some utilities to work with SQLAlchemy, CQLEngine

-----
API
-----

To use it, just

.. code-block::python

config.include('pyramid_restful_toolkit')

This will do those jobs:

1. Add JSON as default renderer with some default adapters. You can access
it through `pyramid_restful_toolkit.default_renderer`
2. Add some error handlers for common validators library such as: formencode,
colander, schema.

If you want all uncaught exception has return as JSON text. Just include tween
`pyramid_restful_toolkit.jsonize_uncaught_exception_tween_factory`. This is
normally used in production.ini.


HTTP Auth Policy
################

To use this package, in the app function, just include it.

config.include("pyramid_restful_toolkit.auth")

In you *development.ini*

pyramid_restful_toolkit.auth.get_user_callback = 'path to get user function'

You can use built-in model:

**For SQLAlchemy**

config.include("pyramid_restful_toolkit.auth.models.sqlalchemy")

with *development.ini*

pyramid_restful_toolkit.auth.dbsession = app.models.DBSession

Use *pyramid_restful_toolkit.auth.models.sqlalchemy.RESTfulUser* to manage your users. Its table
name is *rest_user*.


-----------
CHANGES LOG
-----------

1.1.1
=====

* Add default renderer for datetime.date

1.1.0
=====

* Add python 3 support
* Remove auth, move to `pyramid_httpauth (https://github.com/tarzanjw/pyramid_httpauth)`_

1.0.3
=====

* Add default JSON renderer for cqlengine.columns.ValueQuoter, cqlengine.model.Model

1.0.2
=====

* Add default error handler support for deform.ValidationFailure

Metadata

Release files for pyramid_restful_toolkit 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyramid_restful_toolkit 1.1.1
File Size Uploaded Provenance Actions
pyramid_restful_toolkit-1.1.1.tar.gz 16.2 kB Without provenance Details for pyramid_restful_toolkit-1.1.1.tar.gz

Release files / pyramid_restful_toolkit-1.1.1.tar.gz

Download URL pyramid_restful_toolkit-1.1.1.tar.gz
Size 16.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ecba410b2671c9f9ed9ad004469c96f66a8328ed95cd2d890a4bb96052651616
BLAKE2b-256 checksum
How to use checksums
17c35d24450b3a3097d45ed68a35f2dc72b022fbd089ece82cf498d5c5bbe4e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pyramid_restful_toolkit 1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page