Skip to content

Add TOML support - #268

Merged
jcrist merged 2 commits into
mainfrom
toml
Jan 18, 2023
Merged

jcrist merged 2 commits into
mainfrom
toml

Conversation

@jcrist

@jcrist jcrist commented Jan 18, 2023

Copy link
Copy Markdown
Member

This adds TOML support in a new msgspec.toml module. This uses:

  • tomli (or tomllib for Python 3.11+) for decoding
  • tomli_w for encoding

Both are optional dependencies that may be installed using the new
toml extra.

As with YAML support, only encode/decode methods are supported for
now, no Encoder/Decoder classes.

This adds TOML support in a new `msgspec.toml` module. This uses:

- `tomli` (or `tomllib` for Python 3.11+) for decoding
- `tomli_w` for encoding

Both are optional dependencies that may be installed using the new
`toml` extra.

As with YAML support, only `encode`/`decode` methods are supported for
now, no `Encoder`/`Decoder` classes.
@jcrist
jcrist merged commit 91e90d9 into main Jan 18, 2023
@jcrist
jcrist deleted the toml branch January 18, 2023 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant