{"id":29284451,"url":"https://github.com/denisecase/py-bill-utils","last_synced_at":"2026-05-07T17:36:57.664Z","repository":{"id":295846839,"uuid":"991385933","full_name":"denisecase/py-bill-utils","owner":"denisecase","description":"Python project for analyzing U.S. legislative bills. Reference project for adding high-performance Zig to Python projects.","archived":false,"fork":false,"pushed_at":"2025-05-30T17:15:03.000Z","size":2258,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-05T21:03:01.472Z","etag":null,"topics":["legislation","python","usa","utilities","zig"],"latest_commit_sha":null,"homepage":"https://github.com/denisecase/py-bill-utils/blob/main/notebooks/eda.ipynb","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/denisecase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-27T14:43:38.000Z","updated_at":"2025-05-30T17:15:07.000Z","dependencies_parsed_at":"2025-05-27T17:49:53.169Z","dependency_job_id":null,"html_url":"https://github.com/denisecase/py-bill-utils","commit_stats":null,"previous_names":["denisecase/py-bill-utils"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/denisecase/py-bill-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denisecase%2Fpy-bill-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denisecase%2Fpy-bill-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denisecase%2Fpy-bill-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denisecase%2Fpy-bill-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denisecase","download_url":"https://codeload.github.com/denisecase/py-bill-utils/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denisecase%2Fpy-bill-utils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32749099,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["legislation","python","usa","utilities","zig"],"created_at":"2025-07-05T21:02:18.964Z","updated_at":"2026-05-07T17:36:57.659Z","avatar_url":"https://github.com/denisecase.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# py-bill-utils\n\n[![Uses Zig](https://img.shields.io/badge/Uses-Zig-ec912d?logo=zig\u0026logoColor=white\u0026style=flat-square)](https://ziglang.org)\n\n\u003e Python project for analyzing U.S. legislative bills. Incorporates high-performance Zig utils for speedy processing.\n\n## Zig-Enhanced Python Project\n\nThis project integrates Zig executables for quickly analyzing U.S. legislative bills. \nThis project uses six Zig CLI tools:\n\n| Tool                | Description                                           |\n|---------------------|-------------------------------------------------------|\n| `clean_bill`        | Cleans bill text (removes line numbers, whitespace)   |\n| `extract_amendments`| Extracts amendments                                   |\n| `extract_headings`  | Extracts section headers (`TITLE`, `SEC.`)            |\n| `extract_money`     | Extracts funding amounts (e.g., `$5,000,000`)         |\n| `filter_keywords`   | Filters lines by keyword (listed in keywords.txt)     |\n| `split_sections`    | Splits full bill into files by section    \n\n## Add Bill Data\n\nResearch bills:\n\n- [Congress.gov](https://www.congress.gov/)\n  - [2025-hconres0014](https://www.congress.gov/bill/119th-congress/house-concurrent-resolution/14)\n\nCreate a data/billname folder (e.g. data/2025-hconres0014/) and using the website, add:\n  - bill.txt - paste the TXT version of the bill\n  - amendments.csv - paste this from the Congress.gov site\n  - keywords.txt - list keywords for that bill (and amendments)\n\n## Development: Python Workflow\n\nSee [pro-analytics-01](https://github.com/denisecase/pro-analytics-01/) for recommended workflow for a professional Python project.\n\n## Development: Python Dependencies\n\nCreate virtual environment (modify if not using Windows PowerShell):\n\n```shell\npy -m venv .venv\n.\\.venv\\Scripts\\activate\npy -m pip install --upgrade pip setuptools wheel\npy -m pip install --upgrade -r requirements.txt --timeout 100\n```\n\n## Development: Zig Dependencies\n\nList required Zig executables in `requirements-zig.txt`. Install them into `zig-out` with:\n\n```shell\npy zig-install-requirements.py\n```\n\n## Generate Bill Output Files\n\nCopy these two files from [zig-bill-utils](https://github.com/denisecase/zig-bill-utils):\n- zig-bill-utils-run.ps1\n- zig-version.txt\n\n\nRun pipeline on each `data/billname` folder in this repo:\n\n```pwsh\n./zig-bill-utils-run.ps1\n```\n\n\n## License\n\nMIT License © 2025 Denise Case\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenisecase%2Fpy-bill-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenisecase%2Fpy-bill-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenisecase%2Fpy-bill-utils/lists"}