muni-bench-ny
Load MUNI-BENCH in Python: an open panel that links New York local government finances (Office of the State Comptroller), community electricity and natural gas use (NYSERDA Utility Energy Registry) and completed NYPA public-facility efficiency projects. It has one row per government per year, 2016 to 2025, for 3,264 counties, cities, towns, villages, school districts and fire districts.
The package is a small loader. It downloads a release from Zenodo the first time you ask for it, checks it against the checksum Zenodo publishes, caches it and returns pandas DataFrames. The data stay on Zenodo under one citable DOI.
Install
pip install muni-bench-ny
The package installs as muni-bench-ny and is imported as muni_bench. The command line tool is muni-bench.
Use
import muni_bench as mb
panel = mb.load_panel(version="0.1.2") # pin a release for reproducible work
panel = mb.load_panel() # or the latest release
links = mb.load_table("link_nypa") # other tables: entities, link_uer, community_energy,
# zip_energy, uer_communities, review_queue
for r in mb.versions(): # every archived release
print(r.version, r.doi)
print(mb.citation("0.1.2"))
Command line:
muni-bench versions
muni-bench download --release 0.1.2 --dest muni-bench-data
muni-bench cite --release 0.1.2
The cache is in ~/.cache/muni-bench (on Windows, %LOCALAPPDATA%\muni-bench). Set the MUNI_BENCH_CACHE environment variable to change it.
Before you use the numbers
- Community energy is everything consumed inside a city, town or village, not the government's own buildings.
- Finance is by fiscal year; energy and NYPA projects are by calendar year.
- NYPA savings are engineering estimates at completion.
- Release 0.1.1 understates 2021 to 2024 community energy, and the loader warns when you load it. Use 0.1.2 or later.
The full list is in LIMITATIONS, and every column is described in the CODEBOOK. Both files also come with each download.
Cite
Akindipe, S. O. (2026). MUNI-BENCH: Entity-Level Linkage of New York Local Government Finance, Community Energy Use, and Public-Facility Efficiency Projects [Data set]. Zenodo. https://doi.org/10.5281/zenodo.23314416
Cite the version you used; mb.citation("<version>") prints it.
Licenses
The code is MIT. The data and documents are CC BY 4.0; credit MUNI-BENCH and its sources: the NYS Office of the State Comptroller, NYSERDA and NYPA, via data.ny.gov.
The pipeline that builds the data from the original sources is in the GitHub repository.
Metadata
Release files for muni-bench-ny 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| muni_bench_ny-0.1.2.tar.gz | 10.6 kB | With provenance | Details for muni_bench_ny-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| muni_bench_ny-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for muni_bench_ny-0.1.2-py3-none-any.whl |
Total release size: 20.5 kB
Release files / muni_bench_ny-0.1.2.tar.gz
| Download URL | muni_bench_ny-0.1.2.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
817b08035239e08a2166a0fb47340bc1433455a616c682e2ff2ab093d5c72dd8
|
|
BLAKE2b-256 checksum How to use checksums |
d6c1d64e0783c226f459a507a6a3be240d3a386b82625b1fa585674106c19968
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 31, 2026.
Transparency logRelease files / muni_bench_ny-0.1.2-py3-none-any.whl
| Download URL | muni_bench_ny-0.1.2-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4c192b298f0701da02a60977e0c0d0f68290195fa587a31f1e6f91a388ab83fd
|
|
BLAKE2b-256 checksum How to use checksums |
6b46f9841fd1f3cef415c5a8d3747fd8939298b23fe4a0f5a0476b0893e0ad68
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 31, 2026.
Transparency logSecurity for muni-bench-ny 0.1.2
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for muni_bench_ny-0.1.2.tar.gz
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 31, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.