This package helps companies and financial institutions to assess the temperature alignment of current targets, commitments, and investment and lending portfolios, and to use this information to develop targets for official validation by the SBTi.'
Project description
ITR-tool
WWF version of the SBTi-Finance-tool, based on the CDP-WWF Temperature rating methodology
Visit https://wwf-sweden.github.io/ITR-tool/ for the full documentation
If you have any additional questions or comments send a mail to: ekonomi-finans@wwf.se
About the tool
This package helps companies and financial institutions to assess the temperature alignment of current targets, commitments, and investment and lending portfolios, and to use this information to develop targets for official validation by the SBTi.
The WWF Finance toolkit can be used in different ways:
- Users can integrate the Python package in their codebase
- Using Notebooks, either locally or on Google Colab
Structure
The folder structure for this project is as follows:
.
├── .github # Github specific files (Github Actions workflows)
├── app # FastAPI app files for the API endpoints
├── docs # Documentation files (Sphinx)
├── config # Config files for the Docker container
├── ITR # The main Python package for the temperature alignment tool
└── test # Automated unit tests for the SBTi package (Nose2 tests)
Installation
The SBTi package may be installed using PIP. If you'd like to install it locally use the following command. For testing or production please see the deployment section for further instructions
pip install -e .
For installing the latest stable release in PyPi run:
pip install wwf-itr
Development
To set up the local dev environment with all dependencies, install poetry and run
poetry install
This will create a virtual environment inside the project folder under .venv
.
Testing
Each class should be unit tested. The unit tests are written using the Nose2 framework. The setup.py script should have already installed Nose2, so now you may run the tests as follows:
nose2 -v
Publish to PyPi
The package should be published to PyPi when any changes to main are merged.
Update package
- bump version in
pyproject.toml
based on semantic versioning principles - run
poetry build
- run
poetry publish
- check whether package has been successfully uploaded
Initial Setup
- Create account on PyPi
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file wwf_itr-0.9.2.tar.gz
.
File metadata
- Download URL: wwf_itr-0.9.2.tar.gz
- Upload date:
- Size: 1.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/5.15.146.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6305000fce58590f25a5f3965730734096cd65594b967cfd5d292d016728a2c9 |
|
MD5 | 83184976e01e6e154ad70b595781e47a |
|
BLAKE2b-256 | 46bc32e072674d927c4fd2c3e5d0cadeab60041719137dec0fcb4c83872c642a |
File details
Details for the file wwf_itr-0.9.2-py3-none-any.whl
.
File metadata
- Download URL: wwf_itr-0.9.2-py3-none-any.whl
- Upload date:
- Size: 1.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/5.15.146.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | beeab33a8ed24aff35d02f621983fd540821a7702c33b620a8e20b5eaaf2ec48 |
|
MD5 | 00dd9012be874da4404e714bb180eedf |
|
BLAKE2b-256 | e458d03b4253375bbb821fc31058265eb09330744916f56450a609b91eaed44e |