-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use tomli in TOML handler #92
Comments
As noted here, I should add an extra so you can do |
I would recommend rtoml |
FYI Python is gaining |
|
With Python 3.11 now available this feels like a higher priority. Since
I don't use TOML enough to have a strong opinion here. Would like to hear from people who use the current TOML support. |
My suggestion: Add Something like this: install_requires =
tomli==1.2.3; python_version < 3.11
tomli-w==1.2.3 And in your Python code: import tomli_w
if sys.version_info() >= (3, 11):
import tomllib as tomli
else:
import tomli |
Looks like this is the new standard: https://pypi.org/project/tomli/
Need to check if this has the same API as the original toml. It might be worth creating an additional TOML handler using
tomli
, so you can import each one separately.The text was updated successfully, but these errors were encountered: