{"id":19740357,"url":"https://github.com/distributive-network/pythonmonkey-examples","last_synced_at":"2025-04-30T05:32:50.436Z","repository":{"id":178789330,"uuid":"659249066","full_name":"Distributive-Network/pythonmonkey-examples","owner":"Distributive-Network","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-23T18:47:42.000Z","size":22,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-04-25T00:28:29.172Z","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/Distributive-Network.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-06-27T12:38:07.000Z","updated_at":"2024-04-23T18:47:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"e929d440-5ae9-4526-99bd-b692e2add3a5","html_url":"https://github.com/Distributive-Network/pythonmonkey-examples","commit_stats":null,"previous_names":["distributive-network/pythonmonkey-examples"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Distributive-Network%2Fpythonmonkey-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Distributive-Network%2Fpythonmonkey-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Distributive-Network%2Fpythonmonkey-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Distributive-Network%2Fpythonmonkey-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Distributive-Network","download_url":"https://codeload.github.com/Distributive-Network/pythonmonkey-examples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224199328,"owners_count":17272264,"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":"2024-11-12T01:20:43.650Z","updated_at":"2024-11-12T01:20:44.161Z","avatar_url":"https://github.com/Distributive-Network.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PythonMonkey Examples\n\n## What is PythonMonkey\n[PythonMonkey](https://pythonmonkey.io/) is a Python library for executing JavaScript in Python\nand executing Python in JavaScript. It uses [Mozilla's SpiderMonkey](https://firefox-source-docs.mozilla.org/js/index.html)\nJavaScript Engine and shares memory with Python for fast execution.\n\nCheck out [PythonMonkey on GitHub](https://github.com/Distributive-Network/PythonMonkey#pythonmonkey)!\n\n## Installation\n- requires Python 3.8 or higher\n```bash\npip install pythonmonkey\n```\n\n## Running Examples\n- Run the examples via `python3`. Refer to the README.md files in each of the directories for more information.\n\n## Examples:\n- `hello-world-eval.py`\n  - A \"Hello, World\" which evaluates a string in JavaScript\n  - Run with `python3 hello-world-eval.py`\n- `function-call-eval.py`\n  - Calling a JavaScript function in Python\n  - Run with `python3 function-call-eval.py`\n- `function-passing-eval.py`\n  - Calling a Python function in a JavaScript function from Python\n  - Run with `python3 function-passing-eval.py`\n- `require-js-file-from-py/`\n  - Loading a JavaScript module from Python\n- `require-py-file-from-js/`\n  - Loading a Python module from JavaScript\n- `require-npm-package-from-py/`\n  - Using an NPM package directly from Python\n- `require-npm-packages/`\n  - Calling JavaScript code that uses NPM modules\n- `load-wasm-from-py/`\n  - Loading a WebAssembly module in Python and calling WASM function\n- `promises/`\n  - Using JavaScript promises in Python\n\n## Fullstack Example using CryptoJS\nFor a more in depth example using the CryptoJS NPM package, refer to [https://github.com/Distributive-Network/PythonMonkey-Crypto-JS-Fullstack-Example](https://github.com/Distributive-Network/PythonMonkey-Crypto-JS-Fullstack-Example/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdistributive-network%2Fpythonmonkey-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdistributive-network%2Fpythonmonkey-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdistributive-network%2Fpythonmonkey-examples/lists"}