Skip to main content

esgcalc — Granular offline Python library

Standalone Python library 0.2.0, Python >=3.10, no runtime dependencies. Calculation algorithms and resources derive unchanged from the verified engine; Golden Source provenance pins the implementation and resources. The calculation core implements 47 independently callable capabilities across nine domains. The native R implementation is available as esgcalc-r.

from esgcalc import social, data, rating, Context

assert social.pay_gap(20, 18).value == 10
company = data.load_reference_data("synthetic_companies.json").value["companies"][1]
result = rating.rate_company(company["observations"], company["findings"],
                             context=Context(as_of="2026-06-30"))
print(result.value, result.details["coverage"])

The declared scope includes 23 edition-pinned quantitative taxonomy clauses, six-goal assessment combination, nonfinancial turnover/CapEx/OpEx calculations including plan restatement, all 18 Table1 PAI numerical contracts, selected ENV/SOC/GOV indicators, portfolio metrics, listed-company financed emissions, a configurable transparent ESG performance rating, and local data interfaces. All runtime work is offline on supplied structured inputs. There is no network, AI extraction, service, database or mandatory whole-company data graph.

The enumerated contract defines completeness. This is not every ESG law, every taxonomy activity, complete DNSH investigation or statutory reporting. External assessments carry source/date/method/scope. The reference rating uses explicit model choices, not an alleged statutory universal ESG grade. Coverage, unknown findings and missing observations stay visible. PAI18's source ambiguity requires an explicit interpretation; it is never silently reversed.

21 original source PDFs underpin the local selected-edition review. Public resources retain provenance and hashes, not the private regulations archive. 120 reconciled annual cases for 60 fictional companies in six archetypes have independent numerical expectations; an executable mixed portfolio links the upstream metrics, PAI, ratings and financed emissions. Synthetic data are not empirical calibration, and future-year observations are labelled scenarios.

Start with contracts, API, taxonomy catalog, rating, casebook, method issues and verification.

Install from PyPI: python -m pip install esgcalc.

Local install: python -m pip install --no-index --no-deps <local wheel>. Offline example: python examples/realistic_pipeline.py output.json. Build with local tools: python -m build --no-isolation. GPL-3.0-or-later; copyright RiskDataScience GmbH. Maintainer: Dr. Dimitrios Geromichalos riskdatascience@web.de.

Developer entry points: ./scripts/check.sh and ./scripts/build.sh. See CONTRIBUTING.md, CHANGELOG.md and licence status. GitHub CI verifies Python 3.10, 3.12 and 3.13. The manually triggered release workflow publishes verified distributions through PyPI Trusted Publishing.

Metadata

Release files for esgcalc 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for esgcalc 0.2.0
File Size Uploaded
esgcalc-0.2.0.tar.gz 267.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for esgcalc 0.2.0
File Interpreter ABI Platform
esgcalc-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 452.0 kB

Release files / esgcalc-0.2.0.tar.gz

Download URL esgcalc-0.2.0.tar.gz
Size 267.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3cdb1aba2a1d48c57fe219a98987ccfaa770f17cf1e820ed3e7d8e2cfb9a7b42
BLAKE2b-256 checksum
How to use checksums
0d3af5f47185fbd46719334ba57a7e5248f3bea3458e456f6d9fb894f3e3d4e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

Release files / esgcalc-0.2.0-py3-none-any.whl

Download URL esgcalc-0.2.0-py3-none-any.whl
Size 184.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51d60547be39582ef0ddc02a9a788ec3c411054e544b07bb27cbc694a9d2de9e
BLAKE2b-256 checksum
How to use checksums
812456c85d99ba288513c106a8d342e59c29b1afe68784890facb2684ddb68e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page