René's URL Explorer Experiment
go
Title:
API Docs
direct link
Domain:
msgspec.dev
color-scheme
light dark
Links
:
Skip to content
https://msgspec.dev/api.html#furo-main-content
msgspec
https://msgspec.dev/index.html
https://msgspec.dev/index.html
Why msgspec?
https://msgspec.dev/why.html
Installation
https://msgspec.dev/install.html
Benchmarks
https://msgspec.dev/benchmarks.html
Usage
https://msgspec.dev/usage.html
Supported Types
https://msgspec.dev/supported-types.html
Structs
https://msgspec.dev/structs.html
Constraints
https://msgspec.dev/constraints.html
Converters
https://msgspec.dev/converters.html
JSON Schema
https://msgspec.dev/jsonschema.html
Schema Evolution
https://msgspec.dev/schema-evolution.html
Extending
https://msgspec.dev/extending.html
Inspecting Types
https://msgspec.dev/inspect.html
Performance Tips
https://msgspec.dev/perf-tips.html
Porting guides
https://msgspec.dev/porting/index.html
Porting from orjson
https://msgspec.dev/porting/orjson.html
API Docs
https://msgspec.dev/api.html
Examples
https://msgspec.dev/examples/index.html
GeoJSON
https://msgspec.dev/examples/geojson.html
Asyncio TCP Key-Value Server
https://msgspec.dev/examples/asyncio-kv.html
Conda Repodata
https://msgspec.dev/examples/conda-repodata.html
Parsing pyproject.toml
https://msgspec.dev/examples/pyproject-toml.html
Changelog
https://msgspec.dev/changelog.html
Back to top
https://msgspec.dev/api.html
View this page
https://msgspec.dev/_sources/api.rst.txt
¶
https://msgspec.dev/api.html#api-docs
¶
https://msgspec.dev/api.html#structs
¶
https://msgspec.dev/api.html#msgspec.Struct
Struct
https://msgspec.dev/api.html#msgspec.Struct
Struct
https://msgspec.dev/api.html#msgspec.Struct
¶
https://msgspec.dev/api.html#msgspec.StructMeta
Struct
https://msgspec.dev/api.html#msgspec.Struct
abc.ABCMeta
https://docs.python.org/3/library/abc.html#abc.ABCMeta
Struct
https://msgspec.dev/api.html#msgspec.Struct
¶
https://msgspec.dev/api.html#msgspec.field
str
https://docs.python.org/3/library/stdtypes.html#str
¶
https://msgspec.dev/api.html#msgspec.defstruct
str
https://docs.python.org/3/library/stdtypes.html#str
tuple
https://docs.python.org/3/library/stdtypes.html#tuple
str
https://docs.python.org/3/library/stdtypes.html#str
dict
https://docs.python.org/3/library/stdtypes.html#dict
Struct
https://msgspec.dev/api.html#msgspec.Struct
¶
https://msgspec.dev/api.html#msgspec.structs.replace
Struct
https://msgspec.dev/api.html#msgspec.Struct
copy.replace
https://docs.python.org/3/library/copy.html#copy.replace
dataclasses.replace
https://docs.python.org/3/library/dataclasses.html#dataclasses.replace
¶
https://msgspec.dev/api.html#msgspec.structs.asdict
dataclasses.asdict
https://docs.python.org/3/library/dataclasses.html#dataclasses.asdict
msgspec.UNSET
https://msgspec.dev/api.html#msgspec.UNSET
msgspec.Struct
https://msgspec.dev/api.html#msgspec.Struct
dataclasses.dataclass
https://docs.python.org/3/library/dataclasses.html#dataclasses.dataclass
bytes
https://docs.python.org/3/library/stdtypes.html#bytes
datetime.datetime
https://docs.python.org/3/library/datetime.html#datetime.datetime
msgspec.to_builtins
https://msgspec.dev/api.html#msgspec.to_builtins
Struct
https://msgspec.dev/api.html#msgspec.Struct
msgspec.structs.astuple
https://msgspec.dev/api.html#msgspec.structs.astuple
msgspec.to_builtins
https://msgspec.dev/api.html#msgspec.to_builtins
¶
https://msgspec.dev/api.html#msgspec.structs.astuple
dataclasses.astuple
https://docs.python.org/3/library/dataclasses.html#dataclasses.astuple
msgspec.UNSET
https://msgspec.dev/api.html#msgspec.UNSET
msgspec.Struct
https://msgspec.dev/api.html#msgspec.Struct
dataclasses.dataclass
https://docs.python.org/3/library/dataclasses.html#dataclasses.dataclass
bytes
https://docs.python.org/3/library/stdtypes.html#bytes
datetime.datetime
https://docs.python.org/3/library/datetime.html#datetime.datetime
msgspec.to_builtins
https://msgspec.dev/api.html#msgspec.to_builtins
Struct
https://msgspec.dev/api.html#msgspec.Struct
msgspec.structs.asdict
https://msgspec.dev/api.html#msgspec.structs.asdict
msgspec.to_builtins
https://msgspec.dev/api.html#msgspec.to_builtins
¶
https://msgspec.dev/api.html#msgspec.structs.force_setattr
Struct
https://msgspec.dev/api.html#msgspec.Struct
str
https://docs.python.org/3/library/stdtypes.html#str
¶
https://msgspec.dev/api.html#msgspec.structs.fields
¶
https://msgspec.dev/api.html#msgspec.structs.FieldInfo
str
https://docs.python.org/3/library/stdtypes.html#str
str
https://docs.python.org/3/library/stdtypes.html#str
¶
https://msgspec.dev/api.html#msgspec.structs.StructConfig
¶
https://msgspec.dev/api.html#msgspec.NODEFAULT
¶
https://msgspec.dev/api.html#meta
¶
https://msgspec.dev/api.html#msgspec.Meta
int
https://docs.python.org/3/library/functions.html#int
float
https://docs.python.org/3/library/functions.html#float
int
https://docs.python.org/3/library/functions.html#int
float
https://docs.python.org/3/library/functions.html#float
int
https://docs.python.org/3/library/functions.html#int
float
https://docs.python.org/3/library/functions.html#float
int
https://docs.python.org/3/library/functions.html#int
float
https://docs.python.org/3/library/functions.html#float
int
https://docs.python.org/3/library/functions.html#int
float
https://docs.python.org/3/library/functions.html#float
str
https://docs.python.org/3/library/stdtypes.html#str
int
https://docs.python.org/3/library/functions.html#int
int
https://docs.python.org/3/library/functions.html#int
bool
https://docs.python.org/3/library/functions.html#bool
str
https://docs.python.org/3/library/stdtypes.html#str
str
https://docs.python.org/3/library/stdtypes.html#str
list
https://docs.python.org/3/library/stdtypes.html#list
dict
https://docs.python.org/3/library/stdtypes.html#dict
dict
https://docs.python.org/3/library/stdtypes.html#dict
¶
https://msgspec.dev/api.html#raw
¶
https://msgspec.dev/api.html#msgspec.Raw
bytes
https://docs.python.org/3/library/stdtypes.html#bytes
bytearray
https://docs.python.org/3/library/stdtypes.html#bytearray
memoryview
https://docs.python.org/3/library/stdtypes.html#memoryview
str
https://docs.python.org/3/library/stdtypes.html#str
¶
https://msgspec.dev/api.html#msgspec.Raw.copy
¶
https://msgspec.dev/api.html#unset
¶
https://msgspec.dev/api.html#msgspec.UNSET
msgspec.Struct
https://msgspec.dev/api.html#msgspec.Struct
dataclasses
https://docs.python.org/3/library/dataclasses.html#module-dataclasses
attrs
https://www.attrs.org/en/stable/api.html#module-attrs
¶
https://msgspec.dev/api.html#msgspec.UnsetType
UNSET
https://msgspec.dev/api.html#msgspec.UNSET
UNSET
https://msgspec.dev/api.html#msgspec.UNSET
¶
https://msgspec.dev/api.html#json
¶
https://msgspec.dev/api.html#msgspec.json.Encoder
decimal.Decimal
https://docs.python.org/3/library/decimal.html#decimal.Decimal
decimal.Decimal
https://docs.python.org/3/library/decimal.html#decimal.Decimal
decimal.Decimal
https://docs.python.org/3/library/decimal.html#decimal.Decimal
decimal.Decimal
https://docs.python.org/3/library/decimal.html#decimal.Decimal
uuid.UUID
https://docs.python.org/3/library/uuid.html#uuid.UUID
¶
https://msgspec.dev/api.html#msgspec.json.Encoder.encode
¶
https://msgspec.dev/api.html#msgspec.json.Encoder.encode_into
bytearray
https://docs.python.org/3/library/stdtypes.html#bytearray
int
https://docs.python.org/3/library/functions.html#int
¶
https://msgspec.dev/api.html#msgspec.json.Encoder.encode_lines
¶
https://msgspec.dev/api.html#msgspec.json.Decoder
type
https://docs.python.org/3/library/functions.html#type
bool
https://docs.python.org/3/library/functions.html#bool
¶
https://msgspec.dev/api.html#msgspec.json.Decoder.decode
str
https://docs.python.org/3/library/stdtypes.html#str
¶
https://msgspec.dev/api.html#msgspec.json.Decoder.decode_lines
str
https://docs.python.org/3/library/stdtypes.html#str
¶
https://msgspec.dev/api.html#msgspec.json.encode
Encoder.encode
https://msgspec.dev/api.html#msgspec.json.Encoder.encode
¶
https://msgspec.dev/api.html#msgspec.json.decode
str
https://docs.python.org/3/library/stdtypes.html#str
type
https://docs.python.org/3/library/functions.html#type
bool
https://docs.python.org/3/library/functions.html#bool
Decoder.decode
https://msgspec.dev/api.html#msgspec.json.Decoder.decode
¶
https://msgspec.dev/api.html#msgspec.json.format
str
https://docs.python.org/3/library/stdtypes.html#str
int
https://docs.python.org/3/library/functions.html#int
¶
https://msgspec.dev/api.html#messagepack
¶
https://msgspec.dev/api.html#msgspec.msgpack.Encoder
decimal.Decimal
https://docs.python.org/3/library/decimal.html#decimal.Decimal
decimal.Decimal
https://docs.python.org/3/library/decimal.html#decimal.Decimal
decimal.Decimal
https://docs.python.org/3/library/decimal.html#decimal.Decimal
decimal.Decimal
https://docs.python.org/3/library/decimal.html#decimal.Decimal
uuid.UUID
https://docs.python.org/3/library/uuid.html#uuid.UUID
¶
https://msgspec.dev/api.html#msgspec.msgpack.Encoder.encode
¶
https://msgspec.dev/api.html#msgspec.msgpack.Encoder.encode_into
bytearray
https://docs.python.org/3/library/stdtypes.html#bytearray
int
https://docs.python.org/3/library/functions.html#int
¶
https://msgspec.dev/api.html#msgspec.msgpack.Decoder
type
https://docs.python.org/3/library/functions.html#type
bool
https://docs.python.org/3/library/functions.html#bool
¶
https://msgspec.dev/api.html#msgspec.msgpack.Decoder.decode
¶
https://msgspec.dev/api.html#msgspec.msgpack.Ext
int
https://docs.python.org/3/library/functions.html#int
bytes
https://docs.python.org/3/library/stdtypes.html#bytes
bytearray
https://docs.python.org/3/library/stdtypes.html#bytearray
memoryview
https://docs.python.org/3/library/stdtypes.html#memoryview
¶
https://msgspec.dev/api.html#msgspec.msgpack.Ext.code
¶
https://msgspec.dev/api.html#msgspec.msgpack.Ext.data
¶
https://msgspec.dev/api.html#msgspec.msgpack.encode
Encoder.encode
https://msgspec.dev/api.html#msgspec.msgpack.Encoder.encode
¶
https://msgspec.dev/api.html#msgspec.msgpack.decode
type
https://docs.python.org/3/library/functions.html#type
bool
https://docs.python.org/3/library/functions.html#bool
Decoder.decode
https://msgspec.dev/api.html#msgspec.msgpack.Decoder.decode
¶
https://msgspec.dev/api.html#yaml
¶
https://msgspec.dev/api.html#msgspec.yaml.encode
PyYAML library
https://pyyaml.org/
decode
https://msgspec.dev/api.html#msgspec.yaml.decode
¶
https://msgspec.dev/api.html#msgspec.yaml.decode
str
https://docs.python.org/3/library/stdtypes.html#str
type
https://docs.python.org/3/library/functions.html#type
bool
https://docs.python.org/3/library/functions.html#bool
PyYAML library
https://pyyaml.org/
encode
https://msgspec.dev/api.html#msgspec.yaml.encode
¶
https://msgspec.dev/api.html#toml
¶
https://msgspec.dev/api.html#msgspec.toml.encode
decode
https://msgspec.dev/api.html#msgspec.toml.decode
¶
https://msgspec.dev/api.html#msgspec.toml.decode
str
https://docs.python.org/3/library/stdtypes.html#str
type
https://docs.python.org/3/library/functions.html#type
bool
https://docs.python.org/3/library/functions.html#bool
encode
https://msgspec.dev/api.html#msgspec.toml.encode
¶
https://msgspec.dev/api.html#json-schema
¶
https://msgspec.dev/api.html#msgspec.json.schema
type
https://docs.python.org/3/library/functions.html#type
str
https://docs.python.org/3/library/stdtypes.html#str
schema_components
https://msgspec.dev/api.html#msgspec.json.schema_components
¶
https://msgspec.dev/api.html#msgspec.json.schema_components
type
https://docs.python.org/3/library/functions.html#type
str
https://docs.python.org/3/library/stdtypes.html#str
schema
https://msgspec.dev/api.html#msgspec.json.schema
¶
https://msgspec.dev/api.html#converters
¶
https://msgspec.dev/api.html#msgspec.convert
Type
https://msgspec.dev/api.html#msgspec.inspect.Type
bool
https://docs.python.org/3/library/functions.html#bool
bool
https://docs.python.org/3/library/functions.html#bool
type
https://docs.python.org/3/library/functions.html#type
convert
https://msgspec.dev/api.html#msgspec.convert
bytes
https://docs.python.org/3/library/stdtypes.html#bytes
bytearray
https://docs.python.org/3/library/stdtypes.html#bytearray
datetime.datetime
https://docs.python.org/3/library/datetime.html#datetime.datetime
datetime.time
https://docs.python.org/3/library/datetime.html#datetime.time
datetime.date
https://docs.python.org/3/library/datetime.html#datetime.date
datetime.timedelta
https://docs.python.org/3/library/datetime.html#datetime.timedelta
uuid.UUID
https://docs.python.org/3/library/uuid.html#uuid.UUID
decimal.Decimal
https://docs.python.org/3/library/decimal.html#decimal.Decimal
bool
https://docs.python.org/3/library/functions.html#bool
to_builtins
https://msgspec.dev/api.html#msgspec.to_builtins
¶
https://msgspec.dev/api.html#msgspec.to_builtins
msgspec.json.encode
https://msgspec.dev/api.html#msgspec.json.encode
msgspec.msgpack.encode
https://msgspec.dev/api.html#msgspec.msgpack.encode
msgspec.UNSET
https://msgspec.dev/api.html#msgspec.UNSET
msgspec.Struct
https://msgspec.dev/api.html#msgspec.Struct
dataclasses.dataclass
https://docs.python.org/3/library/dataclasses.html#dataclasses.dataclass
typing.TypedDict
https://docs.python.org/3/library/typing.html#typing.TypedDict
typing.NamedTuple
https://docs.python.org/3/library/typing.html#typing.NamedTuple
bytes
https://docs.python.org/3/library/stdtypes.html#bytes
datetime.datetime
https://docs.python.org/3/library/datetime.html#datetime.datetime
uuid.UUID
https://docs.python.org/3/library/uuid.html#uuid.UUID
decimal.Decimal
https://docs.python.org/3/library/decimal.html#decimal.Decimal
enum.Enum
https://docs.python.org/3/library/enum.html#enum.Enum
Converting to and from Builtin Types
https://msgspec.dev/usage.html#to-builtins-vs-asdict
msgspec.structs.asdict
https://msgspec.dev/api.html#msgspec.structs.asdict
msgspec.structs.astuple
https://msgspec.dev/api.html#msgspec.structs.astuple
type
https://docs.python.org/3/library/functions.html#type
bytes
https://docs.python.org/3/library/stdtypes.html#bytes
bytearray
https://docs.python.org/3/library/stdtypes.html#bytearray
memoryview
https://docs.python.org/3/library/stdtypes.html#memoryview
datetime.datetime
https://docs.python.org/3/library/datetime.html#datetime.datetime
datetime.time
https://docs.python.org/3/library/datetime.html#datetime.time
datetime.date
https://docs.python.org/3/library/datetime.html#datetime.date
datetime.timedelta
https://docs.python.org/3/library/datetime.html#datetime.timedelta
uuid.UUID
https://docs.python.org/3/library/uuid.html#uuid.UUID
decimal.Decimal
https://docs.python.org/3/library/decimal.html#decimal.Decimal
bool
https://docs.python.org/3/library/functions.html#bool
msgspec.convert
https://msgspec.dev/api.html#msgspec.convert
msgspec.structs.asdict
https://msgspec.dev/api.html#msgspec.structs.asdict
msgspec.structs.astuple
https://msgspec.dev/api.html#msgspec.structs.astuple
¶
https://msgspec.dev/api.html#inspect
¶
https://msgspec.dev/api.html#msgspec.inspect.is_struct
msgspec.Struct
https://msgspec.dev/api.html#msgspec.Struct
True
https://docs.python.org/3/library/constants.html#True
msgspec.StructMeta
https://msgspec.dev/api.html#msgspec.StructMeta
False
https://docs.python.org/3/library/constants.html#False
msgspec.Struct
https://msgspec.dev/api.html#msgspec.Struct
msgspec.Struct
https://msgspec.dev/api.html#msgspec.Struct
¶
https://msgspec.dev/api.html#msgspec.inspect.is_struct_type
msgspec.Struct
https://msgspec.dev/api.html#msgspec.Struct
True
https://docs.python.org/3/library/constants.html#True
msgspec.StructMeta
https://msgspec.dev/api.html#msgspec.StructMeta
False
https://docs.python.org/3/library/constants.html#False
¶
https://msgspec.dev/api.html#msgspec.inspect.type_info
multi_type_info
https://msgspec.dev/api.html#msgspec.inspect.multi_type_info
type_info
https://msgspec.dev/api.html#msgspec.inspect.type_info
type
https://docs.python.org/3/library/functions.html#type
¶
https://msgspec.dev/api.html#msgspec.inspect.multi_type_info
¶
https://msgspec.dev/api.html#msgspec.inspect.Type
¶
https://msgspec.dev/api.html#msgspec.inspect.Metadata
Type
https://msgspec.dev/api.html#msgspec.inspect.Type
dict
https://docs.python.org/3/library/stdtypes.html#dict
dict
https://docs.python.org/3/library/stdtypes.html#dict
¶
https://msgspec.dev/api.html#msgspec.inspect.AnyType
typing.Any
https://docs.python.org/3/library/typing.html#typing.Any
¶
https://msgspec.dev/api.html#msgspec.inspect.NoneType
None
https://docs.python.org/3/library/constants.html#None
¶
https://msgspec.dev/api.html#msgspec.inspect.BoolType
bool
https://docs.python.org/3/library/functions.html#bool
¶
https://msgspec.dev/api.html#msgspec.inspect.IntType
int
https://docs.python.org/3/library/functions.html#int
int
https://docs.python.org/3/library/functions.html#int
int
https://docs.python.org/3/library/functions.html#int
int
https://docs.python.org/3/library/functions.html#int
int
https://docs.python.org/3/library/functions.html#int
int
https://docs.python.org/3/library/functions.html#int
¶
https://msgspec.dev/api.html#msgspec.inspect.FloatType
float
https://docs.python.org/3/library/functions.html#float
float
https://docs.python.org/3/library/functions.html#float
float
https://docs.python.org/3/library/functions.html#float
float
https://docs.python.org/3/library/functions.html#float
float
https://docs.python.org/3/library/functions.html#float
float
https://docs.python.org/3/library/functions.html#float
¶
https://msgspec.dev/api.html#msgspec.inspect.StrType
str
https://docs.python.org/3/library/stdtypes.html#str
int
https://docs.python.org/3/library/functions.html#int
int
https://docs.python.org/3/library/functions.html#int
str
https://docs.python.org/3/library/stdtypes.html#str
¶
https://msgspec.dev/api.html#msgspec.inspect.BytesType
bytes
https://docs.python.org/3/library/stdtypes.html#bytes
int
https://docs.python.org/3/library/functions.html#int
int
https://docs.python.org/3/library/functions.html#int
¶
https://msgspec.dev/api.html#msgspec.inspect.ByteArrayType
bytearray
https://docs.python.org/3/library/stdtypes.html#bytearray
int
https://docs.python.org/3/library/functions.html#int
int
https://docs.python.org/3/library/functions.html#int
¶
https://msgspec.dev/api.html#msgspec.inspect.MemoryViewType
memoryview
https://docs.python.org/3/library/stdtypes.html#memoryview
int
https://docs.python.org/3/library/functions.html#int
int
https://docs.python.org/3/library/functions.html#int
¶
https://msgspec.dev/api.html#msgspec.inspect.DateTimeType
datetime.datetime
https://docs.python.org/3/library/datetime.html#datetime.datetime
bool
https://docs.python.org/3/library/functions.html#bool
¶
https://msgspec.dev/api.html#msgspec.inspect.TimeType
datetime.time
https://docs.python.org/3/library/datetime.html#datetime.time
bool
https://docs.python.org/3/library/functions.html#bool
¶
https://msgspec.dev/api.html#msgspec.inspect.DateType
datetime.date
https://docs.python.org/3/library/datetime.html#datetime.date
¶
https://msgspec.dev/api.html#msgspec.inspect.TimeDeltaType
datetime.timedelta
https://docs.python.org/3/library/datetime.html#datetime.timedelta
¶
https://msgspec.dev/api.html#msgspec.inspect.UUIDType
uuid.UUID
https://docs.python.org/3/library/uuid.html#uuid.UUID
¶
https://msgspec.dev/api.html#msgspec.inspect.DecimalType
decimal.Decimal
https://docs.python.org/3/library/decimal.html#decimal.Decimal
¶
https://msgspec.dev/api.html#msgspec.inspect.ExtType
msgspec.msgpack.Ext
https://msgspec.dev/api.html#msgspec.msgpack.Ext
¶
https://msgspec.dev/api.html#msgspec.inspect.RawType
msgspec.Raw
https://msgspec.dev/api.html#msgspec.Raw
¶
https://msgspec.dev/api.html#msgspec.inspect.EnumType
enum.Enum
https://docs.python.org/3/library/enum.html#enum.Enum
type
https://docs.python.org/3/library/functions.html#type
enum.Enum
https://docs.python.org/3/library/enum.html#enum.Enum
¶
https://msgspec.dev/api.html#msgspec.inspect.LiteralType
typing.Literal
https://docs.python.org/3/library/typing.html#typing.Literal
tuple
https://docs.python.org/3/library/stdtypes.html#tuple
bool
https://docs.python.org/3/library/functions.html#bool
str
https://docs.python.org/3/library/stdtypes.html#str
int
https://docs.python.org/3/library/functions.html#int
¶
https://msgspec.dev/api.html#msgspec.inspect.CustomType
type
https://docs.python.org/3/library/functions.html#type
¶
https://msgspec.dev/api.html#msgspec.inspect.UnionType
tuple
https://docs.python.org/3/library/stdtypes.html#tuple
type
https://docs.python.org/3/library/functions.html#type
¶
https://msgspec.dev/api.html#msgspec.inspect.UnionType.includes_none
¶
https://msgspec.dev/api.html#msgspec.inspect.CollectionType
ListType
https://msgspec.dev/api.html#msgspec.inspect.ListType
SetType
https://msgspec.dev/api.html#msgspec.inspect.SetType
Type
https://msgspec.dev/api.html#msgspec.inspect.Type
int
https://docs.python.org/3/library/functions.html#int
int
https://docs.python.org/3/library/functions.html#int
¶
https://msgspec.dev/api.html#msgspec.inspect.ListType
list
https://docs.python.org/3/library/stdtypes.html#list
Type
https://msgspec.dev/api.html#msgspec.inspect.Type
int
https://docs.python.org/3/library/functions.html#int
int
https://docs.python.org/3/library/functions.html#int
¶
https://msgspec.dev/api.html#msgspec.inspect.SetType
set
https://docs.python.org/3/library/stdtypes.html#set
Type
https://msgspec.dev/api.html#msgspec.inspect.Type
int
https://docs.python.org/3/library/functions.html#int
int
https://docs.python.org/3/library/functions.html#int
¶
https://msgspec.dev/api.html#msgspec.inspect.FrozenSetType
frozenset
https://docs.python.org/3/library/stdtypes.html#frozenset
Type
https://msgspec.dev/api.html#msgspec.inspect.Type
int
https://docs.python.org/3/library/functions.html#int
int
https://docs.python.org/3/library/functions.html#int
¶
https://msgspec.dev/api.html#msgspec.inspect.DictType
dict
https://docs.python.org/3/library/stdtypes.html#dict
Type
https://msgspec.dev/api.html#msgspec.inspect.Type
Type
https://msgspec.dev/api.html#msgspec.inspect.Type
int
https://docs.python.org/3/library/functions.html#int
int
https://docs.python.org/3/library/functions.html#int
¶
https://msgspec.dev/api.html#msgspec.inspect.TypedDictType
typing.TypedDict
https://docs.python.org/3/library/typing.html#typing.TypedDict
type
https://docs.python.org/3/library/functions.html#type
tuple
https://docs.python.org/3/library/stdtypes.html#tuple
Field
https://msgspec.dev/api.html#msgspec.inspect.Field
¶
https://msgspec.dev/api.html#msgspec.inspect.FrozenDictType
Type
https://msgspec.dev/api.html#msgspec.inspect.Type
Type
https://msgspec.dev/api.html#msgspec.inspect.Type
int
https://docs.python.org/3/library/functions.html#int
int
https://docs.python.org/3/library/functions.html#int
¶
https://msgspec.dev/api.html#msgspec.inspect.VarTupleType
tuple
https://docs.python.org/3/library/stdtypes.html#tuple
Type
https://msgspec.dev/api.html#msgspec.inspect.Type
int
https://docs.python.org/3/library/functions.html#int
int
https://docs.python.org/3/library/functions.html#int
¶
https://msgspec.dev/api.html#msgspec.inspect.TupleType
tuple
https://docs.python.org/3/library/stdtypes.html#tuple
tuple
https://docs.python.org/3/library/stdtypes.html#tuple
Type
https://msgspec.dev/api.html#msgspec.inspect.Type
¶
https://msgspec.dev/api.html#msgspec.inspect.Field
str
https://docs.python.org/3/library/stdtypes.html#str
str
https://docs.python.org/3/library/stdtypes.html#str
Type
https://msgspec.dev/api.html#msgspec.inspect.Type
bool
https://docs.python.org/3/library/functions.html#bool
¶
https://msgspec.dev/api.html#msgspec.inspect.NamedTupleType
typing.NamedTuple
https://docs.python.org/3/library/typing.html#typing.NamedTuple
type
https://docs.python.org/3/library/functions.html#type
tuple
https://docs.python.org/3/library/stdtypes.html#tuple
Field
https://msgspec.dev/api.html#msgspec.inspect.Field
¶
https://msgspec.dev/api.html#msgspec.inspect.DataclassType
dataclasses
https://docs.python.org/3/library/dataclasses.html#module-dataclasses
attrs
https://www.attrs.org/en/stable/api.html#module-attrs
type
https://docs.python.org/3/library/functions.html#type
tuple
https://docs.python.org/3/library/stdtypes.html#tuple
Field
https://msgspec.dev/api.html#msgspec.inspect.Field
¶
https://msgspec.dev/api.html#msgspec.inspect.StructType
msgspec.Struct
https://msgspec.dev/api.html#msgspec.Struct
type
https://docs.python.org/3/library/functions.html#type
tuple
https://docs.python.org/3/library/stdtypes.html#tuple
Field
https://msgspec.dev/api.html#msgspec.inspect.Field
str
https://docs.python.org/3/library/stdtypes.html#str
str
https://docs.python.org/3/library/stdtypes.html#str
int
https://docs.python.org/3/library/functions.html#int
bool
https://docs.python.org/3/library/functions.html#bool
bool
https://docs.python.org/3/library/functions.html#bool
¶
https://msgspec.dev/api.html#exceptions
¶
https://msgspec.dev/api.html#msgspec.MsgspecError
Exception
https://docs.python.org/3/library/exceptions.html#Exception
¶
https://msgspec.dev/api.html#msgspec.EncodeError
MsgspecError
https://msgspec.dev/api.html#msgspec.MsgspecError
¶
https://msgspec.dev/api.html#msgspec.DecodeError
MsgspecError
https://msgspec.dev/api.html#msgspec.MsgspecError
ValueError
https://docs.python.org/3/library/exceptions.html#ValueError
¶
https://msgspec.dev/api.html#msgspec.ValidationError
DecodeError
https://msgspec.dev/api.html#msgspec.DecodeError
Next Examples
https://msgspec.dev/examples/index.html
Previous Porting from orjson
https://msgspec.dev/porting/orjson.html
Sphinx
https://www.sphinx-doc.org/
@pradyunsg
https://pradyunsg.me
Furo
https://github.com/pradyunsg/furo
https://github.com/msgspec/msgspec
API Docs
https://msgspec.dev/api.html
Structs
https://msgspec.dev/api.html#structs
Struct
https://msgspec.dev/api.html#msgspec.Struct
StructMeta
https://msgspec.dev/api.html#msgspec.StructMeta
field()
https://msgspec.dev/api.html#msgspec.field
defstruct()
https://msgspec.dev/api.html#msgspec.defstruct
replace()
https://msgspec.dev/api.html#msgspec.structs.replace
asdict()
https://msgspec.dev/api.html#msgspec.structs.asdict
astuple()
https://msgspec.dev/api.html#msgspec.structs.astuple
force_setattr()
https://msgspec.dev/api.html#msgspec.structs.force_setattr
fields()
https://msgspec.dev/api.html#msgspec.structs.fields
FieldInfo
https://msgspec.dev/api.html#msgspec.structs.FieldInfo
StructConfig
https://msgspec.dev/api.html#msgspec.structs.StructConfig
NODEFAULT
https://msgspec.dev/api.html#msgspec.NODEFAULT
Meta
https://msgspec.dev/api.html#meta
Meta
https://msgspec.dev/api.html#msgspec.Meta
Raw
https://msgspec.dev/api.html#raw
Raw
https://msgspec.dev/api.html#msgspec.Raw
Raw.copy()
https://msgspec.dev/api.html#msgspec.Raw.copy
Unset
https://msgspec.dev/api.html#unset
UNSET
https://msgspec.dev/api.html#msgspec.UNSET
UnsetType
https://msgspec.dev/api.html#msgspec.UnsetType
JSON
https://msgspec.dev/api.html#json
Encoder
https://msgspec.dev/api.html#msgspec.json.Encoder
Encoder.encode()
https://msgspec.dev/api.html#msgspec.json.Encoder.encode
Encoder.encode_into()
https://msgspec.dev/api.html#msgspec.json.Encoder.encode_into
Encoder.encode_lines()
https://msgspec.dev/api.html#msgspec.json.Encoder.encode_lines
Decoder
https://msgspec.dev/api.html#msgspec.json.Decoder
Decoder.decode()
https://msgspec.dev/api.html#msgspec.json.Decoder.decode
Decoder.decode_lines()
https://msgspec.dev/api.html#msgspec.json.Decoder.decode_lines
encode()
https://msgspec.dev/api.html#msgspec.json.encode
decode()
https://msgspec.dev/api.html#msgspec.json.decode
format()
https://msgspec.dev/api.html#msgspec.json.format
MessagePack
https://msgspec.dev/api.html#messagepack
Encoder
https://msgspec.dev/api.html#msgspec.msgpack.Encoder
Encoder.encode()
https://msgspec.dev/api.html#msgspec.msgpack.Encoder.encode
Encoder.encode_into()
https://msgspec.dev/api.html#msgspec.msgpack.Encoder.encode_into
Decoder
https://msgspec.dev/api.html#msgspec.msgpack.Decoder
Decoder.decode()
https://msgspec.dev/api.html#msgspec.msgpack.Decoder.decode
Ext
https://msgspec.dev/api.html#msgspec.msgpack.Ext
Ext.code
https://msgspec.dev/api.html#msgspec.msgpack.Ext.code
Ext.data
https://msgspec.dev/api.html#msgspec.msgpack.Ext.data
encode()
https://msgspec.dev/api.html#msgspec.msgpack.encode
decode()
https://msgspec.dev/api.html#msgspec.msgpack.decode
YAML
https://msgspec.dev/api.html#yaml
encode()
https://msgspec.dev/api.html#msgspec.yaml.encode
decode()
https://msgspec.dev/api.html#msgspec.yaml.decode
TOML
https://msgspec.dev/api.html#toml
encode()
https://msgspec.dev/api.html#msgspec.toml.encode
decode()
https://msgspec.dev/api.html#msgspec.toml.decode
JSON Schema
https://msgspec.dev/api.html#json-schema
schema()
https://msgspec.dev/api.html#msgspec.json.schema
schema_components()
https://msgspec.dev/api.html#msgspec.json.schema_components
Converters
https://msgspec.dev/api.html#converters
convert()
https://msgspec.dev/api.html#msgspec.convert
to_builtins()
https://msgspec.dev/api.html#msgspec.to_builtins
Inspect
https://msgspec.dev/api.html#inspect
is_struct()
https://msgspec.dev/api.html#msgspec.inspect.is_struct
is_struct_type()
https://msgspec.dev/api.html#msgspec.inspect.is_struct_type
type_info()
https://msgspec.dev/api.html#msgspec.inspect.type_info
multi_type_info()
https://msgspec.dev/api.html#msgspec.inspect.multi_type_info
Type
https://msgspec.dev/api.html#msgspec.inspect.Type
Metadata
https://msgspec.dev/api.html#msgspec.inspect.Metadata
AnyType
https://msgspec.dev/api.html#msgspec.inspect.AnyType
NoneType
https://msgspec.dev/api.html#msgspec.inspect.NoneType
BoolType
https://msgspec.dev/api.html#msgspec.inspect.BoolType
IntType
https://msgspec.dev/api.html#msgspec.inspect.IntType
FloatType
https://msgspec.dev/api.html#msgspec.inspect.FloatType
StrType
https://msgspec.dev/api.html#msgspec.inspect.StrType
BytesType
https://msgspec.dev/api.html#msgspec.inspect.BytesType
ByteArrayType
https://msgspec.dev/api.html#msgspec.inspect.ByteArrayType
MemoryViewType
https://msgspec.dev/api.html#msgspec.inspect.MemoryViewType
DateTimeType
https://msgspec.dev/api.html#msgspec.inspect.DateTimeType
TimeType
https://msgspec.dev/api.html#msgspec.inspect.TimeType
DateType
https://msgspec.dev/api.html#msgspec.inspect.DateType
TimeDeltaType
https://msgspec.dev/api.html#msgspec.inspect.TimeDeltaType
UUIDType
https://msgspec.dev/api.html#msgspec.inspect.UUIDType
DecimalType
https://msgspec.dev/api.html#msgspec.inspect.DecimalType
ExtType
https://msgspec.dev/api.html#msgspec.inspect.ExtType
RawType
https://msgspec.dev/api.html#msgspec.inspect.RawType
EnumType
https://msgspec.dev/api.html#msgspec.inspect.EnumType
LiteralType
https://msgspec.dev/api.html#msgspec.inspect.LiteralType
CustomType
https://msgspec.dev/api.html#msgspec.inspect.CustomType
UnionType
https://msgspec.dev/api.html#msgspec.inspect.UnionType
UnionType.includes_none
https://msgspec.dev/api.html#msgspec.inspect.UnionType.includes_none
CollectionType
https://msgspec.dev/api.html#msgspec.inspect.CollectionType
ListType
https://msgspec.dev/api.html#msgspec.inspect.ListType
SetType
https://msgspec.dev/api.html#msgspec.inspect.SetType
FrozenSetType
https://msgspec.dev/api.html#msgspec.inspect.FrozenSetType
DictType
https://msgspec.dev/api.html#msgspec.inspect.DictType
TypedDictType
https://msgspec.dev/api.html#msgspec.inspect.TypedDictType
FrozenDictType
https://msgspec.dev/api.html#msgspec.inspect.FrozenDictType
VarTupleType
https://msgspec.dev/api.html#msgspec.inspect.VarTupleType
TupleType
https://msgspec.dev/api.html#msgspec.inspect.TupleType
Field
https://msgspec.dev/api.html#msgspec.inspect.Field
NamedTupleType
https://msgspec.dev/api.html#msgspec.inspect.NamedTupleType
DataclassType
https://msgspec.dev/api.html#msgspec.inspect.DataclassType
StructType
https://msgspec.dev/api.html#msgspec.inspect.StructType
Exceptions
https://msgspec.dev/api.html#exceptions
MsgspecError
https://msgspec.dev/api.html#msgspec.MsgspecError
EncodeError
https://msgspec.dev/api.html#msgspec.EncodeError
DecodeError
https://msgspec.dev/api.html#msgspec.DecodeError
ValidationError
https://msgspec.dev/api.html#msgspec.ValidationError
Viewport: width=device-width, initial-scale=1
URLs of
crawlers that visited me
.