adelf / idea-php-dotenv-plugin

environment parameters completion, based on .env file keys
MIT License
166 stars 13 forks source link

Support popular python library django-environ #109

Open Bensge opened 1 year ago

Bensge commented 1 year ago

It would be cool if this plugin supported django-environ, a popular library from PyPi. The most notable difference is the API call to get a variable from a .env file: Instead of os.environ.get(), one uses env('VAR_NAME'), where env is an instance of the class environ.Env .

See the example usage of the package here.

I think a small addition to PythonPsiHelper.java is all that is needed to make it work. I unfortunately don't have the setup to build and run IDE plugins, so I can't do it myself.