{"library":"pysimdjson","title":"pysimdjson","description":"pysimdjson provides high-performance Python bindings for the simdjson C++ library, a SIMD-accelerated JSON parser. It offers both a compatibility API similar to Python's built-in `json` module and a native API for significantly faster parsing, especially when only parts of a JSON document are needed. The library is actively maintained, with the current version being 7.0.2.","language":"python","status":"active","last_verified":"Sat May 16","install":{"commands":["pip install pysimdjson"],"cli":null},"imports":["from pysimdjson import Parser","from pysimdjson import loads"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from pysimdjson import Parser\n\njson_data = b'{\"name\": \"Alice\", \"age\": 30, \"city\": \"New York\", \"details\": {\"occupation\": \"Engineer\", \"hobbies\": [\"reading\", \"hiking\"]}}'\n\n# Using the native Parser API for performance and partial loading\nparser = Parser()\ntry:\n    # Parsing bytes is generally fastest\n    doc = parser.parse(json_data)\n\n    # Accessing elements without fully materializing the document\n    name = doc['name'].as_str()\n    age = doc['age'].as_int()\n    occupation = doc['details']['occupation'].as_str()\n    first_hobby = doc['details']['hobbies'][0].as_str()\n\n    print(f\"Name: {name}, Age: {age}\")\n    print(f\"Occupation: {occupation}, First Hobby: {first_hobby}\")\n\n    # Convert a subtree to a Python object if needed\n    details_dict = doc['details'].as_dict()\n    print(f\"Details as dict: {details_dict}\")\n\nexcept RuntimeError as e:\n    print(f\"Error during parsing or access: {e}\")\n\n# For simple full document loading, compatible with json.loads\nfrom pysimdjson import loads\nfull_python_obj = loads(json_data)\nprint(f\"Full Python object (loads): {full_python_obj}\")\n","lang":"python","description":"This quickstart demonstrates both the high-performance native API using `pysimdjson.Parser` for selective data extraction and the `pysimdjson.loads` function for full document parsing, similar to the standard `json` module. The native API is generally preferred for large documents to avoid unnecessary object materialization.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":{"tag":null,"tag_description":null,"last_tested":"2026-05-16","installed_version":"7.0.2","pypi_latest":"7.0.2","is_stale":false,"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":1.6,"avg_import_s":null,"wheel_type":"wheel"},"results":[{"runtime":"python:3.10-alpine","python_version":"3.10","os_libc":"alpine (musl)","variant":"pysimdjson","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":"33.5M"},{"runtime":"python:3.10-slim","python_version":"3.10","os_libc":"slim (glibc)","variant":"pysimdjson","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":1.7,"import_time_s":null,"mem_mb":null,"disk_size":"33M"},{"runtime":"python:3.11-alpine","python_version":"3.11","os_libc":"alpine (musl)","variant":"pysimdjson","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":"35.4M"},{"runtime":"python:3.11-slim","python_version":"3.11","os_libc":"slim (glibc)","variant":"pysimdjson","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":1.6,"import_time_s":null,"mem_mb":null,"disk_size":"35M"},{"runtime":"python:3.12-alpine","python_version":"3.12","os_libc":"alpine (musl)","variant":"pysimdjson","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":"27.3M"},{"runtime":"python:3.12-slim","python_version":"3.12","os_libc":"slim (glibc)","variant":"pysimdjson","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":1.5,"import_time_s":null,"mem_mb":null,"disk_size":"26M"},{"runtime":"python:3.13-alpine","python_version":"3.13","os_libc":"alpine (musl)","variant":"pysimdjson","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":"27.0M"},{"runtime":"python:3.13-slim","python_version":"3.13","os_libc":"slim (glibc)","variant":"pysimdjson","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":1.5,"import_time_s":null,"mem_mb":null,"disk_size":"26M"},{"runtime":"python:3.9-alpine","python_version":"3.9","os_libc":"alpine (musl)","variant":"pysimdjson","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":"33.0M"},{"runtime":"python:3.9-slim","python_version":"3.9","os_libc":"slim (glibc)","variant":"pysimdjson","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":1.9,"import_time_s":null,"mem_mb":null,"disk_size":"32M"}]}}