{"id":26295576,"url":"https://github.com/malciin/nanoarch.py","last_synced_at":"2025-03-15T04:14:26.973Z","repository":{"id":282407147,"uuid":"948482551","full_name":"malciin/nanoarch.py","owner":"malciin","description":"Minimal working example of using libretro cores from python","archived":false,"fork":false,"pushed_at":"2025-03-14T12:36:10.000Z","size":486,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T13:36:27.930Z","etag":null,"topics":["libretro","libretro-frontend","python"],"latest_commit_sha":null,"homepage":"","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/malciin.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}},"created_at":"2025-03-14T12:18:29.000Z","updated_at":"2025-03-14T12:36:13.000Z","dependencies_parsed_at":"2025-03-14T13:36:30.705Z","dependency_job_id":"9bc0e2d0-4073-467c-a050-cd06b41b569b","html_url":"https://github.com/malciin/nanoarch.py","commit_stats":null,"previous_names":["malciin/nanoarch.py"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malciin%2Fnanoarch.py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malciin%2Fnanoarch.py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malciin%2Fnanoarch.py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malciin%2Fnanoarch.py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/malciin","download_url":"https://codeload.github.com/malciin/nanoarch.py/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243681077,"owners_count":20330155,"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":["libretro","libretro-frontend","python"],"created_at":"2025-03-15T04:14:26.400Z","updated_at":"2025-03-15T04:14:26.962Z","avatar_url":"https://github.com/malciin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nanoarch.py\n\nA minimal working example of using a libretro core in Python based on \u003ca href=\"https://github.com/heuripedes/nanoarch/blob/master/nanoarch.c\"\u003enanoarch.c\u003c/a\u003e.\n\n\u003cimg src=\"./result.gif\" /\u003e\n\n### How to run\n\n(tested on windows, linux would require slight changes - .dll -\u003e .so etc)\n\nInstall requirements from `requirements.txt` (`pip install -r requirements.txt`)\n\nFetch `sameboy_librertro` core from https://buildbot.libretro.com/nightly/windows/x86_64/latest/sameboy_libretro.dll.zip and extract it inside the same directory as main.py\n\nRun `main.py`\n\n### Whats working\n\n- initializing libretro\n- rendering gameboy frames inside SDL2 as a texture\n- inputs for gameboy:\n\n  | Keyboard | Gameboy |\n  |----------|---------|\n  | Left | Dpad Left |\n  | Right | Dpad Right |\n  | Up | Dpad Up |\n  | Down | Dpad Down |\n  | Z | A |\n  | X | B |\n  | ENTER | START |\n  | BACKSPACE | SELECT |\n\n- inmemory state serialization (`S` key) \u0026 deserialization (`D` key).\n\n### Whats not working\n\n- Support for cores other than Game Boy due to hardcoded resolution, pixel format \u0026 controls (easy to modify - call `retro_get_system_av_info` and use its information)\n\n- Audio\n\nLeaving it as is to keep code minimal, feel free to implement these in your own projects\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalciin%2Fnanoarch.py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmalciin%2Fnanoarch.py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalciin%2Fnanoarch.py/lists"}