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.2.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

djangorestframework_orjson-0.1.2-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.2.tar.gz.

File metadata

  • Download URL: djangorestframework-orjson-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 59a48a6649ec867d003e7f1acd697d48cb7b7766c1564aa98c1e27b2e750c43c
MD5 d0f8aa6d23f652fb2ed6380358b28274
BLAKE2b-256 45124cdb98cbea664e95c86527a6782545fa96aa2e3bd14573d7cda46c9b5e8d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: djangorestframework_orjson-0.1.2-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.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 979b7c71faa71bf4fbc11bf92fc1ccf042d57e7b14e52d2c7157981129e15798
MD5 29a411f883875be8e8869d3c3d2a45d2
BLAKE2b-256 e5f4473bdb80a703e92a138d6759ab19b0483cbb8c4d80b5b6b6fe55ff76f35c

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