Port variant | v13 |
Summary | Fast, correct Python JSON library (3.13) |
BROKEN | |
Package version | 3.10.10 |
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 | 11 NOV 2024, 23:28:05 UTC |
Port created | 08 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:v13 python-maturin:single:v13 python-pip:single:v13 rust:single:std python313:dev:std autoselect-python:single:std |
Build and Runtime | python313:primary:std |
Runtime (only) | ravensys-gcc:libs:std (single subpackage) |
main | mirror://PYPI/o/orjson |
cr01 | mirror://CRATES/arrayvec:0.7.6 |
cr02 | mirror://CRATES/associative-cache:2.0.0 |
cr03 | mirror://CRATES/bytecount:0.6.8 |
cr04 | mirror://CRATES/castaway:0.2.3 |
cr05 | mirror://CRATES/cc:1.1.31 |
cr06 | mirror://CRATES/cfg-if:1.0.0 |
cr07 | mirror://CRATES/compact_str:0.8.0 |
cr08 | mirror://CRATES/crunchy:0.2.2 |
cr09 | mirror://CRATES/encoding_rs:0.8.34 |
cr10 | mirror://CRATES/gimli:0.30.0 |
cr11 | mirror://CRATES/half:2.4.1 |
cr12 | mirror://CRATES/itoa:1.0.11 |
cr13 | mirror://CRATES/itoap:1.0.1 |
cr14 | mirror://CRATES/jiff:0.1.13 |
cr15 | mirror://CRATES/libc:0.2.161 |
cr16 | mirror://CRATES/memchr:2.7.4 |
cr17 | mirror://CRATES/no-panic:0.1.30 |
cr18 | mirror://CRATES/once_cell:1.20.2 |
cr19 | mirror://CRATES/proc-macro2:1.0.88 |
cr20 | mirror://CRATES/quote:1.0.37 |
cr21 | mirror://CRATES/rustversion:1.0.18 |
cr22 | mirror://CRATES/ryu:1.0.18 |
cr23 | mirror://CRATES/serde:1.0.211 |
cr24 | mirror://CRATES/serde_derive:1.0.211 |
cr25 | mirror://CRATES/serde_json:1.0.132 |
cr26 | mirror://CRATES/shlex:1.3.0 |
cr27 | mirror://CRATES/simdutf8:0.1.5 |
cr28 | mirror://CRATES/smallvec:1.13.2 |
cr29 | mirror://CRATES/static_assertions:1.1.0 |
cr30 | mirror://CRATES/syn:2.0.82 |
cr31 | mirror://CRATES/target-lexicon:0.12.16 |
cr32 | mirror://CRATES/unicode-ident:1.0.13 |
cr33 | mirror://CRATES/unwinding:0.2.2 |
cr34 | mirror://CRATES/version_check:0.9.5 |
cr35 | mirror://CRATES/xxhash-rust:0.8.12 |
No other ports depend on this one. |