{"id":16934863,"url":"https://github.com/codeskyblue/node-python-rpc","last_synced_at":"2025-04-11T18:53:35.844Z","repository":{"id":152245085,"uuid":"48437022","full_name":"codeskyblue/node-python-rpc","owner":"codeskyblue","description":"Node modules which helps call python code in node","archived":false,"fork":false,"pushed_at":"2015-12-23T15:51:37.000Z","size":11,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T14:50:59.752Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeskyblue.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}},"created_at":"2015-12-22T14:40:58.000Z","updated_at":"2022-12-30T17:51:51.000Z","dependencies_parsed_at":"2023-04-16T17:24:24.409Z","dependency_job_id":null,"html_url":"https://github.com/codeskyblue/node-python-rpc","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/codeskyblue%2Fnode-python-rpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeskyblue%2Fnode-python-rpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeskyblue%2Fnode-python-rpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeskyblue%2Fnode-python-rpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeskyblue","download_url":"https://codeload.github.com/codeskyblue/node-python-rpc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248464539,"owners_count":21108238,"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-13T20:53:08.323Z","updated_at":"2025-04-11T18:53:35.812Z","avatar_url":"https://github.com/codeskyblue.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-python-rpc\nNode modules which helps call python code in node\n\nUse JSONRPC to communicate nodejs and python.\n\nCan work now. \n\nBut libs hasn't published to npm and pypi.\n\nThis is still a alpha version. I will use it in my work, and it should get better in the future.\n\n## Install\n```\nnpm i --save node-python-rpc\n\npip install node-python-rpc\n```\n\n## Usage\nStart the python rpc server\n\n```\npython -mnodepythonrpc --port 8000\n```\n\nNodejs code\n\n```\n// python\nvar python = require('node-python-rpc')({host: 'localhost', port: 28642});\nvar os = python.import('os')\n\n// nodejs\nvar path = require('path')\n\nassert(os.path.basename(os.getcwd()) == path.basename(process.cwd()))\n```\n\n## Reference\n* \u003chttps://github.com/JeanSebTr/node-python\u003e\n* \u003chttp://stackoverflow.com/questions/16586640/node-js-async-to-sync\u003e\n\n## LICENSE\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeskyblue%2Fnode-python-rpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeskyblue%2Fnode-python-rpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeskyblue%2Fnode-python-rpc/lists"}