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': (
        'drf_orjson.renderers.ORJSONRenderer',
    ),
    'DEFAULT_PARSER_CLASSES': (
        'drf_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.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

djangorestframework_orjson-0.1.1-py2.py3-none-any.whl (5.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file djangorestframework-orjson-0.1.1.tar.gz.

File metadata

  • Download URL: djangorestframework-orjson-0.1.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for djangorestframework-orjson-0.1.1.tar.gz
Algorithm Hash digest
SHA256 16118cecdc6f834b0da8f2370725bfe38775a298538f7e3b695c1b0b703e979b
MD5 68fdb3cf6d5f0622ec052fea875261c2
BLAKE2b-256 002a7a3f3a0a5cf10b0892bb3f8d9d0dc11964c306fd0285c79743ad89b944ea

See more details on using hashes here.

File details

Details for the file djangorestframework_orjson-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: djangorestframework_orjson-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for djangorestframework_orjson-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a4d77c25dc9966e76eabdc61ce139618bf5505afc3583a5c7494039f65fb1500
MD5 20d93326e370e5d3cf1dd42853556e37
BLAKE2b-256 4048006c4b27d777e9e171d535226eb7f2f5a7ef5b0a9fd73a9f86195dbedc35

See more details on using hashes here.

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