bw2data.proxies#
Classes#
A MutableMapping is a generic container for associating |
|
A MutableMapping is a generic container for associating |
|
A MutableMapping is a generic container for associating |
Module Contents#
- class bw2data.proxies.ActivityProxyBase(data, *args, **kwargs)[source]#
Bases:
ProxyBase
A MutableMapping is a generic container for associating key/value pairs.
This class provides concrete generic implementations of all methods except for __getitem__, __setitem__, __delitem__, __iter__, and __len__.
- class bw2data.proxies.ExchangeProxyBase(data, *args, **kwargs)[source]#
Bases:
ProxyBase
A MutableMapping is a generic container for associating key/value pairs.
This class provides concrete generic implementations of all methods except for __getitem__, __setitem__, __delitem__, __iter__, and __len__.
- _get_input()[source]#
Get or set the exchange input.
When getting, returns an Activity - this will raise an error if the linked activity doesn’t yet exist.
When setting, either an Activity or a tuple can be given. The linked activity does not have to exist yet.
- _get_output()[source]#
Get or set the exchange output.
When getting, returns an Activity - this will raise an error if the linked activity doesn’t yet exist.
When setting, either an Activity or a tuple can be given. The linked activity does not have to exist yet.
- class bw2data.proxies.ProxyBase(data, *args, **kwargs)[source]#
Bases:
collections.abc.MutableMapping
A MutableMapping is a generic container for associating key/value pairs.
This class provides concrete generic implementations of all methods except for __getitem__, __setitem__, __delitem__, __iter__, and __len__.