{"id":13701469,"url":"https://github.com/patrickmoffitt/python-example","last_synced_at":"2025-05-04T21:30:57.904Z","repository":{"id":71876564,"uuid":"93877030","full_name":"patrickmoffitt/python-example","owner":"patrickmoffitt","description":"How to Build an Electron GUI for a Python Module","archived":true,"fork":false,"pushed_at":"2020-12-13T19:17:21.000Z","size":775,"stargazers_count":107,"open_issues_count":0,"forks_count":5,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-30T08:56:30.915Z","etag":null,"topics":["electron","gui","python"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/patrickmoffitt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2017-06-09T16:22:33.000Z","updated_at":"2024-12-18T04:58:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"55432de9-c2d8-4445-9151-ade1a1e735e1","html_url":"https://github.com/patrickmoffitt/python-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickmoffitt%2Fpython-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickmoffitt%2Fpython-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickmoffitt%2Fpython-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickmoffitt%2Fpython-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patrickmoffitt","download_url":"https://codeload.github.com/patrickmoffitt/python-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252403810,"owners_count":21742445,"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":["electron","gui","python"],"created_at":"2024-08-02T20:01:40.333Z","updated_at":"2025-05-04T21:30:57.187Z","avatar_url":"https://github.com/patrickmoffitt.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"![Logo](app/img/electron-python-logo.png)\nHow to Build an Electron GUI for a Python Module\n------------------------------------------------\n\nThis project demonstrates how to display the output of a Python module in Electron. The demonstration code performs the following features across platforms \u003csup id=\"a1\"\u003e[1](#f1)\u003c/sup\u003e:\n\n- Detect if Python 3+ is installed\n- Detect if application specific Python module dependencies are installed\n- List installed, top-level, Python modules in an Electron BrowserWindow\n\nSeptember 2020 Update\n---------------------\n- Revised the Python code to version 3.8 best practices.\n- Revised the Electron code to version 10.1\n- Tested the project on Mac OS 10.15, Ubuntu 20.04, and Windows 10.\n\nQuick Code Tour\n---------------\n- The code entry point is in **package.json** under the key \"main\". The value is \"main.js\"\n- **main.js** creates a BrowserWindow and loads **index.html**.\n- **index.html** displays a button to click to get a list of top-level Python modules and loads **renderer.js**.\n- **renderer.js** loads jQuery and provides an event handler for the button. It also checks for Python 3+ and dependencies. On Win32 it also unpacks it's Python modules from the Electron Asar and places them in app.getPath('userData'). See controller.initPythonWin32() for more.\n\nAnimated Screenshot\n-------------------\n ![Demo](screenshots/demo.gif)\n\n\u003cb id=\"f1\"\u003e1\u003c/b\u003e Tested on Mac OS 10.15, Ubuntu 20.04, and Windows 10[↩](#a1)\n\nProject Status\n--------------\nThis project has been archived and is no longer being maintained by the author.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickmoffitt%2Fpython-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrickmoffitt%2Fpython-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickmoffitt%2Fpython-example/lists"}