Choosable dependency

Manfred Lotz ml_news at posteo.de
Sat Mar 6 06:00:33 EST 2021


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. 

So, in case the user chose to use rtoml then there should be an import
only for rtoml, aso.

How could I achieve this?

-- 
Thanks,
Manfred



More information about the Python-list mailing list