bw2io.remote
#
Module Contents#
Functions#
|
|
|
Install an existing Brightway project archive. |
Attributes#
- bw2io.remote.install_project(project_key: str, project_name: Optional[str] = None, projects_config: Optional[dict] = get_projects(), url: Optional[str] = 'https://files.brightway.dev/', overwrite_existing: Optional[bool] = False, __recursive: bool | None = False)[source]#
Install an existing Brightway project archive.
By default uses
https://files.brightway.dev/
as the file repository, but you can run your own.- Parameters
project_key (str) โ A string uniquely identifying a project, e.g.
ecoinvent-3.8-biosphere
.project_name (str, optional) โ The name of the new project to create. If not provided will be taken from the archive file.
projects_config (dict, optional) โ A dictionary that maps
project_key
values to filenames at the repositoryurl (str, optional) โ The URL, with trailing slash
/
, where the file can be found.overwrite_existing (bool, optional) โ Allow overwriting an existing project
__recursive (bool) โ Internal flag used to determine if this function has errored out already
- Returns
The name of the created project.
- Return type
str