python-orjson
Port variant v12
Summary Fast, correct Python JSON library (3.12)
Package version 3.11.0
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 21 JUL 2025, 01:40:20 UTC
Port created 08 JAN 2023, 04:18:24 UTC
Subpackage Descriptions
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
Configuration Switches (platform-specific settings discarded)
PY312 ON Build using Python 3.12 PY313 OFF Build using Python 3.13
Package Dependencies by Type
Build (only) python-maturin:single:v12
rust:single:std
python312:dev:std
python-pip:single:v12
python-setuptools:single:v12
python-wheel:single:v12
python-build:single:v12
python-installer:single:v12
autoselect-python:single:std
Build and Runtime python312:primary:std
Runtime (only) ravensys-gcc:libs:std (single subpackage)
Download groups
main mirror://PYPI/o/orjson
cr01 mirror://CRATES/associative-cache:2.0.0
cr02 mirror://CRATES/bytecount:0.6.9
cr03 mirror://CRATES/cc:1.2.29
cr04 mirror://CRATES/cfg-if:1.0.1
cr05 mirror://CRATES/crunchy:0.2.4
cr06 mirror://CRATES/encoding_rs:0.8.35
cr07 mirror://CRATES/gimli:0.31.1
cr08 mirror://CRATES/half:2.6.0
cr09 mirror://CRATES/itoa:1.0.15
cr10 mirror://CRATES/itoap:1.0.1
cr11 mirror://CRATES/jiff:0.2.15
cr12 mirror://CRATES/jiff-static:0.2.15
cr13 mirror://CRATES/libc:0.2.174
cr14 mirror://CRATES/memchr:2.7.5
cr15 mirror://CRATES/once_cell:1.21.3
cr16 mirror://CRATES/portable-atomic:1.11.1
cr17 mirror://CRATES/portable-atomic-util:0.2.4
cr18 mirror://CRATES/proc-macro2:1.0.95
cr19 mirror://CRATES/pyo3-build-config:0.25.1
cr20 mirror://CRATES/pyo3-ffi:0.25.1
cr21 mirror://CRATES/quote:1.0.40
cr22 mirror://CRATES/ryu:1.0.20
cr23 mirror://CRATES/serde:1.0.219
cr24 mirror://CRATES/serde_derive:1.0.219
cr25 mirror://CRATES/serde_json:1.0.140
cr26 mirror://CRATES/shlex:1.3.0
cr27 mirror://CRATES/simdutf8:0.1.5
cr28 mirror://CRATES/smallvec:1.15.1
cr29 mirror://CRATES/syn:2.0.104
cr30 mirror://CRATES/target-lexicon:0.13.2
cr31 mirror://CRATES/unicode-ident:1.0.18
cr32 mirror://CRATES/unwinding:0.2.5
cr33 mirror://CRATES/uuid:1.17.0
cr34 mirror://CRATES/version_check:0.9.5
cr35 mirror://CRATES/xxhash-rust:0.8.15
Distribution File Information
2e4c129da624f291bcc607016a99e7f04a353f6874f3bd8d9b47b88597d5f700 5318246 rust/crates/orjson-3.11.0.tar.gz b993cd767a2bc7307dd87622311ca22c44329cc7a21366206bfa0896827b2bad 13960 rust/crates/associative-cache-2.0.0.tar.gz 175812e0be2bccb6abe50bb8d566126198344f707e304f45c648fd8f2cc0365e 18695 rust/crates/bytecount-0.6.9.tar.gz 5c1599538de2394445747c8cf7935946e3cc27e9625f889d979bfb2aaf569362 108072 rust/crates/cc-1.2.29.tar.gz 9555578bc9e57714c812a1f84e4fc5b4d21fcb063490c624de019f7464c91268 8683 rust/crates/cfg-if-1.0.1.tar.gz 460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5 3887 rust/crates/crunchy-0.2.4.tar.gz 75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3 1381050 rust/crates/encoding_rs-0.8.35.tar.gz 07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f 279515 rust/crates/gimli-0.31.1.tar.gz 459196ed295495a68f7d7fe1d84f6c4b7ff0e21fe3017b2f283c6fac3ad803c9 59507 rust/crates/half-2.6.0.tar.gz 4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c 11231 rust/crates/itoa-1.0.15.tar.gz 9028f49264629065d057f340a86acb84867925865f73bbf8d47b4d149a7e88b8 83316 rust/crates/itoap-1.0.1.tar.gz be1f93b8b1eb69c77f24bbb0afdf66f54b632ee39af40ca21c4365a1d7347e49 712996 rust/crates/jiff-0.2.15.tar.gz 03343451ff899767262ec32146f6d559dd759fdadf42ff0e227c7c48f72594b4 76146 rust/crates/jiff-static-0.2.15.tar.gz 1171693293099992e19cddea4e8b849964e9846f4acee11b3948bcc337be8776 779933 rust/crates/libc-0.2.174.tar.gz 32a282da65faaf38286cf3be983213fcf1d2e2a58700e808f83f4ea9a4804bc0 97603 rust/crates/memchr-2.7.5.tar.gz 42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d 34534 rust/crates/once_cell-1.21.3.tar.gz f84267b20a16ea918e43c6a88433c2d54fa145c92a811b5b047ccbe153674483 185506 rust/crates/portable-atomic-1.11.1.tar.gz d8a2f0d8d040d7848a709caf78912debcc3f33ee4b3cac47d73d1e1069e83507 47043 rust/crates/portable-atomic-util-0.2.4.tar.gz 02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778 51820 rust/crates/proc-macro2-1.0.95.tar.gz 458eb0c55e7ece017adeba38f2248ff3ac615e53660d7c71a238d7d2a01c7598 34126 rust/crates/pyo3-build-config-0.25.1.tar.gz 7114fe5457c61b276ab77c5055f206295b812608083644a5c5b2640c3102565c 78058 rust/crates/pyo3-ffi-0.25.1.tar.gz 1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d 31063 rust/crates/quote-1.0.40.tar.gz 28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f 48738 rust/crates/ryu-1.0.20.tar.gz 5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6 78983 rust/crates/serde-1.0.219.tar.gz 5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00 57798 rust/crates/serde_derive-1.0.219.tar.gz 20068b6e96dc6c9bd23e01df8827e6c7e1f2fddd43c21810382803c136b99373 154852 rust/crates/serde_json-1.0.140.tar.gz 0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64 18713 rust/crates/shlex-1.3.0.tar.gz e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e 28488 rust/crates/simdutf8-0.1.5.tar.gz 67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03 38116 rust/crates/smallvec-1.15.1.tar.gz 17b6f705963418cdb9927482fa304bc562ece2fdd4f616084c50b7023b435a40 299699 rust/crates/syn-2.0.104.tar.gz e502f78cdbb8ba4718f566c418c52bc729126ffd16baee5baa718cf25dd5a69a 27923 rust/crates/target-lexicon-0.13.2.tar.gz 5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512 47743 rust/crates/unicode-ident-1.0.18.tar.gz 51f06a05848f650946acef3bf525fe96612226b61f74ae23ffa4e98bfbb8ab3c 28025 rust/crates/unwinding-0.2.5.tar.gz 3cf4199d1e5d15ddd86a694e4d0dffa9c323ce759fea589f00fef9d81cc1931d 59014 rust/crates/uuid-1.17.0.tar.gz 0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a 15554 rust/crates/version_check-0.9.5.tar.gz fdd20c5420375476fbd4394763288da7eb0cc0b8c11deed431a91562af7335d3 21515 rust/crates/xxhash-rust-0.8.15.tar.gz
Ports that require python-orjson:v12
No other ports depend on this one.