@@ -41,8 +41,12 @@ def initialize_app(credential=None, options=None, name=_DEFAULT_APP_NAME):
41
41
42
42
Creates a new App instance using the specified options
43
43
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
46
50
App constructor.
47
51
48
52
Args:
@@ -52,10 +56,6 @@ def initialize_app(credential=None, options=None, name=_DEFAULT_APP_NAME):
52
56
``databaseURL``, ``storageBucket``, ``projectId``, ``databaseAuthVariableOverride``
53
57
and ``httpTimeout``. If ``httpTimeout`` is not set, HTTP connections initiated by client
54
58
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.
59
59
name: Name of the app (optional).
60
60
Returns:
61
61
App: A newly initialized instance of App.
0 commit comments