-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add shortcuts? #27
Comments
@just1602 @JulienLabonte In general I prefer something explicit like |
I'm not sure if I like that. I'm a big fan of clean method name like |
I think it’s okay that classes that are not related to math concepts redefine operators to mean something meaningful for them (e.g. What I don’t like is that For the other shortcut, I don’t like that I do like |
Other ideas for shortcuts: store = configstore.Store(envvar=True)
if something:
store.add_backend(dotenv='/path/to/.env') # the dotenv backend will be added if envvar PROJECT_DOTENV_PATH exists
store = configstore.Store(envvar=True, dotenv='PROJECT_DOTENV_PATH')
# built-in backend
store.add_backend('docker')
# custom backend
store.add_backend(VaultBackend) store = configstore.Store('envvar, dotenv:PROJECT_DOTENV_PATH') |
Would it be useful to add syntax shortcuts to make client code shorter?
The text was updated successfully, but these errors were encountered: