Library / Skill
Calculate the share of seats held by women in elected bodies
baltor_women_representation_share
Calculate the share of seats held by women in declared parliamentary or local government bodies from seat counts, checking that members, vacancies and statutory seats reconcile and keeping elected and appointed seats apart.
LICENSE1.0 KBSKILL.md4.4 KBcontracts/input.schema.json2.7 KBcontracts/output.schema.json10.3 KBexamples/example.expected.json3.5 KBexamples/example.input.json1.2 KBreferences/provenance.json4.8 KBscripts/tool.py8.7 KBverification/test_tool.py11.0 KB
Full files in your harness.
What it takes and gives
- Command
python3 -B scripts/tool.py < examples/example.input.json- Input fields
- as_of, target_share_pct, bodies
- Test
python3 -B -m unittest discover -s verification -p 'test_*.py' -v- Files
- SKILL.md, contracts/input.schema.json, contracts/output.schema.json, scripts/tool.py
- Placed for
- OpenCode
Limits and scope
- Limits
- This is a supporting calculation for SDG target 5.5 on caller-supplied seat counts, not an official estimate of indicator 5.5.1. It does not collect or verify membership data, distinguish seats changing during a term, weight bodies by population, or decide which local bodies count as deliberative local government; those choices belong to the caller.
Details
- Kind
- Skill
- Licence
- MIT
- Declared effects
- reads files, runs commands
- Placed for
- OpenCode
- Source
- docs/architecture/NORTH-STAR.md
- Size
- 9 files, 47.7 KB
- Identity
baltor_women_representation_share- Version
322a61216b8937ed56b8abc9f25a9aa4186cb1f82b1375ee3521ef6e01a49a27
The version is the SHA-256 of the item your harness downloads; every file in it names its own checksum.
Where it is shown
- Calculators for public statisticsDeterministic skills
Related components
Something wrong with this item, its rights or its safety? Report it on the support page, or from your harness after a download.