airflow.secrets.local_filesystem¶
Objects relating to retrieving connections and variables from local file.
Module Contents¶
Classes¶
Retrieves Connection objects and Variables from local files.  | 
Functions¶
Return   | 
|
  | 
Load variables from a text file.  | 
  | 
Use airflow.secrets.local_filesystem.load_connections_dict, this is deprecated.  | 
  | 
Load connection from text file.  | 
Attributes¶
- airflow.secrets.local_filesystem.get_connection_parameter_names()[source]¶
 Return
airflow.models.connection.Connectionconstructor parameters.
- airflow.secrets.local_filesystem.load_variables(file_path)[source]¶
 Load variables from a text file.
JSON, YAML and.envfiles are supported.- Parameters
 file_path (str) – The location of the file that will be processed.
- airflow.secrets.local_filesystem.load_connections(file_path)[source]¶
 Use airflow.secrets.local_filesystem.load_connections_dict, this is deprecated.
- airflow.secrets.local_filesystem.load_connections_dict(file_path)[source]¶
 Load connection from text file.
JSON, YAML and.envfiles are supported.
- class airflow.secrets.local_filesystem.LocalFilesystemBackend(variables_file_path=None, connections_file_path=None)[source]¶
 Bases:
airflow.secrets.base_secrets.BaseSecretsBackend,airflow.utils.log.logging_mixin.LoggingMixinRetrieves Connection objects and Variables from local files.
JSON, YAML and.envfiles are supported.- Parameters
 
- get_connection(conn_id)[source]¶
 Return connection object with a given
conn_id.Tries
get_conn_valuefirst and if not implemented, triesget_conn_uri- Parameters
 conn_id (str) – connection id