{"id":17690362,"url":"https://github.com/hughperkins/peaceful-pie","last_synced_at":"2025-08-24T23:32:21.540Z","repository":{"id":65255941,"uuid":"583283195","full_name":"hughperkins/peaceful-pie","owner":"hughperkins","description":"Control Unity from Python! Use for reinforcement learning.","archived":false,"fork":false,"pushed_at":"2024-06-21T06:07:23.000Z","size":3316,"stargazers_count":28,"open_issues_count":0,"forks_count":6,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-10-25T06:04:28.877Z","etag":null,"topics":["python","reinforcement-learning","unity"],"latest_commit_sha":null,"homepage":"","language":"C#","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/hughperkins.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"buy_me_a_coffee":"rlhugh"}},"created_at":"2022-12-29T10:08:17.000Z","updated_at":"2024-10-14T00:55:20.000Z","dependencies_parsed_at":"2024-01-13T00:38:14.757Z","dependency_job_id":"32857dab-1273-4631-bb85-ebce35046f86","html_url":"https://github.com/hughperkins/peaceful-pie","commit_stats":{"total_commits":135,"total_committers":1,"mean_commits":135.0,"dds":0.0,"last_synced_commit":"8a25fffbbd91a36297a4d9e9cec7a039317575f5"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hughperkins%2Fpeaceful-pie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hughperkins%2Fpeaceful-pie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hughperkins%2Fpeaceful-pie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hughperkins%2Fpeaceful-pie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hughperkins","download_url":"https://codeload.github.com/hughperkins/peaceful-pie/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230851832,"owners_count":18290007,"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":["python","reinforcement-learning","unity"],"created_at":"2024-10-24T11:50:42.514Z","updated_at":"2024-12-22T15:39:08.012Z","avatar_url":"https://github.com/hughperkins.png","language":"C#","funding_links":["https://buymeacoffee.com/rlhugh"],"categories":[],"sub_categories":[],"readme":"# Peaceful Pie\n\nConnect Python with Unity for reinforcement learning!\n\nVideo:\n\n[![Control Unity from Python WITHOUT mlagents](http://img.youtube.com/vi/RW8S8DhA_DI/0.jpg)](https://youtu.be/RW8S8DhA_DI)\n\n# CI\n\n[![CircleCI](https://dl.circleci.com/status-badge/img/gh/hughperkins/peaceful-pie/tree/main.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/hughperkins/peaceful-pie/tree/main)\n\n# Examples\n\n- see [examples](examples)\n\n# Installation\n\nYou need to install both into Unity project, and into your Python environment.\n\n## In Unity\n\n- In Unity, go to Window | Package Manager\n    - change the dropdown in top left to 'Packages: In Project'\n    - check that Newtonsoft Json appears\n    - if Newtonsoft Json is not already in your project:\n        - click on the '+' in the top left, and choose 'Add package by name...'\n        - put the name `com.unity.nuget.newtonsoft-json`, then click 'Add'\n- In Unity, in your project's \"Assets\" folder, create a \"Plugins\" folder, if it doesn't already exist\n- First install AustinHarris.JsonRPC:\n    - Download https://www.nuget.org/api/v2/package/AustinHarris.JsonRpc/1.2.3\n    - rename to have filename suffix be `.zip` (you might need to turn on options to see all file extensions)\n    - unzip the resulting zip file\n    - copy `lib/netstandard2.1/AustinHarris.JsonRpc.dll` into your `Plugins` folder\n    - select the file, in your Plugins, and in 'Inspector' unselect 'validate references', and click 'Apply'\n- Click on 'Releases', on the right of the github page\n    - in the most recent release, download `PeacefulPie.dll`\n- Copy `PeacefulPie.dll` into your Unity project's `Plugins` folder\n- If on Mac silicon:\n    - in Unity, goto Plugins, click on `PeacefulPie.dll`\n    - in Inspector, change 'CPU' setting from 'Intel' to 'Any CPU', then click 'Apply'\n    - do the same for `AustinHarris.JsonRpc.dll`\n\nYou should be good to go :)\n\n## In Python\n\n```\npip install -U peaceful-pie\n```\n\n# Requirements\n\n- currently tested with:\n    - python 3.10\n    - Unity 2021.3.16.f1\n- support Python version: \u003e=3.8.0, \u003c4.0.0\n- please create an issue if your preferred platform is not supported (I'm guessing I might need to downgrade Python a little? Let me know!)\n\n# Dev\n\nI'm usng Visual Studio for Mac to write this.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhughperkins%2Fpeaceful-pie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhughperkins%2Fpeaceful-pie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhughperkins%2Fpeaceful-pie/lists"}