oxjson 0.4.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (288) hide show
  1. oxjson-0.4.0/LICENSE +373 -0
  2. oxjson-0.4.0/MANIFEST.in +17 -0
  3. oxjson-0.4.0/PKG-INFO +199 -0
  4. oxjson-0.4.0/README.md +165 -0
  5. oxjson-0.4.0/README.ru.md +167 -0
  6. oxjson-0.4.0/THIRD_PARTY.md +59 -0
  7. oxjson-0.4.0/bench/bench.py +200 -0
  8. oxjson-0.4.0/bench/report.py +83 -0
  9. oxjson-0.4.0/docs/benchmarks.md +346 -0
  10. oxjson-0.4.0/include/jl_ctx.h +74 -0
  11. oxjson-0.4.0/include/jl_ctx.inc +27 -0
  12. oxjson-0.4.0/include/jl_pow5.h +656 -0
  13. oxjson-0.4.0/include/jl_pow5.inc +656 -0
  14. oxjson-0.4.0/include/json_build.h +27 -0
  15. oxjson-0.4.0/include/json_dumps_walk.h +20 -0
  16. oxjson-0.4.0/include/json_f64_fmt.h +379 -0
  17. oxjson-0.4.0/include/json_f64_pow10.h +632 -0
  18. oxjson-0.4.0/include/json_vec16.h +90 -0
  19. oxjson-0.4.0/licenses/MIT-nativejson-benchmark.txt +21 -0
  20. oxjson-0.4.0/licenses/MIT-simdjson.txt +21 -0
  21. oxjson-0.4.0/licenses/MIT-zmij.txt +22 -0
  22. oxjson-0.4.0/make_ext.py +76 -0
  23. oxjson-0.4.0/oxjson/__init__.py +31 -0
  24. oxjson-0.4.0/oxjson/__init__.pyi +38 -0
  25. oxjson-0.4.0/oxjson/oxjson.pyi +38 -0
  26. oxjson-0.4.0/oxjson/py.typed +0 -0
  27. oxjson-0.4.0/oxjson.egg-info/PKG-INFO +199 -0
  28. oxjson-0.4.0/oxjson.egg-info/SOURCES.txt +286 -0
  29. oxjson-0.4.0/oxjson.egg-info/dependency_links.txt +1 -0
  30. oxjson-0.4.0/oxjson.egg-info/top_level.txt +1 -0
  31. oxjson-0.4.0/pyproject.toml +59 -0
  32. oxjson-0.4.0/requirements-dev.txt +10 -0
  33. oxjson-0.4.0/setup.cfg +4 -0
  34. oxjson-0.4.0/setup.py +58 -0
  35. oxjson-0.4.0/src/jl_kernel.asm +1298 -0
  36. oxjson-0.4.0/src/jl_loads.c +1669 -0
  37. oxjson-0.4.0/src/jl_portable.c +3 -0
  38. oxjson-0.4.0/src/json_crt.c +98 -0
  39. oxjson-0.4.0/src/json_dumps_ext.inc +704 -0
  40. oxjson-0.4.0/src/json_dumps_portable.c +3 -0
  41. oxjson-0.4.0/src/json_dumps_walk.c +1486 -0
  42. oxjson-0.4.0/src/json_module.c +395 -0
  43. oxjson-0.4.0/testdata/_gen/arena_bomb_array.json +1 -0
  44. oxjson-0.4.0/testdata/_gen/avx2_bs31.json +1 -0
  45. oxjson-0.4.0/testdata/_gen/avx2_ctrl_chunk.json +1 -0
  46. oxjson-0.4.0/testdata/_gen/avx2_str_0.json +1 -0
  47. oxjson-0.4.0/testdata/_gen/avx2_str_1.json +1 -0
  48. oxjson-0.4.0/testdata/_gen/avx2_str_31.json +1 -0
  49. oxjson-0.4.0/testdata/_gen/avx2_str_32.json +1 -0
  50. oxjson-0.4.0/testdata/_gen/avx2_str_33.json +1 -0
  51. oxjson-0.4.0/testdata/_gen/avx2_str_8.json +1 -0
  52. oxjson-0.4.0/testdata/_gen/avx2_tail_str.json +1 -0
  53. oxjson-0.4.0/testdata/_gen/avx2_tail_ws.json +1 -0
  54. oxjson-0.4.0/testdata/_gen/bench_200k.json +1 -0
  55. oxjson-0.4.0/testdata/_gen/bench_800k.json +1 -0
  56. oxjson-0.4.0/testdata/_gen/bom_only.json +1 -0
  57. oxjson-0.4.0/testdata/_gen/bom_ws.json +1 -0
  58. oxjson-0.4.0/testdata/_gen/deep_10000.json +1 -0
  59. oxjson-0.4.0/testdata/_gen/deep_1025.json +1 -0
  60. oxjson-0.4.0/testdata/_gen/deep_31.json +1 -0
  61. oxjson-0.4.0/testdata/_gen/deep_32.json +1 -0
  62. oxjson-0.4.0/testdata/_gen/deep_33.json +1 -0
  63. oxjson-0.4.0/testdata/_gen/deep_64.json +1 -0
  64. oxjson-0.4.0/testdata/_gen/deep_obj_32.json +1 -0
  65. oxjson-0.4.0/testdata/_gen/deep_obj_33.json +1 -0
  66. oxjson-0.4.0/testdata/_gen/empty.json +0 -0
  67. oxjson-0.4.0/testdata/_gen/extra_closes.json +1 -0
  68. oxjson-0.4.0/testdata/_gen/huge_over_1mb.json +1 -0
  69. oxjson-0.4.0/testdata/_gen/long_int_4096.json +1 -0
  70. oxjson-0.4.0/testdata/_gen/long_key.json +1 -0
  71. oxjson-0.4.0/testdata/_gen/long_string.json +1 -0
  72. oxjson-0.4.0/testdata/_gen/mid_array.json +1 -0
  73. oxjson-0.4.0/testdata/_gen/nul_in_string.json +0 -0
  74. oxjson-0.4.0/testdata/_gen/only_spaces.json +2 -0
  75. oxjson-0.4.0/testdata/_gen/random_4k.bin +0 -0
  76. oxjson-0.4.0/testdata/_gen/rfc_array_nums.json +1 -0
  77. oxjson-0.4.0/testdata/_gen/rfc_digits20.json +1 -0
  78. oxjson-0.4.0/testdata/_gen/rfc_duplicate_keys.json +1 -0
  79. oxjson-0.4.0/testdata/_gen/rfc_empty_string.json +1 -0
  80. oxjson-0.4.0/testdata/_gen/rfc_exp308.json +1 -0
  81. oxjson-0.4.0/testdata/_gen/rfc_exp_plus.json +1 -0
  82. oxjson-0.4.0/testdata/_gen/rfc_inf.json +1 -0
  83. oxjson-0.4.0/testdata/_gen/rfc_int64_max.json +1 -0
  84. oxjson-0.4.0/testdata/_gen/rfc_int64_min.json +1 -0
  85. oxjson-0.4.0/testdata/_gen/rfc_int64_min_minus_1.json +1 -0
  86. oxjson-0.4.0/testdata/_gen/rfc_minus_zero.json +1 -0
  87. oxjson-0.4.0/testdata/_gen/rfc_nan.json +1 -0
  88. oxjson-0.4.0/testdata/_gen/rfc_nested3.json +1 -0
  89. oxjson-0.4.0/testdata/_gen/rfc_nines18.json +1 -0
  90. oxjson-0.4.0/testdata/_gen/rfc_nines19.json +1 -0
  91. oxjson-0.4.0/testdata/_gen/rfc_ninf.json +1 -0
  92. oxjson-0.4.0/testdata/_gen/rfc_pow63.json +1 -0
  93. oxjson-0.4.0/testdata/_gen/rfc_pow64.json +1 -0
  94. oxjson-0.4.0/testdata/_gen/rfc_small.json +1 -0
  95. oxjson-0.4.0/testdata/_gen/rfc_spaces_true.json +1 -0
  96. oxjson-0.4.0/testdata/_gen/rfc_surrogate_pair.json +1 -0
  97. oxjson-0.4.0/testdata/_gen/rfc_tiny.json +1 -0
  98. oxjson-0.4.0/testdata/_gen/rfc_unicode_escape.json +1 -0
  99. oxjson-0.4.0/testdata/_gen/ser_c0.json +1 -0
  100. oxjson-0.4.0/testdata/_gen/unclosed_long_string.json +1 -0
  101. oxjson-0.4.0/testdata/_gen/utf8_bom_content.json +1 -0
  102. oxjson-0.4.0/testdata/_gen/utf8_c3_20.json +1 -0
  103. oxjson-0.4.0/testdata/_gen/utf8_c3_c3.json +1 -0
  104. oxjson-0.4.0/testdata/_gen/utf8_c3_u00a9.json +1 -0
  105. oxjson-0.4.0/testdata/_gen/utf8_cesu8.json +1 -0
  106. oxjson-0.4.0/testdata/_gen/utf8_del.json +1 -0
  107. oxjson-0.4.0/testdata/_gen/utf8_e_acute.json +1 -0
  108. oxjson-0.4.0/testdata/_gen/utf8_emoji.json +1 -0
  109. oxjson-0.4.0/testdata/_gen/utf8_empty.json +1 -0
  110. oxjson-0.4.0/testdata/_gen/utf8_euro.json +1 -0
  111. oxjson-0.4.0/testdata/_gen/utf8_f4908080.json +1 -0
  112. oxjson-0.4.0/testdata/_gen/utf8_f4_10ffff.json +1 -0
  113. oxjson-0.4.0/testdata/_gen/utf8_key.txt +1 -0
  114. oxjson-0.4.0/testdata/_gen/utf8_lead_c0.json +1 -0
  115. oxjson-0.4.0/testdata/_gen/utf8_lead_f5.json +1 -0
  116. oxjson-0.4.0/testdata/_gen/utf8_lead_ff.json +1 -0
  117. oxjson-0.4.0/testdata/_gen/utf8_lone_80.json +1 -0
  118. oxjson-0.4.0/testdata/_gen/utf8_mix.json +1 -0
  119. oxjson-0.4.0/testdata/_gen/utf8_nonchar_fffe.json +1 -0
  120. oxjson-0.4.0/testdata/_gen/utf8_overlong_c080.json +1 -0
  121. oxjson-0.4.0/testdata/_gen/utf8_overlong_c0a2.json +1 -0
  122. oxjson-0.4.0/testdata/_gen/utf8_overlong_c0af.json +1 -0
  123. oxjson-0.4.0/testdata/_gen/utf8_overlong_c1bf.json +1 -0
  124. oxjson-0.4.0/testdata/_gen/utf8_overlong_e080af.json +1 -0
  125. oxjson-0.4.0/testdata/_gen/utf8_overlong_f0808080.json +1 -0
  126. oxjson-0.4.0/testdata/_gen/utf8_overlong_in32.json +1 -0
  127. oxjson-0.4.0/testdata/_gen/utf8_pair.json +1 -0
  128. oxjson-0.4.0/testdata/_gen/utf8_span32.json +1 -0
  129. oxjson-0.4.0/testdata/_gen/utf8_sur_eda080.json +1 -0
  130. oxjson-0.4.0/testdata/_gen/utf8_sur_edafbf.json +1 -0
  131. oxjson-0.4.0/testdata/_gen/utf8_sur_edb080.json +1 -0
  132. oxjson-0.4.0/testdata/_gen/utf8_sur_edbfbf.json +1 -0
  133. oxjson-0.4.0/testdata/_gen/utf8_trunc_c3.json +1 -0
  134. oxjson-0.4.0/testdata/_gen/utf8_trunc_e280.json +1 -0
  135. oxjson-0.4.0/testdata/_gen/utf8_trunc_f09f98.json +1 -0
  136. oxjson-0.4.0/testdata/_gen/utf8_u0000.json +1 -0
  137. oxjson-0.4.0/testdata/_gen/utf8_u002f.json +1 -0
  138. oxjson-0.4.0/testdata/_gen/utf8_u00e9.json +1 -0
  139. oxjson-0.4.0/testdata/bench/README.md +25 -0
  140. oxjson-0.4.0/testdata/bench/arrays.json +1 -0
  141. oxjson-0.4.0/testdata/bench/canada_like.json +1 -0
  142. oxjson-0.4.0/testdata/bench/escaped_quote_key.json +1 -0
  143. oxjson-0.4.0/testdata/bench/even_backslash_quote.json +1 -0
  144. oxjson-0.4.0/testdata/bench/in_string_braces.json +1 -0
  145. oxjson-0.4.0/testdata/bench/in_string_brackets.json +1 -0
  146. oxjson-0.4.0/testdata/bench/key_a_quote_b.txt +1 -0
  147. oxjson-0.4.0/testdata/bench/key_span_bslash.txt +1 -0
  148. oxjson-0.4.0/testdata/bench/large_50k.json +1 -0
  149. oxjson-0.4.0/testdata/bench/nested.json +1 -0
  150. oxjson-0.4.0/testdata/bench/odd_backslash_quote.json +1 -0
  151. oxjson-0.4.0/testdata/bench/root_string_braces.json +1 -0
  152. oxjson-0.4.0/testdata/bench/root_string_brackets.json +1 -0
  153. oxjson-0.4.0/testdata/bench/span_brace_in_key.json +1 -0
  154. oxjson-0.4.0/testdata/bench/span_bslash_at_31.json +1 -0
  155. oxjson-0.4.0/testdata/bench/tiny.json +1 -0
  156. oxjson-0.4.0/testdata/bench/twitter_like.json +1 -0
  157. oxjson-0.4.0/testdata/bench/unicode.json +1 -0
  158. oxjson-0.4.0/testdata/diverse/README.md +23 -0
  159. oxjson-0.4.0/testdata/diverse/apache_builds.json +4421 -0
  160. oxjson-0.4.0/testdata/diverse/canada.json +9 -0
  161. oxjson-0.4.0/testdata/diverse/citm_catalog.json +50469 -0
  162. oxjson-0.4.0/testdata/diverse/deep_mixed.json +1 -0
  163. oxjson-0.4.0/testdata/diverse/gsoc-2018.json +22754 -0
  164. oxjson-0.4.0/testdata/diverse/int_only_index.json +1 -0
  165. oxjson-0.4.0/testdata/diverse/marine_ik.json +47854 -0
  166. oxjson-0.4.0/testdata/diverse/numbers.json +3 -0
  167. oxjson-0.4.0/testdata/diverse/scientific_exp.json +1 -0
  168. oxjson-0.4.0/testdata/diverse/twitter.json +15482 -0
  169. oxjson-0.4.0/testdata/diverse/twitterescaped.json +1 -0
  170. oxjson-0.4.0/testdata/diverse/unicode_mix.json +1 -0
  171. oxjson-0.4.0/testdata/engine/array_obj.json +1 -0
  172. oxjson-0.4.0/testdata/engine/atlas.json +1954 -0
  173. oxjson-0.4.0/testdata/engine/min_object.json +1 -0
  174. oxjson-0.4.0/testdata/engine/nested_object.json +1 -0
  175. oxjson-0.4.0/testdata/engine/ui_atlas.json +1954 -0
  176. oxjson-0.4.0/testdata/invalid/c_comment.json +1 -0
  177. oxjson-0.4.0/testdata/invalid/comments.json +1 -0
  178. oxjson-0.4.0/testdata/invalid/exp400.json +1 -0
  179. oxjson-0.4.0/testdata/invalid/exp_incomplete.json +1 -0
  180. oxjson-0.4.0/testdata/invalid/exp_incomplete_sign.json +1 -0
  181. oxjson-0.4.0/testdata/invalid/leading_dot.json +1 -0
  182. oxjson-0.4.0/testdata/invalid/leading_zero.json +1 -0
  183. oxjson-0.4.0/testdata/invalid/plus_one.json +1 -0
  184. oxjson-0.4.0/testdata/invalid/trailing_comma_arr.json +1 -0
  185. oxjson-0.4.0/testdata/invalid/trailing_comma_obj.json +1 -0
  186. oxjson-0.4.0/testdata/invalid/trailing_dot.json +1 -0
  187. oxjson-0.4.0/testdata/invalid/trailing_junk.json +1 -0
  188. oxjson-0.4.0/testdata/invalid/truee.json +1 -0
  189. oxjson-0.4.0/testdata/invalid/unclosed_arr.json +1 -0
  190. oxjson-0.4.0/testdata/invalid/unclosed_obj.json +1 -0
  191. oxjson-0.4.0/testdata/invalid/unclosed_str.json +1 -0
  192. oxjson-0.4.0/testdata/invalid/unescaped_control.json +2 -0
  193. oxjson-0.4.0/testdata/invalid/unpaired_surrogate.json +1 -0
  194. oxjson-0.4.0/testdata/layout/bom_utf8.json +1 -0
  195. oxjson-0.4.0/testdata/layout/compact.json +1 -0
  196. oxjson-0.4.0/testdata/layout/nest.json +1 -0
  197. oxjson-0.4.0/testdata/layout/scalar.json +1 -0
  198. oxjson-0.4.0/testdata/layout/spaced_array.json +2 -0
  199. oxjson-0.4.0/testdata/layout/wide_space.json +1 -0
  200. oxjson-0.4.0/testdata/nst/n_array_trailing_comma.json +1 -0
  201. oxjson-0.4.0/testdata/nst/n_number_huge_exp.json +1 -0
  202. oxjson-0.4.0/testdata/nst/n_number_leading_dot.json +1 -0
  203. oxjson-0.4.0/testdata/nst/n_number_leading_zero.json +1 -0
  204. oxjson-0.4.0/testdata/nst/n_number_trailing_dot.json +1 -0
  205. oxjson-0.4.0/testdata/nst/n_object_trailing_comma.json +1 -0
  206. oxjson-0.4.0/testdata/nst/n_string_unescaped_nl.json +2 -0
  207. oxjson-0.4.0/testdata/nst/n_string_unescaped_tab.json +1 -0
  208. oxjson-0.4.0/testdata/nst/n_string_unpaired_surrogate.json +1 -0
  209. oxjson-0.4.0/testdata/nst/n_structure_comment.json +1 -0
  210. oxjson-0.4.0/testdata/nst/n_structure_trailing_junk.json +1 -0
  211. oxjson-0.4.0/testdata/nst/n_structure_whitespace_only.json +1 -0
  212. oxjson-0.4.0/testdata/nst/y_array_empty.json +1 -0
  213. oxjson-0.4.0/testdata/nst/y_array_empty_string.json +1 -0
  214. oxjson-0.4.0/testdata/nst/y_number_0.json +1 -0
  215. oxjson-0.4.0/testdata/nst/y_number_minus_zero.json +1 -0
  216. oxjson-0.4.0/testdata/nst/y_number_real_negative_exp.json +1 -0
  217. oxjson-0.4.0/testdata/nst/y_object_empty.json +1 -0
  218. oxjson-0.4.0/testdata/nst/y_object_empty_key.json +1 -0
  219. oxjson-0.4.0/testdata/nst/y_object_escaped_quote_key.json +1 -0
  220. oxjson-0.4.0/testdata/nst/y_string_braces.json +1 -0
  221. oxjson-0.4.0/testdata/nst/y_string_escaped_quote.json +1 -0
  222. oxjson-0.4.0/testdata/nst/y_string_surrogate_pair.json +1 -0
  223. oxjson-0.4.0/testdata/nst/y_string_utf8.json +1 -0
  224. oxjson-0.4.0/testdata/nst/y_structure_true.json +1 -0
  225. oxjson-0.4.0/testdata/real_small/README.md +21 -0
  226. oxjson-0.4.0/testdata/real_small/array_obj.json +1 -0
  227. oxjson-0.4.0/testdata/real_small/atlas_tiny.json +58 -0
  228. oxjson-0.4.0/testdata/real_small/bool_null.json +1 -0
  229. oxjson-0.4.0/testdata/real_small/empty_arr.json +1 -0
  230. oxjson-0.4.0/testdata/real_small/empty_obj.json +1 -0
  231. oxjson-0.4.0/testdata/real_small/min_object.json +1 -0
  232. oxjson-0.4.0/testdata/real_small/nested_object.json +1 -0
  233. oxjson-0.4.0/testdata/real_small/nums_arr.json +1 -0
  234. oxjson-0.4.0/testdata/real_small/ok_true.json +1 -0
  235. oxjson-0.4.0/testdata/real_small/records_32.json +1 -0
  236. oxjson-0.4.0/testdata/real_small/tileset_coordinates.json +171 -0
  237. oxjson-0.4.0/testdata/real_small/tileset_mapping.json +157 -0
  238. oxjson-0.4.0/testdata/real_small/ui_config.json +17 -0
  239. oxjson-0.4.0/testdata/valid/bom.json +1 -0
  240. oxjson-0.4.0/testdata/valid/digits20.json +1 -0
  241. oxjson-0.4.0/testdata/valid/duplicate.json +1 -0
  242. oxjson-0.4.0/testdata/valid/empty_array.json +1 -0
  243. oxjson-0.4.0/testdata/valid/empty_key.json +1 -0
  244. oxjson-0.4.0/testdata/valid/empty_object.json +1 -0
  245. oxjson-0.4.0/testdata/valid/escapes.json +1 -0
  246. oxjson-0.4.0/testdata/valid/exp22.json +1 -0
  247. oxjson-0.4.0/testdata/valid/exp308.json +1 -0
  248. oxjson-0.4.0/testdata/valid/exp_negative.json +1 -0
  249. oxjson-0.4.0/testdata/valid/exp_positive.json +1 -0
  250. oxjson-0.4.0/testdata/valid/false.json +1 -0
  251. oxjson-0.4.0/testdata/valid/float_dot.json +1 -0
  252. oxjson-0.4.0/testdata/valid/inf.json +1 -0
  253. oxjson-0.4.0/testdata/valid/int.json +1 -0
  254. oxjson-0.4.0/testdata/valid/int64_max.json +1 -0
  255. oxjson-0.4.0/testdata/valid/int64_min.json +1 -0
  256. oxjson-0.4.0/testdata/valid/int64_min_minus_1.json +1 -0
  257. oxjson-0.4.0/testdata/valid/long_mantissa.json +1 -0
  258. oxjson-0.4.0/testdata/valid/minus_zero.json +1 -0
  259. oxjson-0.4.0/testdata/valid/nan.json +1 -0
  260. oxjson-0.4.0/testdata/valid/neg.json +1 -0
  261. oxjson-0.4.0/testdata/valid/nines18.json +1 -0
  262. oxjson-0.4.0/testdata/valid/nines19.json +1 -0
  263. oxjson-0.4.0/testdata/valid/ninf.json +1 -0
  264. oxjson-0.4.0/testdata/valid/null.json +1 -0
  265. oxjson-0.4.0/testdata/valid/object.json +1 -0
  266. oxjson-0.4.0/testdata/valid/pow63.json +1 -0
  267. oxjson-0.4.0/testdata/valid/pow64.json +1 -0
  268. oxjson-0.4.0/testdata/valid/ser_vt.json +1 -0
  269. oxjson-0.4.0/testdata/valid/similar_keys.json +1 -0
  270. oxjson-0.4.0/testdata/valid/strings.json +1 -0
  271. oxjson-0.4.0/testdata/valid/surrogate.json +1 -0
  272. oxjson-0.4.0/testdata/valid/true.json +1 -0
  273. oxjson-0.4.0/testdata/valid/underflow_exp.json +1 -0
  274. oxjson-0.4.0/testdata/valid/utf8.json +1 -0
  275. oxjson-0.4.0/testdata/valid/utf8_multibyte.json +1 -0
  276. oxjson-0.4.0/testdata/valid/whitespace.json +5 -0
  277. oxjson-0.4.0/testdata/valid/zero.json +1 -0
  278. oxjson-0.4.0/testdata/valid/zero_exp.json +1 -0
  279. oxjson-0.4.0/tests/check_conformance.py +288 -0
  280. oxjson-0.4.0/tests/check_dumps.py +40 -0
  281. oxjson-0.4.0/tests/check_dumps_orjson.py +267 -0
  282. oxjson-0.4.0/tests/check_loads.py +129 -0
  283. oxjson-0.4.0/tests/check_portable.py +83 -0
  284. oxjson-0.4.0/tests/check_versions.py +279 -0
  285. oxjson-0.4.0/tests/run_all.py +69 -0
  286. oxjson-0.4.0/tests/vec16_selftest.c +110 -0
  287. oxjson-0.4.0/tools/gen_pow10_table.py +40 -0
  288. oxjson-0.4.0/tools/gen_pow5_table.py +32 -0
