{"id":30663354,"url":"https://github.com/policyengine/mortality","last_synced_at":"2025-08-31T17:10:31.092Z","repository":{"id":309280463,"uuid":"1035425924","full_name":"PolicyEngine/mortality","owner":"PolicyEngine","description":"Practical mortality calculations and projections for Python","archived":false,"fork":false,"pushed_at":"2025-08-10T11:25:35.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-27T20:31:50.607Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PolicyEngine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-08-10T11:25:34.000Z","updated_at":"2025-08-10T11:25:39.000Z","dependencies_parsed_at":"2025-08-11T01:30:26.422Z","dependency_job_id":"23332eda-d564-41b4-85f3-547480f9461a","html_url":"https://github.com/PolicyEngine/mortality","commit_stats":null,"previous_names":["policyengine/mortality"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PolicyEngine/mortality","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PolicyEngine%2Fmortality","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PolicyEngine%2Fmortality/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PolicyEngine%2Fmortality/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PolicyEngine%2Fmortality/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PolicyEngine","download_url":"https://codeload.github.com/PolicyEngine/mortality/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PolicyEngine%2Fmortality/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273010994,"owners_count":25030369,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-08-31T17:10:22.694Z","updated_at":"2025-08-31T17:10:31.084Z","avatar_url":"https://github.com/PolicyEngine.png","language":"Python","readme":"# mortality\n\nA practical Python package for mortality calculations and projections.\n\n## Installation\n\n```bash\npip install mortality\n```\n\n## Quick Start\n\n```python\nfrom mortality import Mortality\n\n# Simple: just age and gender\nmort = Mortality(gender=\"male\")\nprint(f\"Probability of death at 65: {mort.q(65):.3%}\")\nprint(f\"Life expectancy at 65: {mort.e(65):.1f} years\")\n\n# With personal factors\nfrom mortality import MortalityFactors\n\nmort = Mortality(\n    gender=\"female\",\n    factors=MortalityFactors(\n        health=\"good\",\n        income_percentile=75\n    )\n)\nprint(f\"Personalized life expectancy: {mort.e(65):.1f} years\")\n\n# Monte Carlo simulation\ndeath_ages = mort.simulate(age=65, n_sims=1000)\nprint(f\"Median death age: {np.median(death_ages):.1f}\")\n```\n\n## Features\n\n- 📊 **Simple API** - Start with just age and gender\n- 🎯 **Personal Factors** - Health, income, education, lifestyle\n- 📈 **Mortality Improvements** - Cohort projections built-in\n- 🎲 **Monte Carlo** - Fast simulation for financial planning\n- 📚 **Research-Based** - All adjustments cite peer-reviewed sources\n\n## Documentation\n\nSee [docs](docs/) for detailed documentation.\n\n## License\n\nMIT","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolicyengine%2Fmortality","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolicyengine%2Fmortality","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolicyengine%2Fmortality/lists"}