sbti-finance-tool


Namesbti-finance-tool JSON
Version 1.0.9 PyPI version JSON
download
home_page
SummaryThis 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.'
upload_time2023-08-31 07:50:29
maintainer
docs_urlNone
authorsbti
requires_python>=3.9,<4.0
licenseMIT
keywords climate sbti finance
VCS
bugtrack_url
requirements certifi charset-normalizer et-xmlfile idna numpy openpyxl pandas pydantic python-dateutil pytz requests six typing-extensions urllib3 xlrd
Travis-CI No Travis.
coveralls test coverage No coveralls.
            > Visit https://sciencebasedtargets.github.io/SBTi-finance-tool/ for the full documentation

> If you have any additional questions or comments send a mail to: finance@sciencebasedtargets.org

# SBTi Temperature Alignment 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.

This tool can be used either as a standalone Python package, a REST API or as a simple webapp which provides a simple skin on the API.
So, the SBTi toolkit caters for three types of usage:

- Users can integrate the Python package in their codebase
- The tool can be included as a Microservice (containerised REST API) in any IT infrastructure (in the cloud or on premise)
- As an webapp, exposing the functionality with a simple user interface.

To following diagram provides an overview of the different parts of the toolkit:

    +-------------------------------------------------+
    |   UI     : Simple user interface on top of API  |
    |   Install: via dockerhub                        |
    |            docker.io/sbti/ui:latest             |
    |                                                 |
    | +-----------------------------------------+     |
    | | REST API: Dockerized FastAPI/NGINX      |     |
    | | Source : github.com/OFBDABV/SBTi_api    |     |
    | | Install: via source or dockerhub        |     |
    | |          docker.io/sbti/sbti/api:latest |     |
    | |                                         |     |
    | | +---------------------------------+     |     |
    | | |                                 |     |     |
    | | |Core   : Python Module           |     |     |
    | | |Source : github.com/ScienceBasedTargets/     |
    | | |               SBTi-finance-tool |     |     |
    | | |Install: via source or PyPi      |     |     |
    | | |                                 |     |     |
    | | +---------------------------------+     |     |
    | +-----------------------------------------+     |
    +-------------------------------------------------+

As shown above the API is dependent on the Python Repo, in the same way the UI requires the API backend. These dependencies are scripted in the Docker files.

> This repository only contains the Python module. If you'd like to use the REST API, please refer to [this repository](https://github.com/ScienceBasedTargets/SBTi-finance-tool-api) or the same repository on [Dockerhub](https://docker.io/sbti/sbti/api:latest).

## 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
    ├── SBTi                    # 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

```bash
pip install -e .
```

For installing the latest stable release in PyPi run:

```bash
pip install sbti-finance-tool
```

## Development