oxjson-0.4.0/LICENSE ADDED
@@ -0,0 +1,373 @@
1
+ Mozilla Public License Version 2.0
2
+ ==================================
3
+
4
+ 1. Definitions
5
+ --------------
6
+
7
+ 1.1. "Contributor"
8
+ means each individual or legal entity that creates, contributes to
9
+ the creation of, or owns Covered Software.
10
+
11
+ 1.2. "Contributor Version"
12
+ means the combination of the Contributions of others (if any) used
13
+ by a Contributor and that particular Contributor's Contribution.
14
+
15
+ 1.3. "Contribution"
16
+ means Covered Software of a particular Contributor.
17
+
18
+ 1.4. "Covered Software"
19
+ means Source Code Form to which the initial Contributor has attached
20
+ the notice in Exhibit A, the Executable Form of such Source Code
21
+ Form, and Modifications of such Source Code Form, in each case
22
+ including portions thereof.
23
+
24
+ 1.5. "Incompatible With Secondary Licenses"
25
+ means
26
+
27
+ (a) that the initial Contributor has attached the notice described
28
+ in Exhibit B to the Covered Software; or
29
+
30
+ (b) that the Covered Software was made available under the terms of
31
+ version 1.1 or earlier of the License, but not also under the
32
+ terms of a Secondary License.
33
+
34
+ 1.6. "Executable Form"
35
+ means any form of the work other than Source Code Form.
36
+
37
+ 1.7. "Larger Work"
38
+ means a work that combines Covered Software with other material, in
39
+ a separate file or files, that is not Covered Software.
40
+
41
+ 1.8. "License"
42
+ means this document.
43
+
44
+ 1.9. "Licensable"
45
+ means having the right to grant, to the maximum extent possible,
46
+ whether at the time of the initial grant or subsequently, any and
47
+ all of the rights conveyed by this License.
48
+
49
+ 1.10. "Modifications"
50
+ means any of the following:
51
+
52
+ (a) any file in Source Code Form that results from an addition to,
53
+ deletion from, or modification of the contents of Covered
54
+ Software; or
55
+
56
+ (b) any new file in Source Code Form that contains any Covered
57
+ Software.
58
+
59
+ 1.11. "Patent Claims" of a Contributor
60
+ means any patent claim(s), including without limitation, method,
61
+ process, and apparatus claims, in any patent Licensable by such
62
+ Contributor that would be infringed, but for the grant of the
63
+ License, by the making, using, selling, offering for sale, having
64
+ made, import, or transfer of either its Contributions or its
65
+ Contributor Version.
66
+
67
+ 1.12. "Secondary License"
68
+ means either the GNU General Public License, Version 2.0, the GNU
69
+ Lesser General Public License, Version 2.1, the GNU Affero General
70
+ Public License, Version 3.0, or any later versions of those
71
+ licenses.
72
+
73
+ 1.13. "Source Code Form"
74
+ means the form of the work preferred for making modifications.
75
+
76
+ 1.14. "You" (or "Your")
77
+ means an individual or a legal entity exercising rights under this
78
+ License. For legal entities, "You" includes any entity that
79
+ controls, is controlled by, or is under common control with You. For
80
+ purposes of this definition, "control" means (a) the power, direct
81
+ or indirect, to cause the direction or management of such entity,
82
+ whether by contract or otherwise, or (b) ownership of more than
83
+ fifty percent (50%) of the outstanding shares or beneficial
84
+ ownership of such entity.
85
+
86
+ 2. License Grants and Conditions
87
+ --------------------------------
88
+
89
+ 2.1. Grants
90
+
91
+ Each Contributor hereby grants You a world-wide, royalty-free,
92
+ non-exclusive license:
93
+
94
+ (a) under intellectual property rights (other than patent or trademark)
95
+ Licensable by such Contributor to use, reproduce, make available,
96
+ modify, display, perform, distribute, and otherwise exploit its
97
+ Contributions, either on an unmodified basis, with Modifications, or
98
+ as part of a Larger Work; and
99
+
100
+ (b) under Patent Claims of such Contributor to make, use, sell, offer
101
+ for sale, have made, import, and otherwise transfer either its
102
+ Contributions or its Contributor Version.
103
+
104
+ 2.2. Effective Date
105
+
106
+ The licenses granted in Section 2.1 with respect to any Contribution
107
+ become effective for each Contribution on the date the Contributor first
108
+ distributes such Contribution.
109
+
110
+ 2.3. Limitations on Grant Scope
111
+
112
+ The licenses granted in this Section 2 are the only rights granted under
113
+ this License. No additional rights or licenses will be implied from the
114
+ distribution or licensing of Covered Software under this License.
115
+ Notwithstanding Section 2.1(b) above, no patent license is granted by a
116
+ Contributor:
117
+
118
+ (a) for any code that a Contributor has removed from Covered Software;
119
+ or
120
+
121
+ (b) for infringements caused by: (i) Your and any other third party's
122
+ modifications of Covered Software, or (ii) the combination of its
123
+ Contributions with other software (except as part of its Contributor
124
+ Version); or
125
+
126
+ (c) under Patent Claims infringed by Covered Software in the absence of
127
+ its Contributions.
128
+
129
+ This License does not grant any rights in the trademarks, service marks,
130
+ or logos of any Contributor (except as may be necessary to comply with
131
+ the notice requirements in Section 3.4).
132
+
133
+ 2.4. Subsequent Licenses
134
+
135
+ No Contributor makes additional grants as a result of Your choice to
136
+ distribute the Covered Software under a subsequent version of this
137
+ License (see Section 10.2) or under the terms of a Secondary License (if
138
+ permitted under the terms of Section 3.3).
139
+
140
+ 2.5. Representation
141
+
142
+ Each Contributor represents that the Contributor believes its
143
+ Contributions are its original creation(s) or it has sufficient rights
144
+ to grant the rights to its Contributions conveyed by this License.
145
+
146
+ 2.6. Fair Use
147
+
148
+ This License is not intended to limit any rights You have under
149
+ applicable copyright doctrines of fair use, fair dealing, or other
150
+ equivalents.
151
+
152
+ 2.7. Conditions
153
+
154
+ Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
155
+ in Section 2.1.
156
+
157
+ 3. Responsibilities
158
+ -------------------
159
+
160
+ 3.1. Distribution of Source Form
161
+
162
+ All distribution of Covered Software in Source Code Form, including any
163
+ Modifications that You create or to which You contribute, must be under
164
+ the terms of this License. You must inform recipients that the Source
165
+ Code Form of the Covered Software is governed by the terms of this
166
+ License, and how they can obtain a copy of this License. You may not
167
+ attempt to alter or restrict the recipients' rights in the Source Code
168
+ Form.
169
+
170
+ 3.2. Distribution of Executable Form
171
+
172
+ If You distribute Covered Software in Executable Form then:
173
+
174
+ (a) such Covered Software must also be made available in Source Code
175
+ Form, as described in Section 3.1, and You must inform recipients of
176
+ the Executable Form how they can obtain a copy of such Source Code
177
+ Form by reasonable means in a timely manner, at a charge no more
178
+ than the cost of distribution to the recipient; and
179
+
180
+ (b) You may distribute such Executable Form under the terms of this
181
+ License, or sublicense it under different terms, provided that the
182
+ license for the Executable Form does not attempt to limit or alter
183
+ the recipients' rights in the Source Code Form under this License.
184
+
185
+ 3.3. Distribution of a Larger Work
186
+
187
+ You may create and distribute a Larger Work under terms of Your choice,
188
+ provided that You also comply with the requirements of this License for
189
+ the Covered Software. If the Larger Work is a combination of Covered
190
+ Software with a work governed by one or more Secondary Licenses, and the
191
+ Covered Software is not Incompatible With Secondary Licenses, this
192
+ License permits You to additionally distribute such Covered Software
193
+ under the terms of such Secondary License(s), so that the recipient of
194
+ the Larger Work may, at their option, further distribute the Covered
195
+ Software under the terms of either this License or such Secondary
196
+ License(s).
197
+
198
+ 3.4. Notices
199
+
200
+ You may not remove or alter the substance of any license notices
201
+ (including copyright notices, patent notices, disclaimers of warranty,
202
+ or limitations of liability) contained within the Source Code Form of
203
+ the Covered Software, except that You may alter any license notices to
204
+ the extent required to remedy known factual inaccuracies.
205
+
206
+ 3.5. Application of Additional Terms
207
+
208
+ You may choose to offer, and to charge a fee for, warranty, support,
209
+ indemnity or liability obligations to one or more recipients of Covered
210
+ Software. However, You may do so only on Your own behalf, and not on
211
+ behalf of any Contributor. You must make it absolutely clear that any
212
+ such warranty, support, indemnity, or liability obligation is offered by
213
+ You alone, and You hereby agree to indemnify every Contributor for any
214
+ liability incurred by such Contributor as a result of warranty, support,
215
+ indemnity or liability terms You offer. You may include additional
216
+ disclaimers of warranty and limitations of liability specific to any
217
+ jurisdiction.
218
+
219
+ 4. Inability to Comply Due to Statute or Regulation
220
+ ---------------------------------------------------
221
+
222
+ If it is impossible for You to comply with any of the terms of this
223
+ License with respect to some or all of the Covered Software due to
224
+ statute, judicial order, or regulation then You must: (a) comply with
225
+ the terms of this License to the maximum extent possible; and (b)
226
+ describe the limitations and the code they affect. Such description must
227
+ be placed in a text file included with all distributions of the Covered
228
+ Software under this License. Except to the extent prohibited by statute
229
+ or regulation, such description must be sufficiently detailed for a
230
+ recipient of ordinary skill to be able to understand it.
231
+
232
+ 5. Termination
233
+ --------------
234
+
235
+ 5.1. The rights granted under this License will terminate automatically
236
+ if You fail to comply with any of its terms. However, if You become
237
+ compliant, then the rights granted under this License from a particular
238
+ Contributor are reinstated (a) provisionally, unless and until such
239
+ Contributor explicitly and finally terminates Your grants, and (b) on an
240
+ ongoing basis, if such Contributor fails to notify You of the
241
+ non-compliance by some reasonable means prior to 60 days after You have
242
+ come back into compliance. Moreover, Your grants from a particular
243
+ Contributor are reinstated on an ongoing basis if such Contributor
244
+ notifies You of the non-compliance by some reasonable means, this is the
245
+ first time You have received notice of non-compliance with this License
246
+ from such Contributor, and You become compliant prior to 30 days after
247
+ Your receipt of the notice.
248
+
249
+ 5.2. If You initiate litigation against any entity by asserting a patent
250
+ infringement claim (excluding declaratory judgment actions,
251
+ counter-claims, and cross-claims) alleging that a Contributor Version
252
+ directly or indirectly infringes any patent, then the rights granted to
253
+ You by any and all Contributors for the Covered Software under Section
254
+ 2.1 of this License shall terminate.
255
+
256
+ 5.3. In the event of termination under Sections 5.1 or 5.2 above, all
257
+ end user license agreements (excluding distributors and resellers) which
258
+ have been validly granted by You or Your distributors under this License
259
+ prior to termination shall survive termination.
260
+
261
+ ************************************************************************
262
+ * *
263
+ * 6. Disclaimer of Warranty *
264
+ * ------------------------- *
265
+ * *
266
+ * Covered Software is provided under this License on an "as is" *
267
+ * basis, without warranty of any kind, either expressed, implied, or *
268
+ * statutory, including, without limitation, warranties that the *
269
+ * Covered Software is free of defects, merchantable, fit for a *
270
+ * particular purpose or non-infringing. The entire risk as to the *
271
+ * quality and performance of the Covered Software is with You. *
272
+ * Should any Covered Software prove defective in any respect, You *
273
+ * (not any Contributor) assume the cost of any necessary servicing, *
274
+ * repair, or correction. This disclaimer of warranty constitutes an *
275
+ * essential part of this License. No use of any Covered Software is *
276
+ * authorized under this License except under this disclaimer. *
277
+ * *
278
+ ************************************************************************
279
+
280
+ ************************************************************************
281
+ * *
282
+ * 7. Limitation of Liability *
283
+ * -------------------------- *
284
+ * *
285
+ * Under no circumstances and under no legal theory, whether tort *
286
+ * (including negligence), contract, or otherwise, shall any *
287
+ * Contributor, or anyone who distributes Covered Software as *
288
+ * permitted above, be liable to You for any direct, indirect, *
289
+ * special, incidental, or consequential damages of any character *
290
+ * including, without limitation, damages for lost profits, loss of *
291
+ * goodwill, work stoppage, computer failure or malfunction, or any *
292
+ * and all other commercial damages or losses, even if such party *
293
+ * shall have been informed of the possibility of such damages. This *
294
+ * limitation of liability shall not apply to liability for death or *
295
+ * personal injury resulting from such party's negligence to the *
296
+ * extent applicable law prohibits such limitation. Some *
297
+ * jurisdictions do not allow the exclusion or limitation of *
298
+ * incidental or consequential damages, so this exclusion and *
299
+ * limitation may not apply to You. *
300
+ * *
301
+ ************************************************************************
302
+
303
+ 8. Litigation
304
+ -------------
305
+
306
+ Any litigation relating to this License may be brought only in the
307
+ courts of a jurisdiction where the defendant maintains its principal
308
+ place of business and such litigation shall be governed by laws of that
309
+ jurisdiction, without reference to its conflict-of-law provisions.
310
+ Nothing in this Section shall prevent a party's ability to bring
311
+ cross-claims or counter-claims.
312
+
313
+ 9. Miscellaneous
314
+ ----------------
315
+
316
+ This License represents the complete agreement concerning the subject
317
+ matter hereof. If any provision of this License is held to be
318
+ unenforceable, such provision shall be reformed only to the extent
319
+ necessary to make it enforceable. Any law or regulation which provides
320
+ that the language of a contract shall be construed against the drafter
321
+ shall not be used to construe this License against a Contributor.
322
+
323
+ 10. Versions of the License
324
+ ---------------------------
325
+
326
+ 10.1. New Versions
327
+
328
+ Mozilla Foundation is the license steward. Except as provided in Section
329
+ 10.3, no one other than the license steward has the right to modify or
330
+ publish new versions of this License. Each version will be given a
331
+ distinguishing version number.
332
+
333
+ 10.2. Effect of New Versions
334
+
335
+ You may distribute the Covered Software under the terms of the version
336
+ of the License under which You originally received the Covered Software,
337
+ or under the terms of any subsequent version published by the license
338
+ steward.
339
+
340
+ 10.3. Modified Versions
341
+
342
+ If you create software not governed by this License, and you want to
343
+ create a new license for such software, you may create and use a
344
+ modified version of this License if you rename the license and remove
345
+ any references to the name of the license steward (except to note that
346
+ such modified license differs from this License).
347
+
348
+ 10.4. Distributing Source Code Form that is Incompatible With Secondary
349
+ Licenses
350
+
351
+ If You choose to distribute Source Code Form that is Incompatible With
352
+ Secondary Licenses under the terms of this version of the License, the
353
+ notice described in Exhibit B of this License must be attached.
354
+
355
+ Exhibit A - Source Code Form License Notice
356
+ -------------------------------------------
357
+
358
+ This Source Code Form is subject to the terms of the Mozilla Public
359
+ License, v. 2.0. If a copy of the MPL was not distributed with this
360
+ file, You can obtain one at https://mozilla.org/MPL/2.0/.
361
+
362
+ If it is not possible or desirable to put the notice in a particular
363
+ file, then You may include the notice in a location (such as a LICENSE
364
+ file in a relevant directory) where a recipient would be likely to look
365
+ for such a notice.
366
+
367
+ You may add additional accurate notices of copyright ownership.
368
+
369
+ Exhibit B - "Incompatible With Secondary Licenses" Notice
370
+ ---------------------------------------------------------
371
+
372
+ This Source Code Form is "Incompatible With Secondary Licenses", as
373
+ defined by the Mozilla Public License, v. 2.0.
@@ -0,0 +1,17 @@
1
+ include LICENSE
2
+ include THIRD_PARTY.md
3
+ include README.md
4
+ include README.ru.md
5
+ include make_ext.py
6
+ include pyproject.toml
7
+ include requirements-dev.txt
8
+ recursive-include licenses *
9
+ recursive-include src *
10
+ recursive-include include *
11
+ recursive-include oxjson *.py *.pyi py.typed
12
+ recursive-include tests *
13
+ recursive-include testdata *
14
+ recursive-include tools *
15
+ recursive-include docs *
16
+ recursive-include bench *.py
17
+ global-exclude *.pyd *.so *.o *.obj *.pyc __pycache__ .venv
oxjson-0.4.0/PKG-INFO ADDED
@@ -0,0 +1,199 @@
1
+ Metadata-Version: 2.4
2
+ Name: oxjson
3
+ Version: 0.4.0
4
+ Summary: Fast JSON for CPython: orjson-compatible loads/dumps with an x86-64 NASM kernel and portable C fallback
5
+ Author: Lev Berezkin
6
+ License-Expression: MPL-2.0
7
+ Project-URL: Homepage, https://github.com/DarkAngelBeats/oxjson
8
+ Project-URL: Repository, https://github.com/DarkAngelBeats/oxjson
9
+ Project-URL: Issues, https://github.com/DarkAngelBeats/oxjson/issues
10
+ Keywords: json,orjson,simd,avx2,nasm
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Operating System :: MacOS
14
+ Classifier: Operating System :: Microsoft :: Windows
15
+ Classifier: Operating System :: POSIX :: Linux
16
+ Classifier: Programming Language :: C
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Programming Language :: Python :: 3.14
23
+ Classifier: Programming Language :: Python :: Implementation :: CPython
24
+ Classifier: Topic :: Software Development :: Libraries
25
+ Classifier: Typing :: Typed
26
+ Requires-Python: >=3.10
27
+ Description-Content-Type: text/markdown
28
+ License-File: LICENSE
29
+ License-File: THIRD_PARTY.md
30
+ License-File: licenses/MIT-nativejson-benchmark.txt
31
+ License-File: licenses/MIT-simdjson.txt
32
+ License-File: licenses/MIT-zmij.txt
33
+ Dynamic: license-file
34
+
35
+ # oxjson
36
+
37
+ **English** | [Русский](README.ru.md)
38
+
39
+ A JSON library for CPython with the `orjson` interface: `loads` returns `dict` / `list`, `dumps` returns `bytes`.
40
+ The parser kernel is x86-64 assembly (NASM, AVX2). A C version of the same code, with NEON on ARM64
41
+ and SSE2 on older x86-64 CPUs, runs everywhere else.
42
+
43
+ ```python
44
+ import oxjson
45
+
46
+ obj = oxjson.loads(b'{"id": 1, "tags": ["a", "b"], "score": 2.5}')
47
+ data = oxjson.dumps(obj) # b'{"id":1,"tags":["a","b"],"score":2.5}'
48
+ text = oxjson.dumps(obj, option=oxjson.OPT_INDENT_2 | oxjson.OPT_SORT_KEYS)
49
+ ```
50
+
51
+ ## Status
52
+
53
+ Young project. It passes the public conformance suites and agrees with `orjson` on the checks listed under
54
+ [Tests](#tests), but it has not been fuzzed and has no CI yet. Do not feed it untrusted input in production
55
+ before that is done.
56
+
57
+ ## Interface
58
+
59
+ | | |
60
+ |---|---|
61
+ | `loads(data)` | `data` is `bytes`, `bytearray`, `memoryview` or `str`. Raises `JSONDecodeError` (a subclass of `json.JSONDecodeError`) with `.pos`. |
62
+ | `dumps(obj, default=None, option=None)` | Returns `bytes`. `option` is a combination of the `OPT_*` constants, with the same names and values as in `orjson`. |
63
+ | `load(fp)`, `dump(obj, fp)` | Read from and write to a binary file object. |
64
+
65
+ `dumps` writes `str`, `int` (−2^63 … 2^64−1), `float`, `bool`, `None`, `list`, `tuple`, `dict`, dataclasses,
66
+ `datetime` / `date` / `time`, `enum.Enum`, `uuid.UUID`, and numpy arrays and scalars with `OPT_SERIALIZE_NUMPY`.
67
+ Anything else goes to `default`.
68
+
69
+ Supported options: `OPT_APPEND_NEWLINE`, `OPT_INDENT_2`, `OPT_NAIVE_UTC`, `OPT_NON_STR_KEYS`,
70
+ `OPT_OMIT_MICROSECONDS`, `OPT_PASSTHROUGH_DATACLASS`, `OPT_PASSTHROUGH_DATETIME`, `OPT_PASSTHROUGH_SUBCLASS`,
71
+ `OPT_SERIALIZE_NUMPY`, `OPT_SORT_KEYS`, `OPT_STRICT_INTEGER`, `OPT_UTC_Z`.
72
+
73
+ ### Differences from orjson
74
+
75
+ - Floats are written the way Python prints them: `1e-05`, `1e+16`. orjson writes `1e-5`, `1e16`. The values are the same.
76
+ - `loads` has no nesting limit; orjson stops at 1024 levels. `dumps` without layout options has no limit either;
77
+ with `OPT_INDENT_2`, `OPT_SORT_KEYS`, `OPT_NON_STR_KEYS` or `OPT_STRICT_INTEGER` it stops at 254 levels, as orjson does.
78
+ - No `orjson.Fragment`.
79
+ - `dumps(..., allow_nan=False)` raises `ValueError` for NaN and infinities instead of writing `null`.
80
+ - Errors from `dumps` are `TypeError`, not `orjson.JSONEncodeError` (which is a subclass of `TypeError`).
81
+
82
+ ## Platforms
83
+
84
+ | target | code path |
85
+ |---|---|
86
+ | x86-64 with AVX2, Windows and Linux | assembly kernel |
87
+ | x86-64 without AVX2 | C with 16-byte SSE2 vectors, chosen when the module is imported |
88
+ | ARM64 (Apple Silicon, Linux) | C with 16-byte NEON vectors. Cross-compiles cleanly for Linux and macOS but has **not been run on ARM hardware yet**; run `tests/vec16_selftest.c` and the tests there first. |
89
+ | anything else | plain C |
90
+
91
+ Python 3.10 – 3.14. The extension uses a few private CPython functions, so a new Python release may need a fix.
92
+ The free-threaded build and sub-interpreters are not supported: the key cache is shared by the process.
93
+
94
+ Set `OXJSON_NO_AVX2=1` before the import to force the portable path.
95
+
96
+ ## Build
97
+
98
+ Needs `gcc` and, on x86-64, `nasm` 2.16 or newer.
99
+
100
+ ```bash
101
+ python make_ext.py
102
+ ```
103
+
104
+ That builds `oxjson/oxjson.pyd` (or `.so`) for the interpreter that runs the script.
105
+ `python make_ext.py <dir>` puts a copy of the package into `<dir>/oxjson` instead.
106
+
107
+ For a wheel / sdist (PyPI):
108
+
109
+ ```bash
110
+ python -m pip install build
111
+ python -m build
112
+ ```
113
+
114
+ GitHub Actions builds wheels on push (`.github/workflows/wheels.yml`). Publishing to
115
+ PyPI is `.github/workflows/publish.yml` on a `v*` tag after Trusted Publishing is
116
+ configured for this repo (see [PyPI docs](https://docs.pypi.org/trusted-publishers/)).
117
+
118
+ ## Checking a new machine
119
+
120
+ One script builds the extension, runs every test and the benchmark, and writes a single report file:
121
+
122
+ ```bash
123
+ python -m pip install -r requirements-dev.txt
124
+ ```
125
+
126
+ ```bash
127
+ python tests/run_all.py
128
+ ```
129
+
130
+ The report is `report-<system>-<machine>-py<XY>.txt` in the repository root; the benchmark numbers go to
131
+ `bench/results/` and into `docs/benchmarks.md`.
132
+
133
+ ## Tests
134
+
135
+ ```bash
136
+ python tests/check_versions.py
137
+ ```
138
+
139
+ Compares `loads` with orjson on the files in `testdata/` and on 30 000 random documents, and checks that
140
+ repeated calls do not leak.
141
+
142
+ ```bash
143
+ python tests/check_dumps_orjson.py
144
+ ```
145
+
146
+ Compares `dumps` with orjson byte for byte over the supported types and option combinations.
147
+
148
+ ```bash
149
+ python tests/check_portable.py
150
+ ```
151
+
152
+ Checks that the assembly path and the portable path produce identical output.
153
+
154
+ `tests/vec16_selftest.c` is a stand-alone C program that checks the SSE2 / NEON helpers against plain C;
155
+ the build command is in its header.
156
+
157
+ ```bash
158
+ python tests/check_conformance.py <dir>
159
+ ```
160
+
161
+ Runs [JSONTestSuite](https://github.com/nst/JSONTestSuite),
162
+ [nativejson-benchmark](https://github.com/miloyip/nativejson-benchmark) and
163
+ [json_test_data](https://github.com/nlohmann/json_test_data) cloned into `<dir>`; the file header lists the commands.
164
+
165
+ `tests/check_loads.py` and `tests/check_dumps.py` compare with the standard `json` module on random data.
166
+
167
+ ## Benchmarks
168
+
169
+ [docs/benchmarks.md](docs/benchmarks.md): speed, peak memory and installed size against orjson, msgspec, ssrjson,
170
+ yyjson, pysimdjson, ujson, python-rapidjson and the standard library, on Python 3.10 – 3.14.
171
+
172
+ ```bash
173
+ python bench/bench.py
174
+ ```
175
+
176
+ ```bash
177
+ python bench/report.py
178
+ ```
179
+
180
+ ## Layout
181
+
182
+ ```
183
+ src/jl_kernel.asm loads kernel, NASM, AVX2
184
+ src/jl_loads.c builds Python objects for the kernel; the same kernel in C
185
+ src/jl_portable.c jl_loads.c compiled as the portable build
186
+ src/json_dumps_walk.c dumps
187
+ src/json_dumps_ext.inc dataclass, datetime, enum, UUID, numpy and the layout options
188
+ src/json_dumps_portable.c json_dumps_walk.c compiled as the portable build
189
+ include/json_vec16.h 16-byte vector helpers of the portable build: NEON and SSE2
190
+ src/json_module.c the Python module
191
+ tools/ generators of the tables in include/
192
+ ```
193
+
194
+ ## License
195
+
196
+ MPL-2.0, see `LICENSE`. Copyright (c) 2026 Lev Berezkin.
197
+
198
+ Third-party code and test documents (Zmij float digits, JSON fixtures) are under
199
+ their own MIT licenses; see [`THIRD_PARTY.md`](THIRD_PARTY.md) and `licenses/`.