{"id":15660456,"url":"https://github.com/healeycodes/talking-between-python-and-js","last_synced_at":"2025-05-05T21:12:00.086Z","repository":{"id":112378235,"uuid":"180768421","full_name":"healeycodes/talking-between-python-and-js","owner":"healeycodes","description":"Talking to Python from JavaScript (and Back Again!)","archived":false,"fork":false,"pushed_at":"2020-09-21T12:06:30.000Z","size":31,"stargazers_count":20,"open_issues_count":2,"forks_count":28,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-05T21:11:54.480Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://healeycodes.com/javascript/python/beginners/webdev/2019/04/11/talking-between-languages.html","language":"Python","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/healeycodes.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":"2019-04-11T10:23:40.000Z","updated_at":"2024-04-02T17:40:52.000Z","dependencies_parsed_at":"2023-05-14T04:00:20.725Z","dependency_job_id":null,"html_url":"https://github.com/healeycodes/talking-between-python-and-js","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/healeycodes%2Ftalking-between-python-and-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Ftalking-between-python-and-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Ftalking-between-python-and-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Ftalking-between-python-and-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/healeycodes","download_url":"https://codeload.github.com/healeycodes/talking-between-python-and-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252577020,"owners_count":21770721,"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-10-03T13:21:47.737Z","updated_at":"2025-05-05T21:12:00.047Z","avatar_url":"https://github.com/healeycodes.png","language":"Python","readme":"# Talking to Python from JavaScript (and Back Again!)\n\nThis repository contains the tutorial code for my article on communicating between Python and JavaScript.\n\n\u003cbr\u003e\n\n![Desktop](https://github.com/healeycodes/talking-between-python-and-js/blob/master/header.png)\n\n\u003cbr\u003e\n\n### Via JSON\n\nA Flask web app with two routes. `/test` which serves a page with JavaScript that uses the Fetch API to GET JSON data from `/hello`, and then POSTs JSON data, also to `/hello`. Everything is logged to console.\n\nAny issues with launching the Flask app should seek these [docs](http://flask.pocoo.org/docs/1.0/cli/), and the Flask home page for general installation instructions.\n\n\u003cbr\u003e\n\n### Via processes\n\nThere's also some files that demonstrate how processes can communicate via the stdout. Data is reported by a spawn process which is caught and collected. This is displayed in Python and Node.js. `sensor.js`, `sensor.py`, `temperature-listener.js`, `temperature-listener.py`. With the Node.js parent process, events are used. For the Python parent process we use a simple buffer and check for the newline char.\n\n\u003cbr\u003e\n\nHopefully this repository (combined with the article) will answer some beginner questions about how different languages 'talk' to each other! I'm accepting any PRs that bring further clarity or fix errors.\n\n\u003cbr\u003e\n\nMIT license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhealeycodes%2Ftalking-between-python-and-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhealeycodes%2Ftalking-between-python-and-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhealeycodes%2Ftalking-between-python-and-js/lists"}