Skip to main content

Provides parser and renderer support for orjson library

Project description

build-status-image pypi-version

Overview

Provides parser and renderer support for orjson library

Requirements

  • Python (3.5, 3.6, 3.7)

  • Django (1.11, 2.0, 2.1)

  • Django REST Framework (3.6, 3.7, 3.8, 3.9)

Installation

Install using pip

$ pip install djangorestframework-orjson

Example

You can use this library by adding the following lines to your settings file:

REST_FRAMEWORK = {
    'DEFAULT_RENDERER_CLASSES': (
        'rest_framework_orjson.renderers.ORJSONRenderer',
    ),
    'DEFAULT_PARSER_CLASSES': (
        'rest_framework_orjson.parsers.ORJSONParser',
    ),
}

Testing

Install testing requirements.

$ pip install -r requirements.txt

Run with runtests.

$ ./runtests.py

You can also use the excellent tox testing tool to run the tests against all supported versions of Python and Django. Install tox globally, and then simply run:

$ tox

Project details


Download files

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

Source Distribution

djangorestframework-orjson-0.1.3.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

djangorestframework_orjson-0.1.3-py2.py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page