{"id":16282557,"url":"https://github.com/thomasballinger/endless-sky-bindings-python","last_synced_at":"2026-01-23T07:35:00.709Z","repository":{"id":46813705,"uuid":"402100328","full_name":"thomasballinger/endless-sky-bindings-python","owner":"thomasballinger","description":null,"archived":false,"fork":false,"pushed_at":"2021-09-26T18:16:17.000Z","size":132998,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-14T17:46:02.545Z","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/thomasballinger.png","metadata":{"files":{"readme":"README.md","changelog":"changelog","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-01T14:56:44.000Z","updated_at":"2023-10-28T17:39:10.000Z","dependencies_parsed_at":"2022-09-06T23:11:11.728Z","dependency_job_id":null,"html_url":"https://github.com/thomasballinger/endless-sky-bindings-python","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/thomasballinger/endless-sky-bindings-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasballinger%2Fendless-sky-bindings-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasballinger%2Fendless-sky-bindings-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasballinger%2Fendless-sky-bindings-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasballinger%2Fendless-sky-bindings-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thomasballinger","download_url":"https://codeload.github.com/thomasballinger/endless-sky-bindings-python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasballinger%2Fendless-sky-bindings-python/sbom","scorecard":{"id":882236,"data":{"date":"2025-08-11","repo":{"name":"github.com/thomasballinger/endless-sky-bindings-python","commit":"919a2fab35b2d89cb372ae8ccf72aa210858e84e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/27 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/pip.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pip.yml:213: update your workflow using https://app.stepsecurity.io/secureworkflow/thomasballinger/endless-sky-bindings-python/pip.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pip.yml:218: update your workflow using https://app.stepsecurity.io/secureworkflow/thomasballinger/endless-sky-bindings-python/pip.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pip.yml:238: update your workflow using https://app.stepsecurity.io/secureworkflow/thomasballinger/endless-sky-bindings-python/pip.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pip.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/thomasballinger/endless-sky-bindings-python/pip.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pip.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/thomasballinger/endless-sky-bindings-python/pip.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pip.yml:90: update your workflow using https://app.stepsecurity.io/secureworkflow/thomasballinger/endless-sky-bindings-python/pip.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pip.yml:108: update your workflow using https://app.stepsecurity.io/secureworkflow/thomasballinger/endless-sky-bindings-python/pip.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pip.yml:119: update your workflow using https://app.stepsecurity.io/secureworkflow/thomasballinger/endless-sky-bindings-python/pip.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pip.yml:129: update your workflow using https://app.stepsecurity.io/secureworkflow/thomasballinger/endless-sky-bindings-python/pip.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pip.yml:139: update your workflow using https://app.stepsecurity.io/secureworkflow/thomasballinger/endless-sky-bindings-python/pip.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pip.yml:148: update your workflow using https://app.stepsecurity.io/secureworkflow/thomasballinger/endless-sky-bindings-python/pip.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pip.yml:156: update your workflow using https://app.stepsecurity.io/secureworkflow/thomasballinger/endless-sky-bindings-python/pip.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pip.yml:174: update your workflow using https://app.stepsecurity.io/secureworkflow/thomasballinger/endless-sky-bindings-python/pip.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pip.yml:185: update your workflow using https://app.stepsecurity.io/secureworkflow/thomasballinger/endless-sky-bindings-python/pip.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pip.yml:187: update your workflow using https://app.stepsecurity.io/secureworkflow/thomasballinger/endless-sky-bindings-python/pip.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pip.yml:192: update your workflow using https://app.stepsecurity.io/secureworkflow/thomasballinger/endless-sky-bindings-python/pip.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/pip.yml:84","Warn: pipCommand not pinned by hash: .github/workflows/pip.yml:135","Warn: pipCommand not pinned by hash: .github/workflows/pip.yml:136","Warn: pipCommand not pinned by hash: .github/workflows/pip.yml:224","Warn: pipCommand not pinned by hash: .github/workflows/pip.yml:228","Warn: pipCommand not pinned by hash: .github/workflows/pip.yml:232","Warn: pipCommand not pinned by hash: .github/workflows/pip.yml:237","Info:   0 out of  14 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   1 out of   8 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'","Warn: branch protection not enabled for branch 'fix-permissions'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-24T08:38:32.270Z","repository_id":46813705,"created_at":"2025-08-24T08:38:32.270Z","updated_at":"2025-08-24T08:38:32.270Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28683479,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T05:48:07.525Z","status":"ssl_error","status_checked_at":"2026-01-23T05:48:07.129Z","response_time":59,"last_error":"SSL_read: 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":[],"created_at":"2024-10-10T19:11:04.044Z","updated_at":"2026-01-23T07:35:00.691Z","avatar_url":"https://github.com/thomasballinger.png","language":"Python","readme":"# Endless Sky bindings for Python\n\nPlay with the Endless Sky C++ classes from Python or interact with the game as it runs.\n\n    pip install endless-sky-bindings\n\nThis library does not include the Endless Sky data, so to load that data you'll need to find the installed copy on your system or clone the [Endless Sky repo](https://github.com/endless-sky/endless-sky) to get it. The code samples below assume a checkout of endless-sky at ~/endless-sky.\n\nSee also [JavaScript bindings](https://github.com/thomasballinger/endless-sky-bindings) for working with Endless Sky objects in node or on the web.\n\n## Library\n\nOnce you get a handle on the endless_sky.bindings module (bound to 'es' variable here),\nC++ classes are exposed to Python pretty directly; for documentation, see\n[the header files in Endless Sky](https://github.com/endless-sky/endless-sky/tree/master/source).\n\n```\n\u003e\u003e\u003e from endless_sky.loader import load_data\n\u003e\u003e\u003e es = load_data(resources=\"/Users/tomb/endless-sky\")\n\u003e\u003e\u003e ships = es.GameData.Ships() # these objects correspond to \n\u003e\u003e\u003e ships.\u003ctab\u003e\u003ctab\u003e\nships.Get(   ships.Has(   ships.size(\n\u003e\u003e\u003e shuttle = ships.Get(\"Shuttle\")\n\u003cendless_sky.bindings.Ship object at 0x1087391b0\u003e\n\u003e\u003e\u003e ship = es.Ship(shuttle)  # make a copy to avoid modifying the template\n\u003e\u003e\u003e ship.\u003ctab\u003e\u003ctab\u003e\nship.Acceleration(          ship.Hull(                  ship.Mass(\nship.AddCrew(               ship.HyperdriveFuel(        ship.MaxReverseVelocity(\nship.Attributes(            ship.IdleHeat(              ship.MaxVelocity(\nship.BaseAttributes(        ship.IsBoarding(            ship.MaximumHeat(\n... and many more, see header files for documentation\n\u003e\u003e\u003e ship.Attributes().Attributes()\n\u003cendless_sky.bindings.Dictionary object at 0x1087392f0\u003e\n\u003e\u003e\u003e dict(ship.Attributes().Attributes())\n{'bunks': 6.0, 'cargo space': 20.0, 'drag': 1.7000000000000002, ...}\n\u003e\u003e\u003e ship.SetName(\"Summer Breeze\")\n\u003e\u003e\u003e x.Name()\n'Summer Breeze'\n```\n\nWarning: endless_sky.bindings contains non-resetable singletons like GameData, so once you load some data (directly with GameData.BeginLoad(), with a load_data, or indirectly with a parser function) you can't unload that data without exiting Python.\n\n## Command line use\n\nLoading data files:\n```\n% echo -e 'ship Rocket\\n\\tattributes\\n\\t\\tdrag 10' \u003e myData.txt\n$ python -m endless_sky load --empty-resources myData.txt  # only prints ships atm\n'Rocket': {'drag': 10.0, 'gun ports': 0.0, 'turret mounts': 0.0},\n$ python -m endless_sky load -- --resources ~/endless-sky\n{'Aerie': {'bunks': 28.0,\n           'capture attack': 1.8000000000000003,\n           'capture defense': 2.4000000000000004,\n           'cargo space': 50.0,\n...\n$ # In order to parse a file with vanilla outfits defined, use --resources\n$ python -m endless_sky load --resources ~/endless-sky myData.txt\n{'Aerie': {'bunks': 28.0,\n...\n\u003c'Rocket' is somewhere in here\u003e\n...\n```\n\nRuning the game and a Python interpreter at the same time:\n```\n$ python -m endless_sky run --resources ~/endless-sky --default-config\n```\n\n# Building from source\n\n```\ngit clone --recursive git@github.com:thomasballinger/endless-sky-bindings-python.git\ncd endless-sky-bindings-python\n```\n\n---\n\nMac\n```\nbrew install libmad libpng jpeg-turbo SDL2 openal-soft\n```\n\nLinux\n```\nsudo apt-get install libsdl2-dev libpng-dev libjpeg-turbo8-dev libopenal-dev libmad0-dev libglew-dev libgl1-mesa-dev libegl1-mesa-dev libgles2-mesa-dev uuid-dev\n```\n\nWindows\n```\nInvoke-WebRequest https://endless-sky.github.io/win64-dev.zip -OutFile win64-dev.zip\nExpand-Archive win64-dev.zip -DestinationPath . -Force\nRemove-Item win64-dev.zip\n```\n\n---\n\n```\ncd endless_sky/endless-sky\npatch -p1 \u003c ../../patch.diff\ncd ../..\npip install \n```\n\n# Dev notes\n\n## Updating the Endless Sky patch\n\nThese bindings use a patched version of Endless Sky to patch out threads and make a few other changes.\n\nTo update the patch:\n\n- make changes in the submodule at endless_sky/endless-sky\n- with that directory as the working directory, run `git diff \u003e ../../patch.diff`\n\nThis is likely to be necessary after updating the version of Endless Sky used.\n\nThis patch is intended to be the minimum to make Python bindings work; if this repo is combined with Emscripten-compiled JavaScript bindings at a later date it will need to be expanded.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomasballinger%2Fendless-sky-bindings-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomasballinger%2Fendless-sky-bindings-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomasballinger%2Fendless-sky-bindings-python/lists"}