Skip to main content

Reproducible construction and auditing of social accounting matrices from official statistics

Project description

Toolkit

edikit — a Python package for reproducible construction and auditing of national social accounting matrices from official statistics. Modules exist only when a paper needed them — nothing is built speculatively.

Implemented modules

Module Role
edikit.data source readers with accounting-identity checks on ingestion (SUT workbooks, SAM matrices, central-bank series, Eurostat JSON-stat, concordances)
edikit.model account taxonomy with coverage assertions; RAS and GRAS (negative-tolerant) balancing with per-cell factor diagnostics
edikit.report Excel workbooks whose totals and balance checks are live formulas
edikit.pipeline end-to-end generation (eurostat_sam, for covered ESA country-years — see recipes/build/COVERAGE.md) and auditing (audit)

Roadmap stubs (empty packages, not yet implemented)

edikit.forecast (vintage logging, later P006), edikit.benchmark (P002 — rankings with uncertainty bands), edikit.decide (P005+ — scenario comparison). They gain content only when a paper needs them.

Recipes

recipes/ holds the three user-facing entry points, one per use case, all thin scripts over the same library (see recipes/README.md):

  • recipes/replicate/ — regenerate every number in the P001 paper.
  • recipes/audit/ — audit a published SAM: structure, then macro controls (python audit_sam.py --sam matrix.csv ...); Kenya is the committed worked example.
  • recipes/build/ — generate a validated macro SAM for covered ESA country-years in one command (python build_sam.py --country AT --year 2019; see recipes/build/COVERAGE.md for which country-years the datasets support), with the adaptation guide for countries outside the Eurostat universe.

Rules

  • Logic lives here; paper folders keep only thin wrapper scripts and configuration.
  • Every module ships with tests (accounting identities are test cases, not comments).
  • Public API changes get a line in the changelog once anything external depends on this.

Development

cd toolkit
pip install -e ".[dev]"
pytest

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

edikit-0.2.5.tar.gz (58.2 kB view details)

Uploaded Source

Built Distribution

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

edikit-0.2.5-py3-none-any.whl (44.7 kB view details)

Uploaded Python 3

File details

Details for the file edikit-0.2.5.tar.gz.

File metadata

  • Download URL: edikit-0.2.5.tar.gz
  • Upload date:
  • Size: 58.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for edikit-0.2.5.tar.gz
Algorithm Hash digest
SHA256 fe7c236d4d98b6e0bdd2d4ebc12121c376bf0fb50f4e69529a7018bafbfa3da0
MD5 266c8cf5f296fe80b406316186a2505c
BLAKE2b-256 d8fcd06fb9b934d3fdee3036b02714abf7b589a5f210cf813b9059dba627e756

See more details on using hashes here.

File details

Details for the file edikit-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: edikit-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 44.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for edikit-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f3c6fa3a61aa2a121bb264fc3560d17c9686a88f0c1ccec22f69aa1661e36a7e
MD5 da059c9a10028fe46617ac6d35071637
BLAKE2b-256 f26166423084304a0c549dcc5f0a93287fae88eb5e5e87c9f667ea6e20cfc954

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page