Port variant | v12 |
Summary | Fast, correct Python JSON library (3.12) |
BROKEN | |
Package version | 3.10.12 |
Homepage | https://github.com/ijl/orjson |
Keywords | python, rust |
Maintainer | Python Automaton |
License | Not yet specified |
Other variants | v13 |
Ravenports | Buildsheet | History |
Ravensource | Port Directory | History |
Last modified | 07 DEC 2024, 23:30:33 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:v12 python-maturin:single:v12 python-pip:single:v12 rust:single:std python312:dev:std autoselect-python:single:std |
Build and Runtime | python312:primary:std |
Runtime (only) | ravensys-gcc:libs:std (single subpackage) |
main | mirror://PYPI/o/orjson |
cr01 | mirror://CRATES/associative-cache:2.0.0 |
cr02 | mirror://CRATES/bytecount:0.6.8 |
cr03 | mirror://CRATES/castaway:0.2.3 |
cr04 | mirror://CRATES/cc:1.2.1 |
cr05 | mirror://CRATES/cfg-if:1.0.0 |
cr06 | mirror://CRATES/compact_str:0.8.0 |
cr07 | mirror://CRATES/crunchy:0.2.2 |
cr08 | mirror://CRATES/encoding_rs:0.8.35 |
cr09 | mirror://CRATES/gimli:0.31.1 |
cr10 | mirror://CRATES/half:2.4.1 |
cr11 | mirror://CRATES/itoa:1.0.13 |
cr12 | mirror://CRATES/itoap:1.0.1 |
cr13 | mirror://CRATES/jiff:0.1.14 |
cr14 | mirror://CRATES/libc:0.2.164 |
cr15 | mirror://CRATES/memchr:2.7.4 |
cr16 | mirror://CRATES/once_cell:1.20.2 |
cr17 | mirror://CRATES/proc-macro2:1.0.92 |
cr18 | mirror://CRATES/quote:1.0.37 |
cr19 | mirror://CRATES/rustversion:1.0.18 |
cr20 | mirror://CRATES/ryu:1.0.18 |
cr21 | mirror://CRATES/serde:1.0.215 |
cr22 | mirror://CRATES/serde_derive:1.0.215 |
cr23 | mirror://CRATES/serde_json:1.0.133 |
cr24 | mirror://CRATES/shlex:1.3.0 |
cr25 | mirror://CRATES/simdutf8:0.1.5 |
cr26 | mirror://CRATES/smallvec:1.13.2 |
cr27 | mirror://CRATES/static_assertions:1.1.0 |
cr28 | mirror://CRATES/syn:2.0.89 |
cr29 | mirror://CRATES/target-lexicon:0.12.16 |
cr30 | mirror://CRATES/unicode-ident:1.0.14 |
cr31 | mirror://CRATES/unwinding:0.2.4 |
cr32 | mirror://CRATES/uuid:1.11.0 |
cr33 | mirror://CRATES/version_check:0.9.5 |
cr34 | mirror://CRATES/xxhash-rust:0.8.12 |
No other ports depend on this one. |