Port variant | py310 |
Summary | Fast, correct Python JSON library (3.10) |
Package version | 3.9.7 |
Homepage | https://github.com/ijl/orjson |
Keywords | python, rust |
Maintainer | Python Automaton |
License | Not yet specified |
Other variants | v11 |
Ravenports | Buildsheet | History |
Ravensource | Port Directory | History |
Last modified | 10 SEP 2023, 21:15:40 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 |
main | mirror://PYPI/o/orjson |
cr01 | mirror://CRATES/ahash:0.8.3 |
cr02 | mirror://CRATES/arrayvec:0.7.4 |
cr03 | mirror://CRATES/associative-cache:1.0.1 |
cr04 | mirror://CRATES/autocfg:1.1.0 |
cr05 | mirror://CRATES/beef:0.5.2 |
cr06 | mirror://CRATES/bytecount:0.6.3 |
cr07 | mirror://CRATES/castaway:0.2.2 |
cr08 | mirror://CRATES/cc:1.0.83 |
cr09 | mirror://CRATES/cfg-if:1.0.0 |
cr10 | mirror://CRATES/chrono:0.4.30 |
cr11 | mirror://CRATES/compact_str:0.7.1 |
cr12 | mirror://CRATES/encoding_rs:0.8.33 |
cr13 | mirror://CRATES/itoa:1.0.9 |
cr14 | mirror://CRATES/itoap:1.0.1 |
cr15 | mirror://CRATES/libc:0.2.147 |
cr16 | mirror://CRATES/libm:0.1.4 |
cr17 | mirror://CRATES/libm:0.2.7 |
cr18 | mirror://CRATES/no-panic:0.1.26 |
cr19 | mirror://CRATES/num-traits:0.2.16 |
cr20 | mirror://CRATES/once_cell:1.18.0 |
cr21 | mirror://CRATES/packed_simd:0.3.9 |
cr22 | mirror://CRATES/packed_simd_2:0.3.8 |
cr23 | mirror://CRATES/proc-macro2:1.0.66 |
cr24 | mirror://CRATES/pyo3-build-config:0.19.2 |
cr25 | mirror://CRATES/pyo3-ffi:0.19.2 |
cr26 | mirror://CRATES/quote:1.0.33 |
cr27 | mirror://CRATES/rustversion:1.0.14 |
cr28 | mirror://CRATES/ryu:1.0.15 |
cr29 | mirror://CRATES/serde:1.0.188 |
cr30 | mirror://CRATES/serde_derive:1.0.188 |
cr31 | mirror://CRATES/serde_json:1.0.105 |
cr32 | mirror://CRATES/simdutf8:0.1.4 |
cr33 | mirror://CRATES/smallvec:1.11.0 |
cr34 | mirror://CRATES/static_assertions:1.1.0 |
cr35 | mirror://CRATES/syn:2.0.31 |
cr36 | mirror://CRATES/target-lexicon:0.12.11 |
cr37 | mirror://CRATES/unicode-ident:1.0.11 |
cr38 | mirror://CRATES/version_check:0.9.4 |
No other ports depend on this one. |