{"id":13475526,"url":"https://github.com/elilambnz/react-py","last_synced_at":"2025-03-27T00:31:31.132Z","repository":{"id":54309279,"uuid":"520074025","full_name":"elilambnz/react-py","owner":"elilambnz","description":"Effortlessly run Python code in your React apps.","archived":false,"fork":false,"pushed_at":"2024-04-29T07:36:12.000Z","size":8325,"stargazers_count":209,"open_issues_count":15,"forks_count":15,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-05-01T16:13:07.908Z","etag":null,"topics":["pyodide","python","react","repl"],"latest_commit_sha":null,"homepage":"https://elilambnz.github.io/react-py","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/elilambnz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","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":{"github":["elilambnz"]}},"created_at":"2022-08-01T11:01:25.000Z","updated_at":"2024-05-06T08:57:42.055Z","dependencies_parsed_at":"2024-01-13T18:28:14.463Z","dependency_job_id":"98103223-79f6-41cd-9d44-146f21e0b9eb","html_url":"https://github.com/elilambnz/react-py","commit_stats":{"total_commits":224,"total_committers":4,"mean_commits":56.0,"dds":0.5714285714285714,"last_synced_commit":"4a75264069407517b7c040db73083ded76c7b4d4"},"previous_names":[],"tags_count":60,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elilambnz%2Freact-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elilambnz%2Freact-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elilambnz%2Freact-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elilambnz%2Freact-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elilambnz","download_url":"https://codeload.github.com/elilambnz/react-py/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245760737,"owners_count":20667886,"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":["pyodide","python","react","repl"],"created_at":"2024-07-31T16:01:21.175Z","updated_at":"2025-03-27T00:31:30.838Z","avatar_url":"https://github.com/elilambnz.png","language":"TypeScript","funding_links":["https://github.com/sponsors/elilambnz"],"categories":["TypeScript"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://elilambnz.github.io/react-py\" target=\"_blank\"\u003e\n    \u003cimg src=\"./.github/logo.png\" alt=\"react-py logo\" width=\"70\" height=\"70\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  Effortlessly run Python code in your React apps.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/elilambnz/react-py/actions?query=workflow%3ACI+branch%3Amain\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/elilambnz/react-py/ci.yml?branch=main\u0026style=flat-square\u0026label=CI\" alt=\"CI\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/elilambnz/react-py/actions?query=workflow%3ACodeQL+branch%3Amain\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/elilambnz/react-py/codeql-analysis.yml?branch=main\u0026style=flat-square\u0026label=CodeQL\" alt=\"CodeQL\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/elilambnz/react-py/blob/main/LICENSE.md\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/react-py?style=flat-square\" alt=\"MIT License\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/react-py\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/react-py?style=flat-square\" alt=\"NPM Version\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://bundlephobia.com/package/react-py\"\u003e\u003cimg src=\"https://img.shields.io/bundlephobia/min/react-py?style=flat-square\" alt=\"NPM Bundle Size\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n## Try it out\n\nYou can try out `react-py` [in the playground](https://elilambnz.github.io/react-py/playground).\n\n## Quickstart\n\nInstall `react-py` with:\n\n```sh\nnpm install react-py\n```\n\nThen, wrap your app in a `PythonProvider` component.\n\n```tsx\nimport { PythonProvider } from 'react-py'\n\nfunction App() {\n  return (\n    // Add the provider to your app\n    \u003cPythonProvider\u003e\n      \u003cCodeblock /\u003e\n    \u003c/PythonProvider\u003e\n  )\n}\n\nrender(\u003cApp /\u003e, document.getElementById('root'))\n```\n\nUsing the `usePython` hook, you can run code and access both stdout and stderr. For full usage instructions and framework specific guides, see the [usage docs](https://elilambnz.github.io/react-py/docs/introduction/usage).\n\n## Documentation\n\nFor full documentation, visit [elilambnz.github.io/react-py](https://elilambnz.github.io/react-py).\n\n## Examples\n\n[Basic Example](https://elilambnz.github.io/react-py/docs/examples/basic-example)\n\n[REPL](https://elilambnz.github.io/react-py/docs/examples/repl)\n\n[Interrupting Execution](https://elilambnz.github.io/react-py/docs/examples/interrupting-execution)\n\n[Using Packages](https://elilambnz.github.io/react-py/docs/examples/using-packages)\n\n[File System](https://elilambnz.github.io/react-py/docs/examples/file-system)\n\n[Custom Modules](https://elilambnz.github.io/react-py/docs/examples/custom-modules)\n\n[Making API Calls](https://elilambnz.github.io/react-py/docs/examples/making-api-calls)\n\n[User Input](https://elilambnz.github.io/react-py/docs/examples/user-input)\n\n[Data Visualisation](https://elilambnz.github.io/react-py/docs/examples/data-visualisation)\n\n## Limitations\n\nMost of the Python standard library is functional, except from some modules. The following modules can be imported, but are not functional due to the limitations of the WebAssembly VM:\n\n- multiprocessing\n- threading\n- sockets\n\n[Learn more about the limitations here](https://pyodide.org/en/stable/usage/wasm-constraints.html).\n\n## License\n\n_react-py_ is available under the MIT License.\n\n## Maintainers\n\nEli Lamb - [elilambnz](https://github.com/elilambnz)  \nJames Ansley - [James-Ansley](https://github.com/James-Ansley)\n\n## Acknowledgments\n\nThis project uses [Pyodide](https://pyodide.org), a Python distribution for the browser and Node.js based on WebAssembly.\n\n## Contributing\n\nIf you're interested in contributing, please read our [contributing docs](https://github.com/elilambnz/react-py/blob/master/CONTRIBUTING.md) **before submitting a pull request**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felilambnz%2Freact-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felilambnz%2Freact-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felilambnz%2Freact-py/lists"}