@@ -41,8 +41,12 @@ def initialize_app(credential=None, options=None, name=_DEFAULT_APP_NAME):
4141
4242 Creates a new App instance using the specified options
4343 and the app name. If an instance already exists by the same
44- app name a ValueError is raised. Use this function whenever
45- a new App instance is required. Do not directly invoke the
44+ app name a ValueError is raised.
45+ If options are not provided an attempt is made to load the options from the environment.
46+ This is done by looking up the ``FIREBASE_CONFIG`` environment variable. If the value of
47+ the variable starts with ``"{"``, it is parsed as a JSON object. Otherwise it is treated
48+ as a file name and the JSON content is read from the corresponding file.
49+ Use this function whenever a new App instance is required. Do not directly invoke the
4650 App constructor.
4751
4852 Args:
@@ -52,10 +56,6 @@ def initialize_app(credential=None, options=None, name=_DEFAULT_APP_NAME):
5256 ``databaseURL``, ``storageBucket``, ``projectId``, ``databaseAuthVariableOverride``
5357 and ``httpTimeout``. If ``httpTimeout`` is not set, HTTP connections initiated by client
5458 modules such as ``db`` will not time out.
55- If options are not provided an attempt is made to load the options from the environment.
56- This is done by looking up the ``FIREBASE_CONFIG`` environment variable. If the value of
57- the variable starts with ``"{"``, it is parsed as a JSON object. Otherwise it is treated
58- as a file name and the JSON content is read from the corresponding file.
5959 name: Name of the app (optional).
6060 Returns:
6161 App: A newly initialized instance of App.
0 commit comments