Unfccc-di-api

Latest version: v4.0.4

Safety actively analyzes 701533 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

3.0.1

------------------

* Fix handling of unspecified measure IDs. The DI API started returning measure IDs
without a name or description. We now call them ``unknown measure nr. {measureId}``
instead of erroring out.

3.0.0

------------------

* Support python 3.10.
* Fix handling of duplicate variable IDs. **Note**: This entails changes to the public
API! In particular, UNFCCCSingleCategoryApiReader.variables now has a generic index
instead of using the ``variableId`` as index. Also, the ``query`` function now
correctly restricts queries if ``category_ids`` are provided and correctly fills
all categories with data for a multi-category variable.
* Fix pre-commit config for newer mypy type checking versions.
* Raise a more informative NoDataError (subclass of KeyError) instead of a generic
KeyError when a query result is empty.

2.0.1

------------------

* Change build system.

2.0.0

------------------

* Accept ASCII format for ``gases`` when querying data
and return gases & units normalized to ASCII (optional), thanks to Daniel Huppmann.
Note that gases and units are normalized to ASCII by default, if you need the old
behaviour for compatibility reasons, pass ``normalize_gas_names=False`` to your
``query()`` calls.

1.1.1

------------------

* Include ipython notebooks and CHANGELOG in release tarballs.

1.1.0

------------------

* Add a useful error message when querying for unknown parties, thanks to
Daniel Huppmann.

Page 2 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.