File: __init__.py

package info (click to toggle)
python-dynaconf 3.2.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,900 kB
  • sloc: python: 21,464; sh: 9; makefile: 4
file content (18 lines) | stat: -rw-r--r-- 698 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
_A=None
from.compat import IS_TYPE_CHECKING
from.main import load_dotenv,get_key,set_key,unset_key,find_dotenv,dotenv_values
if IS_TYPE_CHECKING:from typing import Any,Optional
def load_ipython_extension(ipython):from.ipython import load_ipython_extension as A;A(ipython)
def get_cli_string(path=_A,action=_A,key=_A,value=_A,quote=_A):
	D=quote;C=action;B=value;A=['dotenv']
	if D:A.append('-q %s'%D)
	if path:A.append('-f %s'%path)
	if C:
		A.append(C)
		if key:
			A.append(key)
			if B:
				if' 'in B:A.append('"%s"'%B)
				else:A.append(B)
	return' '.join(A).strip()
__all__=['get_cli_string','load_dotenv','dotenv_values','get_key','set_key','unset_key','find_dotenv','load_ipython_extension']