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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: djangorestframework-orjson-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 d3b6d5021c70b8a342727c865fb4a072435c7899fcdbeb82a34c72edea187380
MD5 8a0826ec2d12c0618696ddfff691b923
BLAKE2b-256 07232328af29b157fe2e3db30ae97c95ae6a53f58ce7a722cd8afe97e9d64a48

See more details on using hashes here.

File details

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

File metadata

  • Download URL: djangorestframework_orjson-0.1.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.2 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.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8b7b4004b1467798b0b4a138f7db0fa64e11ea5af8e2e0c43276590d135ab129
MD5 2117df526da83e6dc64b2281161971da
BLAKE2b-256 86fd0c08feb3a464d304b5a8925b60930b3767b8774f8a57020edbae5e8dff33

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