Skip to main content

DEAPack

DEAPack is a source-audited Python toolkit for data envelopment analysis, efficiency measurement, productivity analysis, and environmental performance. The redesigned 2.x API uses the lowercase deapack import and a common data, technology, result, visualization, and reporting architecture.

2.0.0 is the first stable release of the redesigned DEAPack 2.x line. Its 33 dataset fingerprints have exact item-level license and attribution mappings.

Installation

Install the stable release with:

python -m pip install "DEAPack==2.0.0"

Python 3.10, 3.11, 3.12, and 3.13 are supported. NumPy, pandas, and SciPy are the only required runtime dependencies; ordinary linear programmes use the HiGHS solver bundled through SciPy. Install DEAPack[viz] for the optional Matplotlib result views.

Quick start

import pandas as pd

from deapack import BCCInput, DEAData

frame = pd.DataFrame(
    {
        "dmu": ["A", "B", "C", "D"],
        "input": [1.0, 2.0, 3.0, 4.0],
        "output": [1.0, 3.0, 4.0, 4.0],
    }
)
data = DEAData.from_frame(
    frame,
    dmu="dmu",
    inputs="input",
    outputs="output",
)

result = BCCInput().fit(data)
print(result.summary())
print(result.peers("D"))

Results expose named summary, target, slack, peer, dual, component, and diagnostic tables only when the corresponding numerical and economic account has been certified. They can also produce a self-contained HTML brief and a deterministic audit archive.

Scope

The release covers the major classical radial and non-radial families, directional and generalized-distance analysis, price-informed economic efficiency, undesirable-output and environmental technologies, Malmquist and related productivity accounts, network and dynamic production, panel models, and radial metafrontiers. The installed discovery catalog is the authoritative list of public methods:

from deapack import list_methods

for method in list_methods():
    print(method.method_id)

Statistical inference, Färe--Primont productivity, generic congestion, automatic EBM calibration, and several source-incomplete variants remain explicit next-version work rather than provisional APIs.

Documentation and migration

DEAPack 2.x is a greenfield API. Historical import DEAPack and ProdPack scripts require an explicit migration; the 2.x wheel intentionally provides only import deapack.

Citation and license

Use the repository's CITATION.cff and record the exact version and commit used. The DEAPack software component is licensed under GPL-3.0-only. Bundled dataset content is released only when its provenance record identifies confirmed licensing authority, an approved redistribution status, content license, attribution, and required notice; it does not inherit GPL merely by being represented in a Python file. All 33 current dataset fingerprints have exact mappings: 30 project-created or independently selected fixtures and one external dataset use CC-BY-4.0, while two external datasets retain upstream MIT notices. Package Documentation and Bilingual Handbook Preview 1 are separate components and are cited and licensed separately.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deapack-2.0.0.tar.gz (746.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deapack-2.0.0-py3-none-any.whl (794.9 kB view details)

Uploaded Python 3

File details

Details for the file deapack-2.0.0.tar.gz.

File metadata

  • Download URL: deapack-2.0.0.tar.gz
  • Upload date:
  • Size: 746.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for deapack-2.0.0.tar.gz
Algorithm Hash digest
SHA256 9f6603aa1d78e45cdf011a1a4b033905f4485e6b6890effa95a146511f33bc8e
MD5 331b7c8ab9be6fb63de716e1f610214d
BLAKE2b-256 d3b0f1ea5d2e76f4ced20ed8c0b268ac4a34bd160e5831c07e170d9619c24d22

See more details on using hashes here.

Provenance

The following attestation bundles were made for deapack-2.0.0.tar.gz:

Publisher: publish-pypi.yml on daopingw/DEAPack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file deapack-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: deapack-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 794.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for deapack-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 55973e4d8076172c2b8e48cdd77c5656957fb6e53dbaed85ee4b9eba282272ea
MD5 1e5c2401499d4ab631a58a161a632228
BLAKE2b-256 92341b1b17410a440d50eff434ff45a25f61bf3798d5752e2f64190689cdd304

See more details on using hashes here.

Provenance

The following attestation bundles were made for deapack-2.0.0-py3-none-any.whl:

Publisher: publish-pypi.yml on daopingw/DEAPack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

2.0.1

2 files

This release

2.0.0 This release

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 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