Skip to content

add programmatic list of supported formats #452

@stonylohr

Description

@stonylohr

First, thank you for creating and maintaining this project.

A feature that would make this library even more helpful to me would be some way to programmatically get a list of the supported file types. I know that the list is available in supported_mimes.md, but there are situations where it would be more convenient if there were an easy way to get the list directly from the package, rather than scraping the md file. I don't currently see a way to do that, though I might be overlooking something.

I'm flexible on many details, but my first thought would be to add an exported function (SupportedMIMEs()?) that returns root.flatten().

I would be happy to submit a PR for this feature, if we can figure out a general approach that works for both of us.

Thank you for considering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions