{"id":26920817,"url":"https://github.com/jon-edward/web_python","last_synced_at":"2025-04-01T22:48:41.725Z","repository":{"id":260772651,"uuid":"864672965","full_name":"jon-edward/web_python","owner":"jon-edward","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-02T13:12:50.000Z","size":135,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-02T14:19:17.034Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://jon.is-a.dev/web_python/","language":"TypeScript","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/jon-edward.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,"publiccode":null,"codemeta":null}},"created_at":"2024-09-28T21:07:10.000Z","updated_at":"2024-11-02T13:12:53.000Z","dependencies_parsed_at":"2024-11-02T14:19:20.216Z","dependency_job_id":"34cd8219-10a0-492b-9fc9-97185d43f3fb","html_url":"https://github.com/jon-edward/web_python","commit_stats":null,"previous_names":["jon-edward/web_python"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jon-edward%2Fweb_python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jon-edward%2Fweb_python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jon-edward%2Fweb_python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jon-edward%2Fweb_python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jon-edward","download_url":"https://codeload.github.com/jon-edward/web_python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246724801,"owners_count":20823544,"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":"2025-04-01T22:48:41.121Z","updated_at":"2025-04-01T22:48:41.715Z","avatar_url":"https://github.com/jon-edward.png","language":"TypeScript","readme":"# web_python\n\nThis is a browser-based Python interpreter (using\n[Pyodide](https://pyodide.org/en/stable/)) which allows the user to mount\na local project directory and run an entry point script from within the\ndirectory.\n\n![web_python UI](./img.png)\n\n## Building from source\n\n```bash\nnpm install\nnpm run build\n```\n\n## Notes\n\nMounting a local directory is currently only available in\n**Chromium-based browsers** (ie. Chrome, Edge), which means\nthis will likely not work on other browsers. Progress toward making this\nwidely available is on [MDN's Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemHandle/requestPermission).\n\nThe interpreter is run within a web worker, and stdout/stderr is handled\nthrough messages between the main running thread and the worker. This is\nconvenient for keeping the main thread open for UI, but makes print\noperations relatively slow; because of this, you may want to write logs to\na file instead of feeding it all to the console for large amounts of\nlogging.\n\nLines of `requirements.txt` (if it exists in the project\ndirectory) are fed directly to `micropip.install`, which\nallows for very simple package installation when a pure Python wheel is\navailable. See [packages built by Pyodide](https://pyodide.org/en/stable/usage/packages-in-pyodide.html)\nfor some common packages which don't have a pure Python wheel.\n\nStatic type checking is available using [mypy](https://mypy-lang.org/).\nThe site polls for changes to the project directory and\nfeeds mypy's report to a separate terminal panel. This can be disabled\nif desired.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjon-edward%2Fweb_python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjon-edward%2Fweb_python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjon-edward%2Fweb_python/lists"}