Port variant | v11 |
Summary | Fast, correct Python JSON library (3.11) |
Package version | 3.10.0 |
Homepage | https://github.com/ijl/orjson |
Keywords | python, rust |
Maintainer | Python Automaton |
License | Not yet specified |
Other variants | v12 |
Ravenports | Buildsheet | History |
Ravensource | Port Directory | History |
Last modified | 02 APR 2024, 23:04:22 UTC |
Port created | 07 JAN 2023, 04:18:24 UTC |
single | orjson is a fast, correct JSON library for Python. It benchmarks as the fastest Python library for JSON and is more correct than the standard json library or other third-party libraries. It serializes dataclass, datetime, numpy, and UUID instances natively. Its features and drawbacks compared to other Python JSON libraries: - serializes dataclass instances 40-50x as fast as other libraries - serializes datetime, date, and time instances to RFC 3339 format, e.g., "1970-01-01T00:00:00+00:00" - serializes numpy.ndarray instances 4-12x as fast with 0.3x the memory usage of other libraries - pretty prints 10x to 20x as fast as the standard library - serializes to bytes rather than str, i.e., is not a drop-in replacement - serializes str without escaping unicode to ASCII, e.g., "???" rather than "\\u597d" - serializes float 10x as fast and deserializes 2x faster than other libs - serializes subclasses of str, int, list, and dict natively, requiring default to specify how to serialize others - serializes arbitrary types using a default hook - has strict UTF-8 conformance, more correct than the standard library - has strict JSON conformance in not supporting Nan/Infinity/-Infinity - has an option for strict JSON conformance on 53-bit integers with default support for 64-bit - does not provide load() or dump() functions for reading from/writing to file-like objects |
Build (only) |
python-setuptools-rust:single:v11 python-maturin:single:v11 python-pip:single:v11 rust:single:standard autoselect-python:single:standard |
Build and Runtime | python311:single:standard |
Runtime (only) | ravensys-gcc:libs:standard (single subpackage) |
main | mirror://PYPI/o/orjson |
cr01 | mirror://CRATES/ahash:0.8.11 |
cr02 | mirror://CRATES/arrayvec:0.7.4 |
cr03 | mirror://CRATES/associative-cache:2.0.0 |
cr04 | mirror://CRATES/autocfg:1.2.0 |
cr05 | mirror://CRATES/beef:0.5.2 |
cr06 | mirror://CRATES/bytecount:0.6.7 |
cr07 | mirror://CRATES/castaway:0.2.2 |
cr08 | mirror://CRATES/cc:1.0.90 |
cr09 | mirror://CRATES/cfg-if:1.0.0 |
cr10 | mirror://CRATES/chrono:0.4.34 |
cr11 | mirror://CRATES/compact_str:0.7.1 |
cr12 | mirror://CRATES/const-random:0.1.18 |
cr13 | mirror://CRATES/const-random-macro:0.1.16 |
cr14 | mirror://CRATES/crunchy:0.2.2 |
cr15 | mirror://CRATES/encoding_rs:0.8.33 |
cr16 | mirror://CRATES/getrandom:0.2.12 |
cr17 | mirror://CRATES/half:2.4.0 |
cr18 | mirror://CRATES/itoa:1.0.11 |
cr19 | mirror://CRATES/itoap:1.0.1 |
cr20 | mirror://CRATES/libc:0.2.153 |
cr21 | mirror://CRATES/no-panic:0.1.29 |
cr22 | mirror://CRATES/num-traits:0.2.18 |
cr23 | mirror://CRATES/once_cell:1.19.0 |
cr24 | mirror://CRATES/proc-macro2:1.0.79 |
cr25 | mirror://CRATES/pyo3-build-config:0.21.0 |
cr26 | mirror://CRATES/pyo3-ffi:0.21.0 |
cr27 | mirror://CRATES/quote:1.0.35 |
cr28 | mirror://CRATES/rustversion:1.0.14 |
cr29 | mirror://CRATES/ryu:1.0.17 |
cr30 | mirror://CRATES/serde:1.0.197 |
cr31 | mirror://CRATES/serde_derive:1.0.197 |
cr32 | mirror://CRATES/serde_json:1.0.115 |
cr33 | mirror://CRATES/simdutf8:0.1.4 |
cr34 | mirror://CRATES/smallvec:1.13.2 |
cr35 | mirror://CRATES/static_assertions:1.1.0 |
cr36 | mirror://CRATES/syn:2.0.55 |
cr37 | mirror://CRATES/target-lexicon:0.12.14 |
cr38 | mirror://CRATES/tiny-keccak:2.0.2 |
cr39 | mirror://CRATES/unicode-ident:1.0.12 |
cr40 | mirror://CRATES/version_check:0.9.4 |
cr41 | mirror://CRATES/wasi:0.11.0+wasi-snapshot-preview1 |
cr42 | mirror://CRATES/zerocopy:0.7.32 |
cr43 | mirror://CRATES/zerocopy-derive:0.7.32 |
No other ports depend on this one. |