{"id":17190883,"url":"https://github.com/dfm/kepler.py","last_synced_at":"2025-04-13T19:51:35.649Z","repository":{"id":49387243,"uuid":"274433037","full_name":"dfm/kepler.py","owner":"dfm","description":"Fast and stable solver for Kepler's equation in Python","archived":false,"fork":false,"pushed_at":"2022-09-23T00:06:48.000Z","size":44,"stargazers_count":17,"open_issues_count":6,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-09T02:41:38.602Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dfm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-23T14:51:05.000Z","updated_at":"2025-02-02T20:02:55.000Z","dependencies_parsed_at":"2023-01-18T20:01:24.821Z","dependency_job_id":null,"html_url":"https://github.com/dfm/kepler.py","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfm%2Fkepler.py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfm%2Fkepler.py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfm%2Fkepler.py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfm%2Fkepler.py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dfm","download_url":"https://codeload.github.com/dfm/kepler.py/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248773812,"owners_count":21159519,"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","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":"2024-10-15T01:24:14.566Z","updated_at":"2025-04-13T19:51:35.622Z","avatar_url":"https://github.com/dfm.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Fast and stable solver for Kepler's equation extracted from [exoplanet](https://docs.exoplanet.codes).\r\n\r\n## Installation\r\n\r\nThe best way to install is using pip:\r\n\r\n```bash\r\npython -m pip install kepler.py\r\n```\r\n\r\n## Usage\r\n\r\nThis package exposes two functions:\r\n\r\n* `kepler`: Solves Kepler's equation and returns the cosine and sine of the true anomaly:\r\n\r\n```python\r\nimport kepler\r\neccentric_anomaly, cos_true_anomaly, sin_true_anomaly = kepler.kepler(mean_anomaly, eccentricity)\r\n```\r\n\r\n* `solve`: A lower-level interface that is used by `kepler` to actually do the solving (*Note that this will return garbage for eccentricities out of the range zero to one*):\r\n\r\n```python\r\nimport kepler\r\neccentric_anomaly = kepler.solve(mean_anomaly, eccentricity)\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfm%2Fkepler.py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdfm%2Fkepler.py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfm%2Fkepler.py/lists"}