Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Bundle several django rest framework requests into one

Project Description

drf-wrapper is a restful api wrapper which can bundle several api calls into one

When we design restful api, we tends to design clean api, one resource for one endpoints.
When we get data from api, we tends to reduce the number of requests, so we would like to
get all related resources with minimum api.

With drf-wrapper, you can design clean api, and call the wrapper api to get all required
data with just one requests.

How it works:
It is very simple, parse the required api url as query string like:,/api/item_b/

The library will carry over all the cookie, header from the orignal request to each api view,
that means all permission checking etc works the same as before.

* pip install drf_wrapper

* in your settings add 'drf_wrapper' into app

* in
urlpatterns += patterns(
url(r'wrapper/', 'drf_wrapper.views.wrapper_view')

* Add pass through param support. Enable api calls like: /api/wrapper?urls=/api/hot_item,/api/company/{0:company_id}/
* Add threshold. The maximum apis can be bundled in one wrapper.

Release History

This version
History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(65.7 kB) Copy SHA256 Hash SHA256
Windows Installer any May 10, 2014
(2.1 kB) Copy SHA256 Hash SHA256
Source None May 10, 2014

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers