dynaconf / dynaconf/dynaconf

[RFC] Allow multiple envvar prefixes. was: Switch env with additional env variables

Open
#733 2 comments 0 reactions 0 assignees View on GitHub
question RFC
Dominant language
Python
Stars
4.3k
Forks
347
Avg merge
2d 2h
Merged PRs (30d)
1

Description

I am wondering whether it exists some simple method to switch the env label with additional env variables.

I am writing a SDK for TencentCloud. I want to the environment variables in the runtime of function computing. A environment variable, `"TENCENTCLOUD_RUNTIME"="SCF" `, can be used to identify the environment. I hope to use them as additional default value or replace some addtional default value, for example, "TENCENTCLOUD_SECRETID" in replace of SDK's "QCLOUDSDK_SECRET_ID"。

I cannot understand how to use custom loader, or use proper parameters to control settings class.

In addition, the docs have no detailed description about "@str format" and "@jlina " with env. I cannot find proper ways to deal with more complicated condition, for example, "TENCENTCLOUD_SECRETID" only exists when access role is setted.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.