# msgspec

Fast serialization and validation library for Python, with built-in JSON, MessagePack, YAML and TOML support.


Source: https://findsoftware.frbit.cloud/msgspec/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- home: https://msgspec.dev
- repository: https://github.com/msgspec/msgspec
- docs: https://msgspec.dev

### Identity

- status: active
- maintainer: Jim Crist-Harif
- maintainerType: unknown
- parent: unknown
- firstRelease: 2021
- hqCountry: unknown

### Kind

- category: library
- hosting: python
- language: python
- runtime: python
- runtimeMin: python 3.10
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: not applicable
- renderingModes: not applicable
- installMethod: pip install msgspec, conda install msgspec -c conda-forge

### License

- licenseModel: open-source
- license: BSD-3-Clause

### Releases

- currentMajor: 0
- latestReleaseDate: 2026-09-29

### Adoption

- githubStargazers: 4225
- packagistDownloads: not applicable
- npmWeeklyDownloads: not applicable
- contributors: 93
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 235
- dependentPackages: 166

### Sources

- urls: https://msgspec.dev/ (read 2026-11-16)
- urls: https://api.github.com/repos/msgspec/msgspec (read 2026-11-16)
- urls: https://msgspec.dev/ (read 2026-11-16)
- maintainer: https://github.com/msgspec/msgspec/blob/main/LICENSE (read 2026-11-16)
- firstRelease: https://api.github.com/repos/msgspec/msgspec/releases?per_page=100 (read 2026-11-16)
- language: https://api.github.com/repos/msgspec/msgspec (read 2026-11-16)
- category: https://github.com/msgspec/msgspec/blob/main/README.md (read 2026-11-16)
- runtime: https://msgspec.dev/install.html (read 2026-11-16)
- runtimeMin: https://msgspec.dev/install.html (read 2026-11-16)
- installMethod: https://msgspec.dev/install.html (read 2026-11-16)
- installMethod: https://msgspec.dev/install.html (read 2026-11-16)
- license: https://api.github.com/repos/msgspec/msgspec (read 2026-11-16)
- licenseModel: https://github.com/msgspec/msgspec/blob/main/README.md (read 2026-11-16)
- currentMajor: https://api.github.com/repos/msgspec/msgspec/releases?per_page=100 (read 2026-11-16)
- latestReleaseDate: https://api.github.com/repos/msgspec/msgspec/releases/latest (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/msgspec/msgspec (read 2026-11-16)
- contributors: https://api.github.com/repos/msgspec/msgspec/contributors?per_page=1 (read 2026-11-16)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/pypi.org/packages/msgspec (read 2026-11-16)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/pypi.org/packages/msgspec (read 2026-11-16)

## Notes

msgspec is a Python library that encodes and decodes JSON, MessagePack, YAML and TOML, and validates messages against schemas written as Python type annotations while decoding. It has no required dependencies. The project's homepage lists projects that use it, including Litestar and Sanic.

## Worth knowing

The TOML and YAML protocols need optional extras that the install page names: tomli and tomli_w for TOML, and PyYAML for YAML. The docs include a porting guide from orjson.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
