MCPcopy Create free account

hub / github.com/theskumar/python-dotenv / functions

Functions124 in github.com/theskumar/python-dotenv

↓ 13 callersMethodread
(self, count: int)
src/dotenv/parser.py:83
↓ 6 callersMethoddotenv
(self, line)
src/dotenv/ipython.py:23
↓ 4 callersMethoddict
Return dotenv as dict
src/dotenv/main.py:67
↓ 4 callersFunctionparse_stream
(stream: IO[str])
src/dotenv/parser.py:172
↓ 4 callersMethodread_regex
(self, regex: Pattern[str])
src/dotenv/parser.py:90
↓ 3 callersFunctiondotenv_values
Parse a .env file and return its content as a dict. The returned dict will have `None` values for keys without values in the .env file.
src/dotenv/main.py:349
↓ 3 callersFunctionfind_dotenv
Search in increasingly higher folders for the given file Returns path to the file if found, or an empty string otherwise
src/dotenv/main.py:270
↓ 3 callersMethodget
src/dotenv/main.py:102
↓ 3 callersMethodpeek
(self, count: int)
src/dotenv/parser.py:80
↓ 3 callersFunctionprepare_file_hierarchy
Create a temporary folder structure like the following: test_find_dotenv0/ └── child1 ├── child2 │   └──
tests/test_main.py:202
↓ 3 callersFunctionwith_warn_for_invalid_lines
(mappings: Iterator[Binding])
src/dotenv/main.py:24
↓ 2 callersMethodadvance
(self, string: str)
src/dotenv/parser.py:53
↓ 2 callersMethodhas_next
(self)
src/dotenv/parser.py:68
↓ 2 callersFunctionlist
Display all the stored key/value.
src/dotenv/cli.py:73
↓ 2 callersFunctionparse_variables
(value: str)
src/dotenv/variables.py:70
↓ 2 callersFunctionrewrite
( path: StrPath, encoding: Optional[str], )
src/dotenv/main.py:130
↓ 2 callersMethodstart
(cls)
src/dotenv/parser.py:46
↓ 2 callersFunctionstream_file
Open a file and yield the corresponding (decoded) stream. Exits with error code 2 if the file cannot be opened.
src/dotenv/cli.py:52
↓ 1 callersMethod__eq__
(self, other: object)
src/dotenv/variables.py:36
↓ 1 callersMethod_get_stream
(self)
src/dotenv/main.py:53
↓ 1 callersFunction_is_interactive
Decide whether this is running in a REPL or IPython notebook
src/dotenv/main.py:281
↓ 1 callersFunction_walk_to_root
Yield directories starting from the given directory up to the root
src/dotenv/main.py:252
↓ 1 callersFunctioncli
This script is used to set, get or unset values from a .env file.
src/dotenv/cli.py:46
↓ 1 callersFunctiondecode_escapes
(regex: Pattern[str], string: str)
src/dotenv/parser.py:98
↓ 1 callersMethodget_marked
(self)
src/dotenv/parser.py:74
↓ 1 callersFunctionload_dotenv
Parse a .env file and then load all the variables found as environment variables. Parameters: dotenv_path: Absolute or relative path to .
src/dotenv/main.py:311
↓ 1 callersFunctionmake_regex
(string: str, extra_flags: int = 0)
src/dotenv/parser.py:7
↓ 1 callersMethodparse
(self)
src/dotenv/main.py:81
↓ 1 callersFunctionparse_binding
(reader: Reader)
src/dotenv/parser.py:135
↓ 1 callersFunctionparse_key
(reader: Reader)
src/dotenv/parser.py:105
↓ 1 callersFunctionparse_unquoted_value
(reader: Reader)
src/dotenv/parser.py:116
↓ 1 callersFunctionparse_value
(reader: Reader)
src/dotenv/parser.py:121
↓ 1 callersFunctionread_files
(files)
setup.py:4
↓ 1 callersMethodresolve
(self, env: Mapping[str, Optional[str]])
src/dotenv/variables.py:26
↓ 1 callersFunctionresolve_variables
( values: Iterable[Tuple[str, Optional[str]]], override: bool, )
src/dotenv/main.py:227
↓ 1 callersFunctionrun_command
Run command in sub process. Runs the command in a sub process with the variables from `env` added in the current environment variables.
src/dotenv/cli.py:168
↓ 1 callersMethodset
(self, other: "Position")
src/dotenv/parser.py:49
↓ 1 callersMethodset_as_environment_variables
Load the current dotenv as system environment variable.
src/dotenv/main.py:87
↓ 1 callersFunctionset_key
Adds or Updates a key/value to the given .env If the .env path given doesn't exist, fails instead of risking creating an orphan .env som
src/dotenv/main.py:147
↓ 1 callersMethodset_mark
(self)
src/dotenv/parser.py:71
↓ 1 callersFunctionunset_key
Removes a given key from the given `.env` file. If the .env path given doesn't exist, fails. If the given key doesn't exist in the .env,
src/dotenv/main.py:196
Method__eq__
(self, other: object)
src/dotenv/variables.py:56
Method__hash__
(self)
src/dotenv/variables.py:41
Method__hash__
(self)
src/dotenv/variables.py:61
Method__init__
(self, chars: int, line: int)
src/dotenv/parser.py:41
Method__init__
(self, stream: IO[str])
src/dotenv/parser.py:63
Method__init__
(self, value: str)
src/dotenv/variables.py:30
Method__init__
(self, name: str, default: Optional[str])
src/dotenv/variables.py:49
Method__init__
( self, dotenv_path: Optional[StrPath], stream: Optional[IO[str]] = None, verb
src/dotenv/main.py:35
Method__ne__
(self, other: object)
src/dotenv/variables.py:19
Method__repr__
(self)
src/dotenv/variables.py:33
Method__repr__
(self)
src/dotenv/variables.py:53
Functioncli
()
tests/conftest.py:6
Functiondecode_match
(match: Match[str])
src/dotenv/parser.py:99
Functiondotenv_file
(tmp_path)
tests/conftest.py:13
Functionenumerate_env
Return a path for the ${pwd}/.env file. If pwd does not exist, return None.
src/dotenv/cli.py:20
Functionget
Retrieve the value for the given key.
src/dotenv/cli.py:111
Functionget_cli_string
Returns a string suitable for running as a shell script. Useful for converting a arguments passed to a fabric task to be passed to a `local`
src/dotenv/__init__.py:12
Functionget_key
Get the value of a given key from the given .env. Returns `None` if the key isn't found or doesn't have a value.
src/dotenv/main.py:116
Functionload_ipython_extension
Register the %dotenv magic.
src/dotenv/ipython.py:37
Functionload_ipython_extension
(ipython: Any)
src/dotenv/__init__.py:7
Methodresolve
(self, env: Mapping[str, Optional[str]])
src/dotenv/variables.py:44
Methodresolve
(self, env: Mapping[str, Optional[str]])
src/dotenv/variables.py:64
Functionrun
Run command with environment variables present.
src/dotenv/cli.py:147
Functionset
Store the given key/value.
src/dotenv/cli.py:96
Functiontest_dotenv_values_file
(dotenv_file)
tests/test_main.py:359
Functiontest_dotenv_values_file_stream
(dotenv_file)
tests/test_main.py:418
Functiontest_dotenv_values_string_io
(env, string, interpolate, expected)
tests/test_main.py:408
Functiontest_find_dotenv_found
(tmp_path)
tests/test_main.py:243
Functiontest_find_dotenv_no_file_no_raise
(tmp_path)
tests/test_main.py:234
Functiontest_find_dotenv_no_file_raise
(tmp_path)
tests/test_main.py:226
Functiontest_get_default_path
(tmp_path)
tests/test_cli.py:155
Functiontest_get_existing_value
(cli, dotenv_file)
tests/test_cli.py:59
Functiontest_get_key_encoding
(dotenv_file)
tests/test_main.py:119
Functiontest_get_key_no_file
(tmp_path)
tests/test_main.py:76
Functiontest_get_key_none
(dotenv_file)
tests/test_main.py:129
Functiontest_get_key_not_found
(dotenv_file)
tests/test_main.py:97
Functiontest_get_key_ok
(dotenv_file)
tests/test_main.py:107
Functiontest_get_non_existent_file
(cli)
tests/test_cli.py:74
Functiontest_get_non_existent_value
(cli, dotenv_file)
tests/test_cli.py:68
Functiontest_get_not_a_file
(cli)
tests/test_cli.py:81
Functiontest_ipython_existing_variable_no_override
(tmp_path)
tests/test_ipython.py:11
Functiontest_ipython_existing_variable_override
(tmp_path)
tests/test_ipython.py:27
Functiontest_ipython_new_variable
(tmp_path)
tests/test_ipython.py:43
Functiontest_list
(cli, dotenv_file, format: Optional[str], content: str, expected: str)
tests/test_cli.py:26
Functiontest_list_no_file
(cli)
tests/test_cli.py:53
Functiontest_list_non_existent_file
(cli)
tests/test_cli.py:39
Functiontest_list_not_a_file
(cli)
tests/test_cli.py:46
Functiontest_load_dotenv_existing_file
(dotenv_file)
tests/test_main.py:255
Functiontest_load_dotenv_existing_variable_no_override
(dotenv_file)
tests/test_main.py:276
Functiontest_load_dotenv_existing_variable_override
(dotenv_file)
tests/test_main.py:287
Functiontest_load_dotenv_file_stream
(dotenv_file)
tests/test_main.py:330
Functiontest_load_dotenv_in_current_dir
(tmp_path)
tests/test_main.py:341
Functiontest_load_dotenv_no_file_verbose
()
tests/test_main.py:265
Functiontest_load_dotenv_redefine_var_used_in_file_no_override
(dotenv_file)
tests/test_main.py:298
Functiontest_load_dotenv_redefine_var_used_in_file_with_override
(dotenv_file)
tests/test_main.py:309
Functiontest_load_dotenv_string_io_utf_8
()
tests/test_main.py:320
Functiontest_parse_stream
(test_input, expected)
tests/test_parser.py:168
Functiontest_parse_variables
(value, expected)
tests/test_variables.py:32
Functiontest_run
(tmp_path)
tests/test_cli.py:165
next →1–100 of 124, ranked by callers