django-ripozo
Integrates ripozo with django for fast, flexible Hypermedia, HATEOAS, and other REST apis.
Full django-ripozo documentation
Looking for the ripozo documentation?
Supports Django 1.6, 1.7, and 1.8.
python 2.6, 2.7, 3.3, 3.4, pypy
NOTE
Currently there are compatibility issues with Django 1.6, 1.7 and python 3.5. There is currently a fix in progress. However, two of our test environments will fail until the fix is deployed. All tests pass otherwise.
Minimal App
You’ll need to instantiate the django project in the standard manner. If you aren’t sure how to do this, check out the excellent django documentation.
In your app you’ll need a resources.py file.
from ripozo import ResourceBase, apimethod
class MyResource(ResourceBase):
@apimethod(methods=['GET'])
def say_hello(cls, request):
return cls(properties=dict(hello='world'))
And in your urls.py file
from ripozo.adapters import SirenAdapter, HalAdapter
from .resources import MyResource
dispatcher = DjangoDispatcher()
dispatcher.register_resources(MyResource)
dispatcher.register_adapters(SirenAdapter, HalAdapter)
urlpatterns = dispatcher.url_patterns
And just like that you have a fully functional application.
Looking for a more extensive example? Check out an example with database interactions as well.
Metadata
Release files for django-ripozo 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-ripozo-1.1.0.tar.gz | 16.3 kB | Without provenance | Details |
Release files / django-ripozo-1.1.0.tar.gz
| Download URL | django-ripozo-1.1.0.tar.gz |
|---|---|
| Size | 16.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ecd77acdf06b710a7006f9bd6e4cee7799f6a8a8766e6f24c9ae5c641b6b56da
|
|
BLAKE2b-256 checksum How to use checksums |
64a54df98f62238a27f596793e710c3fbd6626ff0c710bc8a9d73ee0bede3e3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-ripozo 1.1.0
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.