1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
|
[build-system]
requires = [
"setuptools>=80",
"setuptools-scm>=8",
]
build-backend = "setuptools.build_meta"
[project]
name = "msgspec"
dynamic = [
"version",
]
description = "A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML."
readme = "README.md"
license = "BSD-3-Clause"
license-files = [
"LICENSE",
]
requires-python = ">=3.9"
maintainers = [
{ name = "Jim Crist-Harif", email = "jcristharif@gmail.com" },
{ name = "Ofek Lev", email = "oss@ofek.dev" },
]
keywords = [
"JSON",
"MessagePack",
"TOML",
"YAML",
"msgpack",
"schema",
"serialization",
"validation",
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
[project.optional-dependencies]
toml = [
"tomli ; python_version < '3.11'",
"tomli_w",
]
yaml = [
"pyyaml",
]
[project.urls]
Homepage = "https://jcristharif.com/msgspec/"
"Issue Tracker" = "https://github.com/jcrist/msgspec/issues"
Source = "https://github.com/jcrist/msgspec"
[dependency-groups]
bench = [
"cattrs==25.3.0",
"mashumaro==3.17",
"msgpack==1.1.2",
"orjson==3.11.4",
"ormsgpack==1.11.0",
"pydantic==2.12.4",
"python-rapidjson==1.22",
"pysimdjson==7.0.2",
"requests",
"ujson==5.11.0",
]
dev = [
"rust-just",
]
doc = [
"furo",
"ipython",
"myst-parser",
"sphinx",
"sphinx-copybutton",
"sphinx-design",
]
hooks = [
"codespell==2.4.1",
"prek>=0.2.13",
"ruff==0.14.1",
]
test-base = [
# TODO: require >=9 once we drop support for Python 3.9
"pytest>=8",
]
test-prof = [
{ include-group = "test-base" },
"memray; sys_platform != 'win32'",
"pytest-benchmark",
"pytest-memray; sys_platform != 'win32'",
]
test-typing = [
{ include-group = "test-base" },
"mypy",
"pyright",
]
test-unit = [
{ include-group = "test-base" },
"attrs",
"coverage",
"eval-type-backport; python_version < '3.10'",
"msgpack",
"pyyaml",
"tomli; python_version < '3.11'",
"tomli-w",
]
[tool.setuptools]
packages = ["msgspec"]
[tool.setuptools.package-dir]
"" = "src"
[tool.setuptools.exclude-package-data]
msgspec = [
"*.c",
"*.h",
]
[tool.setuptools_scm]
version_file = "src/msgspec/_version.py"
parentdir_prefix_version = "msgspec-"
[tool.uv.config-settings]
editable_mode = "compat"
|