Make a plugin-architectured ConfigFilesStore and make it default local store
#7
thorwhalen
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The work is really done in the wrapper that will be used on
TextFiles(but can be reused elsewhere).The wrapper uses
wrap_kvswithpostgetargument.The
postgetis a class or function that uses the usual "register" means to register new rules.The default rules include extension-based conditionals for all things that can be handled by builtins (
ini,cfg,csv,tsv,txt, ...) as well as for those that need (e.g.xls), or might need depending on the python version (e.g.tomlandyaml) a third party. In the case of the third party need (or might need), the imports are "protected" in the functions orcontextlib.supressand helpful error messages are given to the user dynamically.Before starting the task, search for tools that already exist in
config2pyas well as review the following modules, which may help out a lot:... and older ones (that may, or may not, have been already absorbed in the
grabfunction ofpyckup):Beta Was this translation helpful? Give feedback.
All reactions