{"id":20621947,"url":"https://github.com/jennasys/pyreact-tools","last_synced_at":"2025-08-02T22:08:09.574Z","repository":{"id":184143452,"uuid":"671379842","full_name":"JennaSys/pyreact-tools","owner":"JennaSys","description":"Miscellaneous tools for creating React applications with Python using the Transcrypt transpiler","archived":false,"fork":false,"pushed_at":"2023-08-01T05:45:06.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-21T02:50:31.927Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/JennaSys.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}},"created_at":"2023-07-27T07:27:53.000Z","updated_at":"2023-07-27T07:28:55.000Z","dependencies_parsed_at":"2023-07-27T08:53:25.065Z","dependency_job_id":null,"html_url":"https://github.com/JennaSys/pyreact-tools","commit_stats":null,"previous_names":["jennasys/pyreact-tools"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JennaSys/pyreact-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JennaSys%2Fpyreact-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JennaSys%2Fpyreact-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JennaSys%2Fpyreact-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JennaSys%2Fpyreact-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JennaSys","download_url":"https://codeload.github.com/JennaSys/pyreact-tools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JennaSys%2Fpyreact-tools/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268464887,"owners_count":24254199,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2024-11-16T12:19:53.710Z","updated_at":"2025-08-02T22:08:09.525Z","avatar_url":"https://github.com/JennaSys.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyReact Tools\n\n## [jsxtopy](https://github.com/JennaSys/pyreact-tools/blob/main/jsxtopy.py)\n### Converts a JSX fragment to a Python function equivalent\nWhen copying JSX example code from somewhere to use in my React Python projects, I got tired of having to manually convert JSX code to Python functions with dictionary attributes and having to manually quote everything. So I created this function that will (mostly) do it for me.\n\nFor example, this JSX code:\n```jsx\n\u003cdiv id=\"root\"\u003e\u003cButton radius=\"md\" size=\"lg\" compact uppercase\u003eSettings\u003c/Button\u003e\u003c/div\u003e\n```\nwill get converted to this Python code:\n```python\nDiv({'id': 'root'},\n    Button({'radius': 'md', 'size': 'lg', 'compact': True, 'uppercase': True}, \"Settings\")\n)\n```\n\n## Installation:\n```bash\npip install git+https://github.com/JennaSys/pyreact-tools\n```\n\n## Usage:\n```text\nusage: jsxtopy [-h] [-v] [-d] [--test] [--dev] [jsx]\n\nConverts a JSX fragment to a Python function equivalent\n\npositional arguments:\n  jsx            JSX string to convert (If not supplied, will try to use what is in clipboard)\n\noptional arguments:\n  -h, --help     show this help message and exit\n  -v, --verbose  Print original JSX and Python result to console\n  -d, --dict     Create props as dict function instead of dict literal\n  --test         Run JSX unit tests\n  --dev          Run JSX development test\n```\n\n## Resources\n- https://pyreact.com\n- https://www.transcrypt.org","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjennasys%2Fpyreact-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjennasys%2Fpyreact-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjennasys%2Fpyreact-tools/lists"}