To set up the local dev environment with all dependencies, [install poetry](https://python-poetry.org/docs/#osx--linux--bashonwindows-install-instructions) and run

```bash
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:

```bash
nose2 -v
```

### Publish to PyPi

The package should be published to PyPi when any changes to main are merged.

Update package

1. bump version in `pyproject.toml` based on semantic versioning principles
2. run `poetry build`
3. run `poetry publish`
4. check whether package has been successfully uploaded

**Initial Setup**

- Create account on [PyPi](https://pypi.org/)

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "sbti-finance-tool",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9,<4.0",
    "maintainer_email": "",
    "keywords": "Climate,SBTi,Finance",
    "author": "sbti",
    "author_email": "finance@sciencebasedtargets.org",
    "download_url": "https://files.pythonhosted.org/packages/94/88/513980e0312d557a094d2267513195f782c28da408bace9e3c80fc387402/sbti-finance-tool-1.0.9.tar.gz",
    "platform": null,
    "description": "> Visit https://sciencebasedtargets.github.io/SBTi-finance-tool/ for the full documentation\n\n> If you have any additional questions or comments send a mail to: finance@sciencebasedtargets.org\n\n# SBTi Temperature Alignment tool\n\nThis package helps companies and financial institutions to assess the temperature alignment of current\ntargets, commitments, and investment and lending portfolios, and to use this information to develop\ntargets for official validation by the SBTi.\n\nThis tool can be used either as a standalone Python package, a REST API or as a simple webapp which provides a simple skin on the API.\nSo, the SBTi toolkit caters for three types of usage:\n\n- Users can integrate the Python package in their codebase\n- The tool can be included as a Microservice (containerised REST API) in any IT infrastructure (in the cloud or on premise)\n- As an webapp, exposing the functionality with a simple user interface.\n\nTo following diagram provides an overview of the different parts of the toolkit:\n\n    +-------------------------------------------------+\n    |   UI     : Simple user interface on top of API  |\n    |   Install: via dockerhub                        |\n    |            docker.io/sbti/ui:latest             |\n    |                                                 |\n    | +-----------------------------------------+     |\n    | | REST API: Dockerized FastAPI/NGINX      |     |\n    | | Source : github.com/OFBDABV/SBTi_api    |     |\n    | | Install: via source or dockerhub        |     |\n    | |          docker.io/sbti/sbti/api:latest |     |\n    | |                                         |     |\n    | | +---------------------------------+     |     |\n    | | |                                 |     |     |\n    | | |Core   : Python Module           |     |     |\n    | | |Source : github.com/ScienceBasedTargets/     |\n    | | |               SBTi-finance-tool |     |     |\n    | | |Install: via source or PyPi      |     |     |\n    | | |                                 |     |     |\n    | | +---------------------------------+     |     |\n    | +-----------------------------------------+     |\n    +-------------------------------------------------+\n\nAs shown above the API is dependent on the Python Repo, in the same way the UI requires the API backend. These dependencies are scripted in the Docker files.\n\n> This repository only contains the Python module. If you'd like to use the REST API, please refer to [this repository](https://github.com/ScienceBasedTargets/SBTi-finance-tool-api) or the same repository on [Dockerhub](https://docker.io/sbti/sbti/api:latest).\n\n## Structure\n\nThe folder structure for this project is as follows:\n\n    .\n    \u251c\u2500\u2500 .github                 # Github specific files (Github Actions workflows)\n    \u251c\u2500\u2500 app                     # FastAPI app files for the API endpoints\n    \u251c\u2500\u2500 docs                    # Documentation files (Sphinx)\n    \u251c\u2500\u2500 config                  # Config files for the Docker container\n    \u251c\u2500\u2500 SBTi                    # The main Python package for the temperature alignment tool\n    \u2514\u2500\u2500 test                    # Automated unit tests for the SBTi package (Nose2 tests)\n\n## Installation\n\nThe 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\n\n```bash\npip install -e .\n```\n\nFor installing the latest stable release in PyPi run:\n\n```bash\npip install sbti-finance-tool\n```\n\n## Development\n\nTo set up the local dev environment with all dependencies, [install poetry](https://python-poetry.org/docs/#osx--linux--bashonwindows-install-instructions) and run\n\n```bash\npoetry install\n```\n\nThis will create a virtual environment inside the project folder under `.venv`.\n\n### Testing\n\nEach class should be unit tested. The unit tests are written using the Nose2 framework.\nThe setup.py script should have already installed Nose2, so now you may run the tests as follows:\n\n```bash\nnose2 -v\n```\n\n### Publish to PyPi\n\nThe package should be published to PyPi when any changes to main are merged.\n\nUpdate package\n\n1. bump version in `pyproject.toml` based on semantic versioning principles\n2. run `poetry build`\n3. run `poetry publish`\n4. check whether package has been successfully uploaded\n\n**Initial Setup**\n\n- Create account on [PyPi](https://pypi.org/)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "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.'",
    "version": "1.0.9",
    "project_urls": {
        "Bug Tracker": "https://github.com/ScienceBasedTargets/SBTi-finance-tool/issues",
        "Documentation": "https://sciencebasedtargets.github.io/SBTi-finance-tool",
        "Source Code": "https://github.com/ScienceBasedTargets/SBTi-finance-tool"
    },
    "split_keywords": [
        "climate",
        "sbti",
        "finance"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6e1719293882df817632f86a0af04307b17eb0b070594e92c8fc25e0a5ef6433",
                "md5": "96bfa20801c13c479276082ff2de94b6",
                "sha256": "f1187005c352211db7adf62b608478d874384e1c2b376bca54cec60f33063ceb"
            },
            "downloads": -1,
            "filename": "sbti_finance_tool-1.0.9-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "96bfa20801c13c479276082ff2de94b6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9,<4.0",
            "size": 1883061,
            "upload_time": "2023-08-31T07:50:32",
            "upload_time_iso_8601": "2023-08-31T07:50:32.952769Z",
            "url": "https://files.pythonhosted.org/packages/6e/17/19293882df817632f86a0af04307b17eb0b070594e92c8fc25e0a5ef6433/sbti_finance_tool-1.0.9-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9488513980e0312d557a094d2267513195f782c28da408bace9e3c80fc387402",
                "md5": "1780e61edd162d9f525652725c0560e0",
                "sha256": "260add7e88658bb0c88a0541b90f89c32827d85d23172c511789c5c906677772"
            },
            "downloads": -1,
            "filename": "sbti-finance-tool-1.0.9.tar.gz",
            "has_sig": false,
            "md5_digest": "1780e61edd162d9f525652725c0560e0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9,<4.0",
            "size": 1876051,
            "upload_time": "2023-08-31T07:50:29",
            "upload_time_iso_8601": "2023-08-31T07:50:29.398726Z",
            "url": "https://files.pythonhosted.org/packages/94/88/513980e0312d557a094d2267513195f782c28da408bace9e3c80fc387402/sbti-finance-tool-1.0.9.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-31 07:50:29",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ScienceBasedTargets",
    "github_project": "SBTi-finance-tool",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "certifi",
            "specs": [
                [
                    "==",
                    "2021.10.8"
                ]
            ]
        },
        {
            "name": "charset-normalizer",
            "specs": [
                [
                    "==",
                    "2.0.12"
                ]
            ]
        },
        {
            "name": "et-xmlfile",
            "specs": [
                [
                    "==",
                    "1.1.0"
                ]
            ]
        },
        {
            "name": "idna",
            "specs": [
                [
                    "==",
                    "3.3"
                ]
            ]
        },
        {
            "name": "numpy",
            "specs": [
                [
                    "==",
                    "1.22.0"
                ]
            ]
        },
        {
            "name": "openpyxl",
            "specs": [
                [
                    "==",
                    "3.1.2"
                ]
            ]
        },
        {
            "name": "pandas",
            "specs": [
                [
                    "==",
                    "1.5.3"
                ]
            ]
        },
        {
            "name": "pydantic",
            "specs": [
                [
                    "==",
                    "1.10.7"
                ]
            ]
        },
        {
            "name": "python-dateutil",
            "specs": [
                [
                    "==",
                    "2.8.2"
                ]
            ]
        },
        {
            "name": "pytz",
            "specs": [
                [
                    "==",
                    "2021.3"
                ]
            ]
        },
        {
            "name": "requests",
            "specs": [
                [
                    "==",
                    "2.29.0"
                ]
            ]
        },
        {
            "name": "six",
            "specs": [
                [
                    "==",
                    "1.16.0"
                ]
            ]
        },
        {
            "name": "typing-extensions",
            "specs": [
                [
                    "==",
                    "4.1.1"
                ]
            ]
        },
        {
            "name": "urllib3",
            "specs": [
                [
                    "==",
                    "1.26.11"
                ]
            ]
        },
        {
            "name": "xlrd",
            "specs": [
                [
                    "==",
                    "2.0.1"
                ]
            ]
        }
    ],
    "lcname": "sbti-finance-tool"
}
        
Elapsed time: 0.12848s