Skip to main content

djangorestframework-orjson

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

Metadata

Release files for djangorestframework-orjson 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for djangorestframework-orjson 0.1.3
File Size Uploaded Provenance Actions
djangorestframework-orjson-0.1.3.tar.gz 3.9 kB Without provenance Details for djangorestframework-orjson-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for djangorestframework-orjson 0.1.3
File Interpreter ABI Platform Actions
djangorestframework_orjson-0.1.3-py2.py3-none-any.whl Python 3, Python 2 none any Details for djangorestframework_orjson-0.1.3-py2.py3-none-any.whl

Total release size: 11.1 kB

Release files / djangorestframework-orjson-0.1.3.tar.gz

Download URL djangorestframework-orjson-0.1.3.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d3b6d5021c70b8a342727c865fb4a072435c7899fcdbeb82a34c72edea187380
BLAKE2b-256 checksum
How to use checksums
07232328af29b157fe2e3db30ae97c95ae6a53f58ce7a722cd8afe97e9d64a48
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / djangorestframework_orjson-0.1.3-py2.py3-none-any.whl

Download URL djangorestframework_orjson-0.1.3-py2.py3-none-any.whl
Size 7.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
8b7b4004b1467798b0b4a138f7db0fa64e11ea5af8e2e0c43276590d135ab129
BLAKE2b-256 checksum
How to use checksums
86fd0c08feb3a464d304b5a8925b60930b3767b8774f8a57020edbae5e8dff33
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for djangorestframework-orjson 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page