eyeseast / python-frontmatter

Parse and manage posts with YAML (or other) frontmatter
http://python-frontmatter.rtfd.io
MIT License
329 stars 43 forks source link

Add warning when TOML is not available #101

Open darkdragon-001 opened 1 year ago

darkdragon-001 commented 1 year ago

Instead of just having a warning in the comments

https://github.com/eyeseast/python-frontmatter/blob/3910ac705cabdd6e2cd5844ffed60798f09a0f6b/frontmatter/default_handlers.py#L15-L16

Maybe print a warning to the console instead when TOML is not available?

eyeseast commented 1 year ago

That's a good idea.

I need to decide whether to just include toml by default now that it's (partially) in the standard library.

merwok commented 1 year ago

What about defining packaging extras for the supported formats?

nikhilweee commented 3 weeks ago

+1 for extra. pip install python-formatter[toml] would be great.