bw2data.backends.utils#

Module Contents#

Functions#

convert_backend(database_name, backend)

Convert a Database to another backend.

bw2data.backends.utils.convert_backend(database_name, backend)[source]#

Convert a Database to another backend.

bw2data currently supports the default and json backends.

Parameters
  • database_name (*) – Name of database.

  • backend (*) – Type of database. backend should be recoginized by DatabaseChooser.

Returns False if the old and new backend are the same. Otherwise returns an instance of the new Database object.