Choosable dependency

Grant Edwards grant.b.edwards at gmail.com
Sat Mar 6 10:40:41 EST 2021


On 2021-03-06, Manfred Lotz <ml_news at posteo.de> wrote:
> Let us say I have a package which reads a TOML file. 
>
> I want to give the user of my package the choice to decide if he wants
> to use the toml, tomlkit or rtoml package. 

Why would the user choose one over the other?  Does the user get
different functions/features depending on which one they choose?

If you're just using a common subset to provide a fixed set of
features regardless, then just use whatever is installed.

--
Grant




More information about the Python-list mailing list