-
-
Notifications
You must be signed in to change notification settings - Fork 288
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
Question: How do you use autocomplete with dynaconf? #298
Comments
implemented `__dir__` on Settings and Dynabox
resolved @Markxy still pending release |
awesome, @rochacbruno 👍 |
Shortlog of commits since last release: Bernardo Gomes (2): Adding f string (#319) Added little information about how dev into this project. (#321) Bruno Rocha (18): Release version 3.0.0rc1 Better exception handling on env_loader (#316) Add support for config aliases (#332) Add ENVLESS_MODE (#337) Fix #272 allow access of lowercase keys (#338) Fix #298 allow auto complete for editors and console (#339) Vendoring dependencies Fix #301 (#345) Clean tox installation for local testing (#346) Validator improvements on conditions (#353) Add note about quoting in env vars (#347) DEPRECATED global settings object. DEPRECATED global settings object. (#356) Lowecase read allowed by default (#357) Merge branch 'master' of github.com:rochacbruno/dynaconf envless by default - breaking change⚠️ (#358) dotenv is no more loaded by default (#360) No more loading of `settings.*` by default (#361) NO more logger and debug messages (#362) Douglas Maciel d'Auriol Souza (1): Insert news validator conditions: (len_eq, len_ne, len_min, len_max, contd) (#328) Jeff Wayne (1): s/DYNACONF_ENV/ENV_FOR_DYNACONF (#335) Marcos Benevides (1): Fix minor typo in Flask extension docs (#318) Nicholas Nadeau, Ph.D., P.Eng (1): Fixed comma typo (#334) sfunkhouser (1): Add option to override default mount_point for vault (#349)
Hi! My team is looking to adopt a new configuration framework and DynaConf looks really good. One of our goals is to maximize productivity, for example through code completion available in the IDE (e.g. PyCharm or VS Code). settings.toml:
my_app.py
I was initially thinking that this issue was about to enable this behavior, but after testing with Thanks! |
Would very much like the IDE to autocomplete the settings as well! Would be a big boost to productivity |
+1 for the IDE autocomplete |
Hi. This would be extremely helpful. I did a workaround with arg parser
It would be most pleasant to have it in dynaconf too. Without a workaround.
It there some kind of ETA? |
The work is being done on #683 |
I'm using a derived singleton class. I write the config parameters as class attributes so the IDE can auto-complete. Of course, this also means that you should keep the environment variables / settings file in sync with those attributes.
|
@ferreirajoaouerj we are planning to implement something similar to your example, but using Pydantic as the base model see #1045 |
Hello!
First of all, great project, love the feel, idea and execution!
To the question-
How do you use autocomplete with IDEs (PyCharm in my case) when using dynaconf?
from dynaconf import settings
gets its attributes on execution and I get that, but it takes away so much with it.. The autocomplete plus the IDE not being able to tell if there's a variable like that at all.Or am I just missing something?
Because I already had a (quite long) settings.py file before introducing dynaconf and I wanted just to take out some vars and tuck them into separate files, I just set their values as:
VAR_1 = dynaconf_settings.VAR_1
The text was updated successfully, but these errors were encountered: