Faster, more memory-efficient Python JSON parsing with msgspec

This page summarizes the projects mentioned and recommended in the original post on /r/Python

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • msgspec

    A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML

    If people are worried about a package they saw on reddit being malicious, then I'm not sure what I can say to convince them that it's not. The code is all up on github (https://github.com/jcrist/msgspec), but since pypi doesn't have to match github if you're really worried you'll probably want to download the wheel from pypi (https://pypi.org/project/msgspec/#files), unpack it and read the code there.

  • JSONTestSuite

    A comprehensive test suite for RFC 8259 compliant JSON parsers

    As for vulnerabilities, sure, it likely has some small bugs. Most software has bugs. But we have a very thorough test suite (run on linux, osx, and windows, on both arm and x86), and are strictly more standards compliant than the stdlib's `json` or alternative libraries like `ujson`. The test suite makes use of `asan` and `ubsan`, aims for full branch coverage, and tests with a large variety of valid and invalid payloads (including all of them from https://github.com/nst/JSONTestSuite). But it is also a big ball of C code, so I can't guarantee no vulnerabilities.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts