restless¶
A lightweight REST miniframework for Python.
Works great with Django, Flask, Pyramid & Tornado, but should be useful for many other Python web frameworks. Based on the lessons learned from Tastypie & other REST libraries.
Features¶
Small, fast codebase
JSON output by default, but overridable
RESTful
Python 3.4+ (with shims to make broke-ass Python 2.6+ work)
Flexible
Anti-Features¶
(Things that will never be added…)
Automatic ORM integration
Authorization (per-object or not)
Extensive filtering options
XML output (though you can implement your own)
Metaclasses
Mixins
HATEOAS
Topics¶
API Reference¶
- Constants
- Data
- Exceptions
- restless.exceptions
BadRequestConflictExpectationFailedFailedDependencyForbiddenGoneHttpErrorIAmATeapotLockedMethodNotAllowedMethodNotImplementedNotAcceptableNotFoundPreconditionFailedRestlessErrorTooManyRequestsUnauthorizedUnavailableUnavailableForLegalReasonsUnprocessableEntityUnsupportedMediaType
- restless.exceptions
- Preparers
- Resources
- restless.resources
ResourceResource.as_detail()Resource.as_list()Resource.as_view()Resource.bubble_exceptions()Resource.build_error()Resource.build_response()Resource.create()Resource.create_detail()Resource.delete()Resource.delete_list()Resource.deserialize()Resource.deserialize_detail()Resource.deserialize_list()Resource.detail()Resource.handle()Resource.handle_error()Resource.http_methodsResource.is_authenticated()Resource.is_debug()Resource.list()Resource.prepare()Resource.preparerResource.request_body()Resource.request_method()Resource.serialize()Resource.serialize_detail()Resource.serialize_list()Resource.serializerResource.status_mapResource.update()Resource.update_list()Resource.wrap_list_response()
skip_prepare()
- restless.dj
- restless.fl
- restless.pyr
- restless.it
- restless.tnd
- restless.resources
- Serializers
- Utils