bw2data.proxies
#
Module Contents#
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 |
- 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__.
- property unit[source]#
Get exchange unit.
Separate property because the unit is a property of the input, not the exchange itself.
- _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__.