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)
| File | Size | Uploaded | |
|---|---|---|---|
| djangorestframework-orjson-0.1.3.tar.gz | 3.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| djangorestframework_orjson-0.1.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
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
|