{"_id":"python-shell","_rev":"2970097","name":"python-shell","description":"Run Python scripts from Node.js with simple (but efficient) inter-process communication through stdio","dist-tags":{"latest":"5.0.0"},"maintainers":[{"name":"extrabacon","email":"nicolas@extrabacon.net"},{"name":"brucedjones","email":"bruce.david.jones@gmail.com"},{"name":"almenon","email":"almenon214@gmail.com"}],"time":{"modified":"2023-05-18T02:33:26.000Z","created":"2014-03-12T15:27:58.421Z","5.0.0":"2023-02-11T05:43:38.317Z","4.0.0":"2023-02-11T05:06:17.942Z","3.0.1":"2021-10-09T20:08:58.017Z","3.0.0":"2021-03-27T21:49:14.594Z","2.0.3":"2020-11-20T05:45:56.676Z","2.0.2":"2020-09-22T03:44:45.970Z","2.0.1":"2020-05-19T14:28:35.581Z","2.0.0":"2020-05-03T16:45:44.241Z","1.0.8":"2019-08-04T15:30:45.746Z","1.0.7":"2018-12-29T04:04:00.916Z","1.0.6":"2018-10-07T16:05:00.594Z","1.0.5":"2018-10-07T15:37:20.175Z","1.0.4":"2018-09-08T23:41:38.145Z","1.0.3":"2018-09-03T18:45:20.736Z","1.0.2":"2018-09-03T16:10:13.576Z","1.0.1":"2018-09-02T17:54:50.791Z","1.0.0":"2018-09-02T17:33:48.503Z","0.5.0":"2018-02-13T13:05:07.664Z","0.4.0":"2016-03-10T14:05:36.084Z","0.3.0":"2015-12-17T14:28:25.512Z","0.2.0":"2015-10-06T13:44:41.851Z","0.1.0":"2015-05-14T23:48:52.081Z","0.0.3":"2014-05-07T17:05:37.132Z","0.0.2":"2014-03-12T16:12:09.659Z","0.0.1":"2014-03-12T15:27:58.421Z"},"users":{},"author":{"name":"Nicolas Mercier","email":"nicolas@extrabacon.net"},"repository":{"type":"git","url":"git+ssh://git@github.com/extrabacon/python-shell.git"},"versions":{"5.0.0":{"name":"python-shell","version":"5.0.0","description":"Run Python scripts from Node.js with simple (but efficient) inter-process communication through stdio","keywords":["python"],"scripts":{"test":"tsc -p ./ && mocha -r ts-node/register","appveyorTest":"tsc -p ./ && nyc mocha --reporter mocha-appveyor-reporter test/*.js","compile":"tsc -watch -p ./","compileOnce":"tsc -p ./"},"devDependencies":{"@types/mocha":"^8.2.1","@types/node":"^14.17.21","@types/should":"^13.0.0","mocha":"^8.2.1","mocha-appveyor-reporter":"^0.4.0","should":"^13.2.1","ts-node":"^9.0.0","typescript":"^4.4.3"},"repository":{"type":"git","url":"git+ssh://git@github.com/extrabacon/python-shell.git"},"homepage":"http://github.com/extrabacon/python-shell","bugs":{"url":"http://github.com/extrabacon/python-shell/issues"},"author":{"name":"Nicolas Mercier","email":"nicolas@extrabacon.net"},"engines":{"node":">=0.10"},"license":"MIT","types":"./index.d.ts","gitHead":"91f1097bd80e2d3c48c8844bf66c2d0b20ab7daa","_id":"python-shell@5.0.0","_nodeVersion":"16.14.2","_npmVersion":"9.2.0","dist":{"shasum":"26fc9a0e477cb30fc98ef2d9d5f53ab38a060eac","size":15060,"noattachment":false,"key":"/python-shell/-/python-shell-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/python-shell/download/python-shell-5.0.0.tgz"},"_npmUser":{"name":"almenon","email":"almenon214@gmail.com"},"directories":{},"maintainers":[{"name":"extrabacon","email":"nicolas@extrabacon.net"},{"name":"brucedjones","email":"bruce.david.jones@gmail.com"},{"name":"almenon","email":"almenon214@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/python-shell_5.0.0_1676094218142_0.9833978828740095"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-02-11T05:43:38.317Z","publish_time":1676094218317,"_cnpm_publish_time":1676094218317},"4.0.0":{"name":"python-shell","version":"4.0.0","description":"Run Python scripts from Node.js with simple (but efficient) inter-process communication through stdio","keywords":["python"],"scripts":{"test":"tsc -p ./ && mocha -r ts-node/register","appveyorTest":"tsc -p ./ && nyc mocha --reporter mocha-appveyor-reporter test/*.js","compile":"tsc -watch -p ./"},"devDependencies":{"@types/mocha":"^8.2.1","@types/node":"^14.17.21","@types/should":"^13.0.0","mocha":"^8.2.1","mocha-appveyor-reporter":"^0.4.0","should":"^13.2.1","ts-node":"^9.0.0","typescript":"^4.4.3"},"repository":{"type":"git","url":"git+ssh://git@github.com/extrabacon/python-shell.git"},"homepage":"http://github.com/extrabacon/python-shell","bugs":{"url":"http://github.com/extrabacon/python-shell/issues"},"author":{"name":"Nicolas Mercier","email":"nicolas@extrabacon.net"},"engines":{"node":">=0.10"},"license":"MIT","types":"./index.d.ts","gitHead":"56f8d1fe395ca044c1c935c11d96a2cb8d7166d7","_id":"python-shell@4.0.0","_nodeVersion":"16.14.2","_npmVersion":"9.2.0","dist":{"shasum":"e98abceee98bc3346f086da61d2108c0881e8f28","size":14976,"noattachment":false,"key":"/python-shell/-/python-shell-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/python-shell/download/python-shell-4.0.0.tgz"},"_npmUser":{"name":"almenon","email":"almenon214@gmail.com"},"directories":{},"maintainers":[{"name":"extrabacon","email":"nicolas@extrabacon.net"},{"name":"brucedjones","email":"bruce.david.jones@gmail.com"},{"name":"almenon","email":"almenon214@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/python-shell_4.0.0_1676091977764_0.19810122899670457"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-02-11T05:06:17.942Z","publish_time":1676091977942,"_cnpm_publish_time":1676091977942},"3.0.1":{"name":"python-shell","version":"3.0.1","description":"Run Python scripts from Node.js with simple (but efficient) inter-process communication through stdio","keywords":["python"],"scripts":{"test":"tsc -p ./ && mocha -r ts-node/register","appveyorTest":"tsc -p ./ && nyc mocha --reporter mocha-appveyor-reporter test/*.js","compile":"tsc -watch -p ./"},"devDependencies":{"@types/mocha":"^8.2.1","@types/node":"^14.17.21","@types/should":"^13.0.0","mocha":"^8.2.1","mocha-appveyor-reporter":"^0.4.0","should":"^13.2.1","ts-node":"^9.0.0","typescript":"^4.4.3"},"repository":{"type":"git","url":"git+ssh://git@github.com/extrabacon/python-shell.git"},"homepage":"http://github.com/extrabacon/python-shell","bugs":{"url":"http://github.com/extrabacon/python-shell/issues"},"author":{"name":"Nicolas Mercier","email":"nicolas@extrabacon.net"},"engines":{"node":">=0.10"},"license":"MIT","gitHead":"393b5c5194a5a7efd848dd0a2ed9f043f6ed3fd7","_id":"python-shell@3.0.1","_nodeVersion":"14.15.1","_npmVersion":"7.5.4","dist":{"shasum":"c3d3b11536e6ebdb8d6a2602482f7180d940bb13","size":13908,"noattachment":false,"key":"/python-shell/-/python-shell-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/python-shell/download/python-shell-3.0.1.tgz"},"_npmUser":{"name":"almenon","email":"almenon214@gmail.com"},"directories":{},"maintainers":[{"name":"almenon","email":"almenon214@gmail.com"},{"name":"brucedjones","email":"bruce.david.jones@gmail.com"},{"name":"extrabacon","email":"nicolas@extrabacon.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/python-shell_3.0.1_1633810137900_0.17332578463782977"},"_hasShrinkwrap":false,"publish_time":1633810138017,"_cnpm_publish_time":1633810138017,"_cnpmcore_publish_time":"2021-12-16T21:30:10.526Z"},"3.0.0":{"name":"python-shell","version":"3.0.0","description":"Run Python scripts from Node.js with simple (but efficient) inter-process communication through stdio","keywords":["python"],"scripts":{"test":"tsc -p ./ && mocha -r ts-node/register","appveyorTest":"tsc -p ./ && nyc mocha --reporter mocha-appveyor-reporter test/*.js","compile":"tsc -watch -p ./"},"devDependencies":{"@types/mocha":"^8.2.1","@types/node":"^10.5.2","@types/should":"^13.0.0","mocha":"^8.2.1","mocha-appveyor-reporter":"^0.4.0","should":"^13.2.1","ts-node":"^9.0.0","typescript":"^3.8.3"},"repository":{"type":"git","url":"git+ssh://git@github.com/extrabacon/python-shell.git"},"homepage":"http://github.com/extrabacon/python-shell","bugs":{"url":"http://github.com/extrabacon/python-shell/issues"},"author":{"name":"Nicolas Mercier","email":"nicolas@extrabacon.net"},"engines":{"node":">=0.10"},"license":"MIT","gitHead":"a5af708ca5d5dab97dabeefa82647931a4d5e45b","_id":"python-shell@3.0.0","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"shasum":"4eb04b6e7e8878e715b9ccd782b15194555dd074","size":14249,"noattachment":false,"key":"/python-shell/-/python-shell-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/python-shell/download/python-shell-3.0.0.tgz"},"_npmUser":{"name":"almenon","email":"almenon214@gmail.com"},"directories":{},"maintainers":[{"name":"almenon","email":"almenon214@gmail.com"},{"name":"brucedjones","email":"bruce.david.jones@gmail.com"},{"name":"extrabacon","email":"nicolas@extrabacon.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/python-shell_3.0.0_1616881754440_0.5597944139525939"},"_hasShrinkwrap":false,"publish_time":1616881754594,"_cnpm_publish_time":1616881754594,"_cnpmcore_publish_time":"2021-12-16T21:30:10.824Z"},"2.0.3":{"name":"python-shell","version":"2.0.3","description":"Run Python scripts from Node.js with simple (but efficient) inter-process communication through stdio","keywords":["python"],"scripts":{"test":"tsc -p ./ && mocha -r ts-node/register","appveyorTest":"tsc -p ./ && nyc mocha --reporter mocha-appveyor-reporter test/*.js","compile":"tsc -watch -p ./"},"dependencies":{},"devDependencies":{"@types/mocha":"^5.2.5","@types/node":"^10.5.2","mocha":"^5.2.0","mocha-appveyor-reporter":"^0.4.0","should":"^13.2.1","ts-node":"^9.0.0","typescript":"^3.8.3"},"repository":{"type":"git","url":"git+ssh://git@github.com/extrabacon/python-shell.git"},"homepage":"http://github.com/extrabacon/python-shell","bugs":{"url":"http://github.com/extrabacon/python-shell/issues"},"author":{"name":"Nicolas Mercier","email":"nicolas@extrabacon.net"},"engines":{"node":">=0.10"},"license":"MIT","gitHead":"f3b64d3307d8dc15eb9c071d8aa774c1e7d5b2d7","_id":"python-shell@2.0.3","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"shasum":"03040cae27934d88e1226fd34316b39dfb2fddf0","size":12817,"noattachment":false,"key":"/python-shell/-/python-shell-2.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/python-shell/download/python-shell-2.0.3.tgz"},"_npmUser":{"name":"almenon","email":"almenon214@gmail.com"},"directories":{},"maintainers":[{"name":"almenon","email":"almenon214@gmail.com"},{"name":"brucedjones","email":"bruce.david.jones@gmail.com"},{"name":"extrabacon","email":"nicolas@extrabacon.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/python-shell_2.0.3_1605851156509_0.06742559091120248"},"_hasShrinkwrap":false,"publish_time":1605851156676,"_cnpm_publish_time":1605851156676,"_cnpmcore_publish_time":"2021-12-16T21:30:11.024Z"},"2.0.2":{"name":"python-shell","version":"2.0.2","description":"Run Python scripts from Node.js with simple (but efficient) inter-process communication through stdio","keywords":["python"],"scripts":{"test":"tsc -p ./ && mocha -r ts-node/register","appveyorTest":"tsc -p ./ && nyc mocha --reporter mocha-appveyor-reporter test/*.js","compile":"tsc -watch -p ./"},"dependencies":{},"devDependencies":{"@types/mocha":"^5.2.5","@types/node":"^10.5.2","mocha":"^5.2.0","mocha-appveyor-reporter":"^0.4.0","should":"^13.2.1","ts-node":"^9.0.0","typescript":"^3.8.3"},"repository":{"type":"git","url":"git+ssh://git@github.com/extrabacon/python-shell.git"},"homepage":"http://github.com/extrabacon/python-shell","bugs":{"url":"http://github.com/extrabacon/python-shell/issues"},"author":{"name":"Nicolas Mercier","email":"nicolas@extrabacon.net"},"engines":{"node":">=0.10"},"license":"MIT","gitHead":"70b67710de34c2739760685379a78a45ee854d40","_id":"python-shell@2.0.2","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"shasum":"1206b1cb424c7754b771c402c289f1df4be7de5d","size":12543,"noattachment":false,"key":"/python-shell/-/python-shell-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/python-shell/download/python-shell-2.0.2.tgz"},"maintainers":[{"name":"almenon","email":"almenon214@gmail.com"},{"name":"brucedjones","email":"bruce.david.jones@gmail.com"},{"name":"extrabacon","email":"nicolas@extrabacon.net"}],"_npmUser":{"name":"almenon","email":"almenon214@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/python-shell_2.0.2_1600746285789_0.3652565055395154"},"_hasShrinkwrap":false,"publish_time":1600746285970,"_cnpm_publish_time":1600746285970,"_cnpmcore_publish_time":"2021-12-16T21:30:11.242Z"},"2.0.1":{"name":"python-shell","version":"2.0.1","description":"Run Python scripts from Node.js with simple (but efficient) inter-process communication through stdio","keywords":["python"],"scripts":{"test":"tsc -p ./ && mocha -r ts-node/register","appveyorTest":"tsc -p ./ && nyc mocha --reporter mocha-appveyor-reporter test/*.js","compile":"tsc -watch -p ./"},"dependencies":{},"devDependencies":{"@types/mocha":"^5.2.5","@types/node":"^10.5.2","mocha":"^5.2.0","mocha-appveyor-reporter":"^0.4.0","should":"^13.2.1","ts-node":"^7.0.1","typescript":"^3.0.1"},"repository":{"type":"git","url":"git+ssh://git@github.com/extrabacon/python-shell.git"},"homepage":"http://github.com/extrabacon/python-shell","bugs":{"url":"http://github.com/extrabacon/python-shell/issues"},"author":{"name":"Nicolas Mercier","email":"nicolas@extrabacon.net"},"engines":{"node":">=0.10"},"license":"MIT","gitHead":"47aa7b60256f75b5406c4af90f4bbee448abcf4b","_id":"python-shell@2.0.1","_nodeVersion":"10.16.3","_npmVersion":"6.13.4","dist":{"shasum":"314eccd523bd6f41cbcc1c399eadab70f76e6e92","size":12390,"noattachment":false,"key":"/python-shell/-/python-shell-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/python-shell/download/python-shell-2.0.1.tgz"},"maintainers":[{"name":"almenon","email":"almenon214@gmail.com"},{"name":"brucedjones","email":"bruce.david.jones@gmail.com"},{"name":"extrabacon","email":"nicolas@extrabacon.net"}],"_npmUser":{"name":"almenon","email":"almenon214@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/python-shell_2.0.1_1589898515465_0.3943960667033459"},"_hasShrinkwrap":false,"publish_time":1589898515581,"_cnpm_publish_time":1589898515581,"_cnpmcore_publish_time":"2021-12-16T21:30:11.714Z"},"2.0.0":{"name":"python-shell","version":"2.0.0","description":"Run Python scripts from Node.js with simple (but efficient) inter-process communication through stdio","keywords":["python"],"scripts":{"test":"tsc -p ./ && mocha -r ts-node/register","appveyorTest":"tsc -p ./ && nyc mocha --reporter mocha-appveyor-reporter test/*.js","compile":"tsc -watch -p ./"},"dependencies":{},"devDependencies":{"@types/mocha":"^5.2.5","@types/node":"^10.5.2","mocha":"^5.2.0","mocha-appveyor-reporter":"^0.4.0","should":"^13.2.1","ts-node":"^7.0.1","typescript":"^3.0.1"},"repository":{"type":"git","url":"git+ssh://git@github.com/extrabacon/python-shell.git"},"homepage":"http://github.com/extrabacon/python-shell","bugs":{"url":"http://github.com/extrabacon/python-shell/issues"},"author":{"name":"Nicolas Mercier","email":"nicolas@extrabacon.net"},"engines":{"node":">=0.10"},"license":"MIT","gitHead":"e4662ae636ed2fd1381e9647ba3d6e81504d0fe9","_id":"python-shell@2.0.0","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"shasum":"d09c47c9f1e99704250a4c51bd4a9936209fafdd","size":12417,"noattachment":false,"key":"/python-shell/-/python-shell-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/python-shell/download/python-shell-2.0.0.tgz"},"maintainers":[{"name":"almenon","email":"almenon214@gmail.com"},{"name":"brucedjones","email":"bruce.david.jones@gmail.com"},{"name":"extrabacon","email":"nicolas@extrabacon.net"}],"_npmUser":{"name":"almenon","email":"almenon214@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/python-shell_2.0.0_1588524344113_0.5551857814530521"},"_hasShrinkwrap":false,"publish_time":1588524344241,"_cnpm_publish_time":1588524344241,"_cnpmcore_publish_time":"2021-12-16T21:30:11.875Z"},"1.0.8":{"name":"python-shell","version":"1.0.8","description":"Run Python scripts from Node.js with simple (but efficient) inter-process communication through stdio","keywords":["python"],"scripts":{"test":"tsc -p ./ && mocha","appveyorTest":"tsc -p ./ && nyc mocha --reporter mocha-appveyor-reporter test/*.js","compile":"tsc -watch -p ./"},"dependencies":{},"devDependencies":{"@types/mocha":"^5.2.5","@types/node":"^9.3.0","mocha":"^5.2.0","mocha-appveyor-reporter":"^0.4.0","should":"^13.2.1","ts-node":"^7.0.1","typescript":"^3.0.1"},"repository":{"type":"git","url":"git+ssh://git@github.com/extrabacon/python-shell.git"},"homepage":"http://github.com/extrabacon/python-shell","bugs":{"url":"http://github.com/extrabacon/python-shell/issues"},"author":{"name":"Nicolas Mercier","email":"nicolas@extrabacon.net"},"engines":{"node":">=0.10"},"license":"MIT","gitHead":"ab8dabd69439d4af10e76e519e184940fc4523e8","_id":"python-shell@1.0.8","_npmVersion":"6.4.1","_nodeVersion":"11.3.0","_npmUser":{"name":"almenon","email":"almenon214@gmail.com"},"dist":{"shasum":"067bc93d790913efaa4b2a3c9d0e85e02adab510","size":11658,"noattachment":false,"key":"/python-shell/-/python-shell-1.0.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/python-shell/download/python-shell-1.0.8.tgz"},"maintainers":[{"name":"almenon","email":"almenon214@gmail.com"},{"name":"brucedjones","email":"bruce.david.jones@gmail.com"},{"name":"extrabacon","email":"nicolas@extrabacon.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/python-shell_1.0.8_1564932645643_0.2429652126303088"},"_hasShrinkwrap":false,"publish_time":1564932645746,"_cnpm_publish_time":1564932645746,"_cnpmcore_publish_time":"2021-12-16T21:30:12.075Z"},"1.0.7":{"name":"python-shell","version":"1.0.7","description":"Run Python scripts from Node.js with simple (but efficient) inter-process communication through stdio","keywords":["python"],"scripts":{"test":"tsc -p ./ && mocha","appveyorTest":"tsc -p ./ && mocha --reporter mocha-appveyor-reporter test/*.js","compile":"tsc -watch -p ./"},"dependencies":{},"devDependencies":{"@types/mocha":"^5.2.5","@types/node":"^9.3.0","mocha":"^5.2.0","mocha-appveyor-reporter":"^0.4.0","should":"^13.2.1","ts-node":"^7.0.1","typescript":"^3.0.1"},"repository":{"type":"git","url":"git+ssh://git@github.com/extrabacon/python-shell.git"},"homepage":"http://github.com/extrabacon/python-shell","bugs":{"url":"http://github.com/extrabacon/python-shell/issues"},"author":{"name":"Nicolas Mercier","email":"nicolas@extrabacon.net"},"engines":{"node":">=0.10"},"license":"MIT","gitHead":"41549b860152ba1d8f4ec175df2ae1356578a8f9","_id":"python-shell@1.0.7","_npmVersion":"6.5.0","_nodeVersion":"9.4.0","_npmUser":{"name":"almenon","email":"almenon214@gmail.com"},"dist":{"shasum":"40cf1bea92c888122e3812d1dee809227ecb1212","size":11477,"noattachment":false,"key":"/python-shell/-/python-shell-1.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/python-shell/download/python-shell-1.0.7.tgz"},"maintainers":[{"name":"almenon","email":"almenon214@gmail.com"},{"name":"brucedjones","email":"bruce.david.jones@gmail.com"},{"name":"extrabacon","email":"nicolas@extrabacon.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/python-shell_1.0.7_1546056240756_0.39775604826081956"},"_hasShrinkwrap":false,"publish_time":1546056240916,"_cnpm_publish_time":1546056240916,"_cnpmcore_publish_time":"2021-12-16T21:30:12.300Z"},"1.0.6":{"name":"python-shell","version":"1.0.6","description":"Run Python scripts from Node.js with simple (but efficient) inter-process communication through stdio","keywords":["python"],"scripts":{"test":"tsc -p ./ && mocha","appveyorTest":"tsc -p ./ && mocha --ui tdd --reporter mocha-appveyor-reporter test/*.js","compile":"tsc -watch -p ./"},"dependencies":{},"devDependencies":{"@types/mocha":"^5.2.5","@types/node":"^9.3.0","mocha":"^5.2.0","mocha-appveyor-reporter":"^0.4.0","should":"^13.2.1","ts-node":"^7.0.1","typescript":"^3.0.1"},"repository":{"type":"git","url":"git+ssh://git@github.com/extrabacon/python-shell.git"},"homepage":"http://github.com/extrabacon/python-shell","bugs":{"url":"http://github.com/extrabacon/python-shell/issues"},"author":{"name":"Nicolas Mercier","email":"nicolas@extrabacon.net"},"engines":{"node":">=0.10"},"license":"MIT","gitHead":"18fe2d145afd18e0e3405fac4cb89a8d6e877697","_id":"python-shell@1.0.6","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"almenon","email":"almenon214@gmail.com"},"dist":{"shasum":"5b366491b65fbbc88c12ff5ca5946a87478ff892","size":11279,"noattachment":false,"key":"/python-shell/-/python-shell-1.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/python-shell/download/python-shell-1.0.6.tgz"},"maintainers":[{"name":"almenon","email":"almenon214@gmail.com"},{"name":"brucedjones","email":"bruce.david.jones@gmail.com"},{"name":"extrabacon","email":"nicolas@extrabacon.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/python-shell_1.0.6_1538928300419_0.38764747289162993"},"_hasShrinkwrap":false,"publish_time":1538928300594,"_cnpm_publish_time":1538928300594,"_cnpmcore_publish_time":"2021-12-16T21:30:12.497Z"},"1.0.5":{"name":"python-shell","version":"1.0.5","description":"Run Python scripts from Node.js with simple (but efficient) inter-process communication through stdio","keywords":["python"],"scripts":{"test":"tsc -p ./ && mocha","appveyorTest":"tsc -p ./ && mocha --ui tdd --reporter mocha-appveyor-reporter test/*.js","compile":"tsc -watch -p ./"},"dependencies":{},"devDependencies":{"@types/mocha":"^5.2.5","@types/node":"^9.3.0","mocha":"^5.2.0","mocha-appveyor-reporter":"^0.4.0","should":"^13.2.1","ts-node":"^7.0.1","typescript":"^3.0.1"},"repository":{"type":"git","url":"git+ssh://git@github.com/extrabacon/python-shell.git"},"homepage":"http://github.com/extrabacon/python-shell","bugs":{"url":"http://github.com/extrabacon/python-shell/issues"},"author":{"name":"Nicolas Mercier","email":"nicolas@extrabacon.net"},"engines":{"node":">=0.10"},"license":"MIT","gitHead":"561b1d6608f80f9bfac74a76ad496e73c656b745","_id":"python-shell@1.0.5","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"almenon","email":"almenon214@gmail.com"},"dist":{"shasum":"d3b3a26da434a4e04f3d3505a1177a57fc8af945","size":11307,"noattachment":false,"key":"/python-shell/-/python-shell-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/python-shell/download/python-shell-1.0.5.tgz"},"maintainers":[{"name":"almenon","email":"almenon214@gmail.com"},{"name":"brucedjones","email":"bruce.david.jones@gmail.com"},{"name":"extrabacon","email":"nicolas@extrabacon.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/python-shell_1.0.5_1538926639985_0.5402236226064909"},"_hasShrinkwrap":false,"publish_time":1538926640175,"_cnpm_publish_time":1538926640175,"_cnpmcore_publish_time":"2021-12-16T21:30:12.697Z"},"1.0.4":{"name":"python-shell","version":"1.0.4","description":"Run Python scripts from Node.js with simple (but efficient) inter-process communication through stdio","keywords":["python"],"scripts":{"test":"tsc -p ./ && mocha","appveyorTest":"tsc -p ./ && mocha --ui tdd --reporter mocha-appveyor-reporter test/*.js","compile":"tsc -watch -p ./"},"dependencies":{},"devDependencies":{"@types/mocha":"^5.2.5","@types/node":"^9.3.0","mocha":"^5.2.0","mocha-appveyor-reporter":"^0.4.0","should":"^13.2.1","ts-node":"^7.0.1","typescript":"^3.0.1"},"repository":{"type":"git","url":"git+ssh://git@github.com/extrabacon/python-shell.git"},"homepage":"http://github.com/extrabacon/python-shell","bugs":{"url":"http://github.com/extrabacon/python-shell/issues"},"author":{"name":"Nicolas Mercier","email":"nicolas@extrabacon.net"},"engines":{"node":">=0.10"},"license":"MIT","gitHead":"2a76f08b45ace2e3f93a8dc523c168c5872401fa","_id":"python-shell@1.0.4","_npmVersion":"6.0.1","_nodeVersion":"9.5.0","_npmUser":{"name":"almenon","email":"almenon214@gmail.com"},"dist":{"shasum":"6445a631035f77a875a69dda7d00f4f41cb6b29c","size":10894,"noattachment":false,"key":"/python-shell/-/python-shell-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/python-shell/download/python-shell-1.0.4.tgz"},"maintainers":[{"name":"almenon","email":"almenon214@gmail.com"},{"name":"brucedjones","email":"bruce.david.jones@gmail.com"},{"name":"extrabacon","email":"nicolas@extrabacon.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/python-shell_1.0.4_1536450097923_0.2245558035196329"},"_hasShrinkwrap":false,"publish_time":1536450098145,"_cnpm_publish_time":1536450098145,"_cnpmcore_publish_time":"2021-12-16T21:30:12.906Z"},"1.0.3":{"name":"python-shell","version":"1.0.3","description":"Run Python scripts from Node.js with simple (but efficient) inter-process communication through stdio","keywords":["python"],"scripts":{"test":"tsc -p ./ && mocha -R spec","appveyorTest":"tsc -p ./ && mocha --ui tdd --reporter mocha-appveyor-reporter test/*.js","compile":"tsc -watch -p ./"},"dependencies":{},"devDependencies":{"@types/mocha":"^2.2.48","@types/node":"^9.3.0","mocha":"^5.0.0","mocha-appveyor-reporter":"^0.4.0","should":"^13.2.1","typescript":"^3.0.1"},"repository":{"type":"git","url":"git+ssh://git@github.com/extrabacon/python-shell.git"},"homepage":"http://github.com/extrabacon/python-shell","bugs":{"url":"http://github.com/extrabacon/python-shell/issues"},"author":{"name":"Nicolas Mercier","email":"nicolas@extrabacon.net"},"engines":{"node":">=0.10"},"license":"MIT","gitHead":"9ac80a7b10788836066367d47d7011b04101eade","_id":"python-shell@1.0.3","_npmVersion":"6.4.1","_nodeVersion":"9.4.0","_npmUser":{"name":"almenon","email":"almenon214@gmail.com"},"dist":{"shasum":"51d29051ca2fcb9cc8d4125058adb649b97f6c68","size":10746,"noattachment":false,"key":"/python-shell/-/python-shell-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/python-shell/download/python-shell-1.0.3.tgz"},"maintainers":[{"name":"almenon","email":"almenon214@gmail.com"},{"name":"brucedjones","email":"bruce.david.jones@gmail.com"},{"name":"extrabacon","email":"nicolas@extrabacon.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/python-shell_1.0.3_1536000320539_0.47982279445881737"},"_hasShrinkwrap":false,"publish_time":1536000320736,"_cnpm_publish_time":1536000320736,"_cnpmcore_publish_time":"2021-12-16T21:30:13.183Z"},"1.0.2":{"name":"python-shell","version":"1.0.2","description":"Run Python scripts from Node.js with simple (but efficient) inter-process communication through stdio","keywords":["python"],"scripts":{"test":"tsc -p ./ && mocha -R spec","appveyorTest":"tsc -p ./ && mocha --ui tdd --reporter mocha-appveyor-reporter test/*.js","compile":"tsc -watch -p ./"},"dependencies":{},"devDependencies":{"@types/mocha":"^2.2.48","@types/node":"^9.3.0","mocha":"^5.0.0","mocha-appveyor-reporter":"^0.4.0","should":"^13.2.1","typescript":"^3.0.1"},"repository":{"type":"git","url":"git+ssh://git@github.com/extrabacon/python-shell.git"},"homepage":"http://github.com/extrabacon/python-shell","bugs":{"url":"http://github.com/extrabacon/python-shell/issues"},"author":{"name":"Nicolas Mercier","email":"nicolas@extrabacon.net"},"engines":{"node":">=0.10"},"license":"MIT","gitHead":"a25a81ac7f113c198bcd86c42ab7616ee6b65e62","_id":"python-shell@1.0.2","_npmVersion":"6.4.1","_nodeVersion":"9.4.0","_npmUser":{"name":"almenon","email":"almenon214@gmail.com"},"dist":{"shasum":"6770cb3f748682f5154f6354b4661e9b4bfa29b8","size":19557,"noattachment":false,"key":"/python-shell/-/python-shell-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/python-shell/download/python-shell-1.0.2.tgz"},"maintainers":[{"name":"almenon","email":"almenon214@gmail.com"},{"name":"brucedjones","email":"bruce.david.jones@gmail.com"},{"name":"extrabacon","email":"nicolas@extrabacon.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/python-shell_1.0.2_1535991013412_0.013043317466485238"},"_hasShrinkwrap":false,"publish_time":1535991013576,"_cnpm_publish_time":1535991013576,"_cnpmcore_publish_time":"2021-12-16T21:30:13.422Z"},"1.0.1":{"name":"python-shell","version":"1.0.1","description":"Run Python scripts from Node.js with simple (but efficient) inter-process communication through stdio","keywords":["python"],"scripts":{"test":"tsc -p ./ && mocha -R spec","appveyorTest":"tsc -p ./ && mocha --ui tdd --reporter mocha-appveyor-reporter test/*.js","compile":"tsc -watch -p ./"},"dependencies":{},"devDependencies":{"@types/mocha":"^2.2.48","@types/node":"^9.3.0","mocha":"^5.0.0","mocha-appveyor-reporter":"^0.4.0","should":"^13.2.1","typescript":"^3.0.1"},"repository":{"type":"git","url":"git+ssh://git@github.com/extrabacon/python-shell.git"},"homepage":"http://github.com/extrabacon/python-shell","bugs":{"url":"http://github.com/extrabacon/python-shell/issues"},"author":{"name":"Nicolas Mercier","email":"nicolas@extrabacon.net"},"engines":{"node":">=0.10"},"license":"MIT","gitHead":"e266ac7cc39b001be092ace47390ef14997e6d99","_id":"python-shell@1.0.1","_npmVersion":"6.4.1","_nodeVersion":"9.4.0","_npmUser":{"name":"almenon","email":"almenon214@gmail.com"},"dist":{"shasum":"025c0b2099ba4ecc8b1a90cff714bc60ae1ea9a1","size":19053,"noattachment":false,"key":"/python-shell/-/python-shell-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/python-shell/download/python-shell-1.0.1.tgz"},"maintainers":[{"name":"almenon","email":"almenon214@gmail.com"},{"name":"brucedjones","email":"bruce.david.jones@gmail.com"},{"name":"extrabacon","email":"nicolas@extrabacon.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/python-shell_1.0.1_1535910890615_0.3905581673009768"},"_hasShrinkwrap":false,"publish_time":1535910890791,"_cnpm_publish_time":1535910890791,"_cnpmcore_publish_time":"2021-12-16T21:30:13.684Z"},"1.0.0":{"name":"python-shell","version":"1.0.0","description":"Run Python scripts from Node.js with simple (but efficient) inter-process communication through stdio","keywords":["python"],"scripts":{"test":"tsc -p ./ && mocha -R spec","appveyorTest":"tsc -p ./ && mocha --ui tdd --reporter mocha-appveyor-reporter test/*.js","compile":"tsc -watch -p ./"},"dependencies":{},"devDependencies":{"@types/mocha":"^2.2.48","@types/node":"^9.3.0","mocha":"^5.0.0","mocha-appveyor-reporter":"^0.4.0","should":"^13.2.1","typescript":"^3.0.1"},"repository":{"type":"git","url":"git+ssh://git@github.com/extrabacon/python-shell.git"},"homepage":"http://github.com/extrabacon/python-shell","bugs":{"url":"http://github.com/extrabacon/python-shell/issues"},"author":{"name":"Nicolas Mercier","email":"nicolas@extrabacon.net"},"engines":{"node":">=0.10"},"license":"MIT","gitHead":"9fbf80afab1cf1c2291bcb9366cefdc862332425","_id":"python-shell@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"9.4.0","_npmUser":{"name":"almenon","email":"almenon214@gmail.com"},"dist":{"shasum":"24d217dc84973aee2e844742659e228507c8efaf","size":11438,"noattachment":false,"key":"/python-shell/-/python-shell-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/python-shell/download/python-shell-1.0.0.tgz"},"maintainers":[{"name":"almenon","email":"almenon214@gmail.com"},{"name":"brucedjones","email":"bruce.david.jones@gmail.com"},{"name":"extrabacon","email":"nicolas@extrabacon.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/python-shell_1.0.0_1535909628377_0.5552485194697441"},"_hasShrinkwrap":false,"publish_time":1535909628503,"_cnpm_publish_time":1535909628503,"_cnpmcore_publish_time":"2021-12-16T21:30:13.882Z"},"0.5.0":{"name":"python-shell","version":"0.5.0","description":"Run Python scripts from Node.js with simple (but efficient) inter-process communication through stdio","keywords":["python"],"scripts":{"test":"mocha -R spec"},"dependencies":{},"devDependencies":{"should":"^6.0.0","mocha":"^2.2.5"},"repository":{"type":"git","url":"git+ssh://git@github.com/extrabacon/python-shell.git"},"homepage":"http://github.com/extrabacon/python-shell","bugs":{"url":"http://github.com/extrabacon/python-shell/issues"},"author":{"name":"Nicolas Mercier","email":"nicolas@extrabacon.net"},"engines":{"node":">=0.10"},"license":"MIT","gitHead":"9d2059b88c2002c97dc4e31b7586e60345039a2b","_id":"python-shell@0.5.0","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"brucedjones","email":"bruce.david.jones@gmail.com"},"dist":{"shasum":"461983bafd092010bc2760c365b13e7d50aab231","size":8394,"noattachment":false,"key":"/python-shell/-/python-shell-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/python-shell/download/python-shell-0.5.0.tgz"},"maintainers":[{"name":"almenon","email":"almenon214@gmail.com"},{"name":"brucedjones","email":"bruce.david.jones@gmail.com"},{"name":"extrabacon","email":"nicolas@extrabacon.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/python-shell_0.5.0_1518527107007_0.37372959747125445"},"_hasShrinkwrap":false,"publish_time":1518527107664,"_cnpm_publish_time":1518527107664,"_cnpmcore_publish_time":"2021-12-16T21:30:14.095Z"},"0.4.0":{"name":"python-shell","version":"0.4.0","description":"Run Python scripts from Node.js with simple (but efficient) inter-process communication through stdio","keywords":["python"],"scripts":{"test":"mocha -R spec"},"dependencies":{},"devDependencies":{"should":"^6.0.0","mocha":"^2.2.5"},"repository":{"type":"git","url":"git+ssh://git@github.com/extrabacon/python-shell.git"},"homepage":"http://github.com/extrabacon/python-shell","bugs":{"url":"http://github.com/extrabacon/python-shell/issues"},"author":{"name":"Nicolas Mercier","email":"nicolas@extrabacon.net"},"engines":{"node":">=0.10"},"license":"MIT","gitHead":"0daee5f116bd84ae4f73b895e4808318f14bbfdd","_id":"python-shell@0.4.0","_shasum":"259c5470d885292b22e906a57b085f651752f956","_from":".","_npmVersion":"3.8.0","_nodeVersion":"5.7.1","_npmUser":{"name":"extrabacon","email":"nicolas@extrabacon.net"},"dist":{"shasum":"259c5470d885292b22e906a57b085f651752f956","size":8001,"noattachment":false,"key":"/python-shell/-/python-shell-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/python-shell/download/python-shell-0.4.0.tgz"},"maintainers":[{"name":"almenon","email":"almenon214@gmail.com"},{"name":"brucedjones","email":"bruce.david.jones@gmail.com"},{"name":"extrabacon","email":"nicolas@extrabacon.net"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/python-shell-0.4.0.tgz_1457618733383_0.24561460013501346"},"directories":{},"publish_time":1457618736084,"_hasShrinkwrap":false,"_cnpm_publish_time":1457618736084,"_cnpmcore_publish_time":"2021-12-16T21:30:15.109Z"},"0.3.0":{"name":"python-shell","version":"0.3.0","description":"Run Python scripts from Node.js with simple (but efficient) inter-process communication through stdio","keywords":["python"],"scripts":{"test":"mocha -R spec"},"dependencies":{},"devDependencies":{"should":"^6.0.0","mocha":"^2.2.5"},"repository":{"type":"git","url":"http://github.com/extrabacon/python-shell"},"homepage":"http://github.com/extrabacon/python-shell","bugs":{"url":"http://github.com/extrabacon/python-shell/issues"},"author":{"name":"Nicolas Mercier","email":"nicolas@extrabacon.net"},"engines":{"node":">=0.10"},"gitHead":"d5fc8e6c6189b9a2018ccd56a5d4936a495a345a","_id":"python-shell@0.3.0","_shasum":"e1d76bb274d67b816e7b0dd9127236acaec3cecc","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"extrabacon","email":"nicolas@extrabacon.net"},"dist":{"shasum":"e1d76bb274d67b816e7b0dd9127236acaec3cecc","size":7713,"noattachment":false,"key":"/python-shell/-/python-shell-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/python-shell/download/python-shell-0.3.0.tgz"},"maintainers":[{"name":"almenon","email":"almenon214@gmail.com"},{"name":"brucedjones","email":"bruce.david.jones@gmail.com"},{"name":"extrabacon","email":"nicolas@extrabacon.net"}],"directories":{},"publish_time":1450362505512,"_hasShrinkwrap":false,"_cnpm_publish_time":1450362505512,"_cnpmcore_publish_time":"2021-12-16T21:30:15.753Z"},"0.2.0":{"name":"python-shell","version":"0.2.0","description":"Run Python scripts from Node.js with simple (but efficient) inter-process communication through stdio","keywords":["python"],"scripts":{"test":"mocha -R spec"},"dependencies":{},"devDependencies":{"should":"^6.0.0","mocha":"^2.2.5"},"repository":{"type":"git","url":"http://github.com/extrabacon/python-shell"},"homepage":"http://github.com/extrabacon/python-shell","bugs":{"url":"http://github.com/extrabacon/python-shell/issues"},"author":{"name":"Nicolas Mercier","email":"nicolas@extrabacon.net"},"engines":{"node":">=0.10"},"gitHead":"8b98500b76a0e5c988a5e4aebcd279234b983442","_id":"python-shell@0.2.0","_shasum":"600f4a330ae65ea41fc05ab20aaaf2a1ec83bfd6","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"extrabacon","email":"nicolas@extrabacon.net"},"dist":{"shasum":"600f4a330ae65ea41fc05ab20aaaf2a1ec83bfd6","size":7777,"noattachment":false,"key":"/python-shell/-/python-shell-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/python-shell/download/python-shell-0.2.0.tgz"},"maintainers":[{"name":"almenon","email":"almenon214@gmail.com"},{"name":"brucedjones","email":"bruce.david.jones@gmail.com"},{"name":"extrabacon","email":"nicolas@extrabacon.net"}],"directories":{},"publish_time":1444139081851,"_hasShrinkwrap":false,"_cnpm_publish_time":1444139081851,"_cnpmcore_publish_time":"2021-12-16T21:30:16.003Z"},"0.1.0":{"name":"python-shell","version":"0.1.0","description":"Run Python scripts from Node.js with simple (but efficient) inter-process communication through stdio","keywords":["python"],"scripts":{"test":"mocha -R spec"},"dependencies":{},"devDependencies":{"should":"^6.0.0","mocha":"^2.2.5"},"repository":{"type":"git","url":"git+ssh://git@github.com/extrabacon/python-shell.git"},"homepage":"http://github.com/extrabacon/python-shell","bugs":{"url":"http://github.com/extrabacon/python-shell/issues"},"author":{"name":"Nicolas Mercier","email":"nicolas@extrabacon.net"},"engines":{"node":">=0.10"},"gitHead":"2ce9e92adbe698af48185dfec9740e93c87f56ca","_id":"python-shell@0.1.0","_shasum":"b7054c19ec40832cd97a90dc2864e6c0a4018ceb","_from":".","_npmVersion":"2.9.0","_nodeVersion":"0.12.2","_npmUser":{"name":"extrabacon","email":"nicolas@extrabacon.net"},"maintainers":[{"name":"almenon","email":"almenon214@gmail.com"},{"name":"brucedjones","email":"bruce.david.jones@gmail.com"},{"name":"extrabacon","email":"nicolas@extrabacon.net"}],"dist":{"shasum":"b7054c19ec40832cd97a90dc2864e6c0a4018ceb","size":7764,"noattachment":false,"key":"/python-shell/-/python-shell-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/python-shell/download/python-shell-0.1.0.tgz"},"directories":{},"publish_time":1431647332081,"_hasShrinkwrap":false,"_cnpm_publish_time":1431647332081,"_cnpmcore_publish_time":"2021-12-16T21:30:16.259Z"},"0.0.3":{"name":"python-shell","version":"0.0.3","description":"Run Python scripts from Node.js with simple (but efficient) inter-process communication through stdio","keywords":["python"],"scripts":{"test":"mocha -R spec"},"dependencies":{},"devDependencies":{"should":"^3.1.3","mocha":"^1.17.1"},"repository":{"type":"git","url":"http://github.com/extrabacon/python-shell"},"homepage":"http://github.com/extrabacon/python-shell","bugs":{"url":"http://github.com/extrabacon/python-shell/issues"},"author":{"name":"Nicolas Mercier","email":"nicolas@extrabacon.net"},"engines":{"node":">=0.10"},"_id":"python-shell@0.0.3","_shasum":"72375971175fa96d1ee90254c2d37c3f2f945c26","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"extrabacon","email":"nicolas@extrabacon.net"},"maintainers":[{"name":"almenon","email":"almenon214@gmail.com"},{"name":"brucedjones","email":"bruce.david.jones@gmail.com"},{"name":"extrabacon","email":"nicolas@extrabacon.net"}],"dist":{"shasum":"72375971175fa96d1ee90254c2d37c3f2f945c26","size":7288,"noattachment":false,"key":"/python-shell/-/python-shell-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/python-shell/download/python-shell-0.0.3.tgz"},"directories":{},"publish_time":1399482337132,"_hasShrinkwrap":false,"_cnpm_publish_time":1399482337132,"_cnpmcore_publish_time":"2021-12-16T21:30:16.470Z"},"0.0.2":{"name":"python-shell","version":"0.0.2","description":"Run Python scripts from Node.js with simple (but efficient) inter-process communication through stdio","keywords":["python"],"scripts":{"test":"mocha -R spec"},"dependencies":{},"devDependencies":{"should":"^3.1.3","mocha":"^1.17.1"},"repository":{"type":"git","url":"http://github.com/extrabacon/python-shell"},"homepage":"http://github.com/extrabacon/python-shell","bugs":{"url":"http://github.com/extrabacon/python-shell/issues"},"author":{"name":"Nicolas Mercier","email":"nicolas@extrabacon.net"},"engines":{"node":">=0.10"},"_id":"python-shell@0.0.2","dist":{"shasum":"3d9ecbe3703d905a7e368b2bc550b03747de488a","size":7182,"noattachment":false,"key":"/python-shell/-/python-shell-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/python-shell/download/python-shell-0.0.2.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"extrabacon","email":"nicolas@extrabacon.net"},"maintainers":[{"name":"almenon","email":"almenon214@gmail.com"},{"name":"brucedjones","email":"bruce.david.jones@gmail.com"},{"name":"extrabacon","email":"nicolas@extrabacon.net"}],"directories":{},"publish_time":1394640729659,"_hasShrinkwrap":false,"_cnpm_publish_time":1394640729659,"_cnpmcore_publish_time":"2021-12-16T21:30:16.673Z"},"0.0.1":{"name":"python-shell","version":"0.0.1","description":"Run Python scripts from Node.js with simple (but efficient) inter-process communication through stdio","keywords":["python"],"scripts":{"test":"mocha -R spec"},"dependencies":{},"devDependencies":{"should":"^3.1.3","mocha":"^1.17.1"},"repository":{"type":"git","url":"http://github.com/extrabacon/python-shell"},"homepage":"http://github.com/extrabacon/python-shell","bugs":{"url":"http://github.com/extrabacon/python-shell/issues"},"author":{"name":"Nicolas Mercier","email":"nicolas@extrabacon.net"},"engines":{"node":">=0.10"},"_id":"python-shell@0.0.1","dist":{"shasum":"39ecfd9da0a1f163dfc3444b4fcaa8420a037fcc","size":6287,"noattachment":false,"key":"/python-shell/-/python-shell-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/python-shell/download/python-shell-0.0.1.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"extrabacon","email":"nicolas@extrabacon.net"},"maintainers":[{"name":"almenon","email":"almenon214@gmail.com"},{"name":"brucedjones","email":"bruce.david.jones@gmail.com"},{"name":"extrabacon","email":"nicolas@extrabacon.net"}],"directories":{},"publish_time":1394638078421,"_hasShrinkwrap":false,"_cnpm_publish_time":1394638078421,"_cnpmcore_publish_time":"2021-12-16T21:30:16.878Z"}},"readme":"# [python-shell](https://www.npmjs.com/package/python-shell) [![Build status](https://ci.appveyor.com/api/projects/status/m8e3h53vvxg5wb2q/branch/master?svg=true)](https://ci.appveyor.com/project/Almenon/python-shell/branch/master) [![codecov](https://codecov.io/gh/extrabacon/python-shell/branch/master/graph/badge.svg)](https://codecov.io/gh/extrabacon/python-shell)\r\n\r\n<!-- change above url according to repo -->\r\nA simple way to run Python scripts from Node.js with basic but efficient inter-process communication and better error handling.\r\n\r\n## Features\r\n\r\n+ Reliably spawn Python scripts in a child process\r\n+ Built-in text, JSON and binary modes\r\n+ Custom parsers and formatters\r\n+ Simple and efficient data transfers through stdin and stdout streams\r\n+ Extended stack traces when an error is thrown\r\n\r\n## Requirements\r\nFirst make sure you are able to run `python3` (Mac/Linux) or `python` (Windows) from the terminal. If you are not then you might need to add it to the PATH. If you want to use a version of python not in the PATH you should specify `options.pythonPath`.\r\n\r\n## Installation\r\n\r\n```bash\r\nnpm install python-shell\r\n```\r\n\r\n## Documentation\r\n\r\n### Running python code:\r\n\r\n```typescript\r\nimport {PythonShell} from 'python-shell';\r\n\r\nPythonShell.runString('x=1+1;print(x)', null).then(messages=>{\r\n  console.log('finished');\r\n});\r\n```\r\n\r\nIf the script exits with a non-zero code, an error will be thrown.\r\n\r\nNote the use of imports! If you're not using typescript ಠ_ಠ you can [still get imports to work with this guide](https://github.com/extrabacon/python-shell/issues/148#issuecomment-419120209).\r\n\r\nOr you can use require like so: \r\n```javascript\r\nlet {PythonShell} = require('python-shell')\r\n```\r\n\r\n### Running a Python script:\r\n\r\n```typescript\r\nimport {PythonShell} from 'python-shell';\r\n\r\nPythonShell.run('my_script.py', null).then(messages=>{\r\n  console.log('finished');\r\n});\r\n```\r\n\r\nIf the script exits with a non-zero code, an error will be thrown.\r\n\r\n### Running a Python script with arguments and options:\r\n\r\n```typescript\r\nimport {PythonShell} from 'python-shell';\r\n\r\nlet options = {\r\n  mode: 'text',\r\n  pythonPath: 'path/to/python',\r\n  pythonOptions: ['-u'], // get print results in real-time\r\n  scriptPath: 'path/to/my/scripts',\r\n  args: ['value1', 'value2', 'value3']\r\n};\r\n\r\nPythonShell.run('my_script.py', options).then(messages=>{\r\n  // results is an array consisting of messages collected during execution\r\n  console.log('results: %j', results);\r\n});\r\n```\r\n\r\n### Exchanging data between Node and Python:\r\n\r\n```typescript\r\nimport {PythonShell} from 'python-shell';\r\nlet pyshell = new PythonShell('my_script.py');\r\n\r\n// sends a message to the Python script via stdin\r\npyshell.send('hello');\r\n\r\npyshell.on('message', function (message) {\r\n  // received a message sent from the Python script (a simple \"print\" statement)\r\n  console.log(message);\r\n});\r\n\r\n// end the input stream and allow the process to exit\r\npyshell.end(function (err,code,signal) {\r\n  if (err) throw err;\r\n  console.log('The exit code was: ' + code);\r\n  console.log('The exit signal was: ' + signal);\r\n  console.log('finished');\r\n});\r\n```\r\n\r\nUse `.send(message)` to send a message to the Python script. Attach the `message` event to listen to messages emitted from the Python script.\r\n\r\nUse `options.mode` to quickly setup how data is sent and received between your Node and Python applications.\r\n\r\n  * use `text` mode for exchanging lines of text ending with a [newline character](http://hayne.net/MacDev/Notes/unixFAQ.html#endOfLine).\r\n  * use `json` mode for exchanging JSON fragments\r\n  * use `binary` mode for anything else (data is sent and received as-is)\r\n\r\nStderr always uses text mode.\r\n\r\nFor more details and examples including Python source code, take a look at the tests.\r\n\r\n### Error Handling and extended stack traces\r\n\r\nAn error will be thrown if the process exits with a non-zero exit code. Additionally, if \"stderr\" contains a formatted Python traceback, the error is augmented with Python exception details including a concatenated stack trace.\r\n\r\nSample error with traceback (from test/python/error.py):\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"test/python/error.py\", line 6, in <module>\r\n    divide_by_zero()\r\n  File \"test/python/error.py\", line 4, in divide_by_zero\r\n    print 1/0\r\nZeroDivisionError: integer division or modulo by zero\r\n```\r\n\r\nwould result into the following error:\r\n\r\n```typescript\r\n{ [Error: ZeroDivisionError: integer division or modulo by zero]\r\n  traceback: 'Traceback (most recent call last):\\n  File \"test/python/error.py\", line 6, in <module>\\n    divide_by_zero()\\n  File \"test/python/error.py\", line 4, in divide_by_zero\\n    print 1/0\\nZeroDivisionError: integer division or modulo by zero\\n',\r\n  executable: 'python',\r\n  options: null,\r\n  script: 'test/python/error.py',\r\n  args: null,\r\n  exitCode: 1 }\r\n```\r\n\r\nand `err.stack` would look like this:\r\n\r\n```\r\nError: ZeroDivisionError: integer division or modulo by zero\r\n    at PythonShell.parseError (python-shell/index.js:131:17)\r\n    at ChildProcess.<anonymous> (python-shell/index.js:67:28)\r\n    at ChildProcess.EventEmitter.emit (events.js:98:17)\r\n    at Process.ChildProcess._handle.onexit (child_process.js:797:12)\r\n    ----- Python Traceback -----\r\n    File \"test/python/error.py\", line 6, in <module>\r\n      divide_by_zero()\r\n    File \"test/python/error.py\", line 4, in divide_by_zero\r\n      print 1/0\r\n```\r\n\r\n## API Reference\r\n\r\n#### `PythonShell(script, options)` constructor\r\n\r\nCreates an instance of `PythonShell` and starts the Python process\r\n\r\n* `script`: the path of the script to execute\r\n* `options`: the execution options, consisting of:\r\n  * `mode`: Configures how data is exchanged when data flows through stdin and stdout. The possible values are:\r\n    * `text`: each line of data is emitted as a message (default)\r\n    * `json`: each line of data is parsed as JSON and emitted as a message\r\n    * `binary`: data is streamed as-is through `stdout` and `stdin`\r\n  * `formatter`: each message to send is transformed using this method, then appended with a newline\r\n  * `parser`: each line of data is parsed with this function and its result is emitted as a message\r\n  * `stderrParser`: each line of logs is parsed with this function and its result is emitted as a message\r\n  * `encoding`: the text encoding to apply on the child process streams (default: \"utf8\")\r\n  * `pythonPath`: The path where to locate the \"python\" executable. Default: \"python3\" (\"python\" for Windows)\r\n  * `pythonOptions`: Array of option switches to pass to \"python\"\r\n  * `scriptPath`: The default path where to look for scripts. Default is the current working directory.\r\n  * `args`: Array of arguments to pass to the script\r\n* `stdoutSplitter`: splits stdout into chunks, defaulting to splitting into newline-seperated lines\r\n* `stderrSplitter`: splits stderr into chunks, defaulting to splitting into newline-seperated lines\r\n\r\nOther options are forwarded to `child_process.spawn`.\r\n\r\nPythonShell instances have the following properties:\r\n* `script`: the path of the script to execute\r\n* `command`: the full command arguments passed to the Python executable\r\n* `stdin`: the Python stdin stream, used to send data to the child process\r\n* `stdout`: the Python stdout stream, used for receiving data from the child process\r\n* `stderr`: the Python stderr stream, used for communicating logs & errors\r\n* `childProcess`: the process instance created via `child_process.spawn`\r\n* `terminated`: boolean indicating whether the process has exited\r\n* `exitCode`: the process exit code, available after the process has ended\r\n\r\nExample:\r\n\r\n```typescript\r\n// create a new instance\r\nlet shell = new PythonShell('script.py', options);\r\n```\r\n\r\n#### `#defaultOptions`\r\n\r\nConfigures default options for all new instances of PythonShell.\r\n\r\nExample:\r\n\r\n```typescript\r\n// setup a default \"scriptPath\"\r\nPythonShell.defaultOptions = { scriptPath: '../scripts' };\r\n```\r\n\r\n#### `#run(script, options)`\r\n\r\nRuns the Python script and returns a promise. When you handle the promise the argument will be an array of messages emitted from the Python script.\r\n\r\nExample:\r\n\r\n```typescript\r\n// run a simple script\r\nPythonShell.run('script.py', null).then(results => {\r\n  // script finished\r\n});\r\n```\r\n\r\n#### `#runString(code, options)`\r\n\r\nRuns the Python script and returns a promise. When you handle the promise the argument will be an array of messages emitted from the Python script.\r\n\r\nExample:\r\n\r\n```typescript\r\n// run some simple code\r\nPythonShell.runString('x=1;print(x)', null).then(messages=>{\r\n  // script finished\r\n});\r\n```\r\n\r\n#### `#checkSyntax(code:string)`\r\n\r\nChecks the syntax of the code and returns a promise.\r\nPromise is rejected if there is a syntax error.\r\n\r\n#### `#checkSyntaxFile(filePath:string)`\r\n\r\nChecks the syntax of the file and returns a promise.\r\nPromise is rejected if there is a syntax error.\r\n\r\n#### `#getVersion(pythonPath?:string)`\r\n\r\nReturns the python version as a promise. Optional pythonPath param to get the version \r\nof a specific python interpreter.\r\n\r\n#### `#getVersionSync(pythonPath?:string)`\r\n\r\nReturns the python version. Optional pythonPath param to get the version \r\nof a specific python interpreter.\r\n\r\n#### `.send(message)`\r\n\r\nSends a message to the Python script via stdin. The data is formatted according to the selected mode (text or JSON), or through a custom function when `formatter` is specified.\r\n\r\nExample:\r\n\r\n```typescript\r\n// send a message in text mode\r\nlet shell = new PythonShell('script.py', { mode: 'text'});\r\nshell.send('hello world!');\r\n\r\n// send a message in JSON mode\r\nlet shell = new PythonShell('script.py', { mode: 'json'});\r\nshell.send({ command: \"do_stuff\", args: [1, 2, 3] });\r\n```\r\n\r\n#### `.end(callback)`\r\n\r\nCloses the stdin stream, allowing the Python script to finish and exit. The optional callback is invoked when the process is terminated.\r\n\r\n#### `.kill(signal)`\r\n\r\nTerminates the python script. A kill signal may be provided by `signal`, if `signal` is not specified SIGTERM is sent.\r\n\r\n#### event: `message`\r\n\r\nAfter the stdout stream is split into chunks by stdoutSplitter the chunks are parsed by the parser and a message event is emitted for each parsed chunk. This event is not emitted in binary mode.\r\n\r\nExample:\r\n\r\n```typescript\r\n// receive a message in text mode\r\nlet shell = new PythonShell('script.py', { mode: 'text'});\r\nshell.on('message', function (message) {\r\n  // handle message (a line of text from stdout)\r\n});\r\n\r\n// receive a message in JSON mode\r\nlet shell = new PythonShell('script.py', { mode: 'json'});\r\nshell.on('message', function (message) {\r\n  // handle message (a line of text from stdout, parsed as JSON)\r\n});\r\n```\r\n\r\n#### event: `stderr`\r\n\r\nAfter the stderr stream is split into chunks by stderrSplitter the chunks are parsed by the parser and a message event is emitted for each parsed chunk. This event is not emitted in binary mode.\r\n\r\nExample:\r\n\r\n```typescript\r\n// receive a message in text mode\r\nlet shell = new PythonShell('script.py', { mode: 'text'});\r\nshell.on('stderr', function (stderr) {\r\n  // handle stderr (a line of text from stderr)\r\n});\r\n```\r\n\r\n#### event: `close`\r\n\r\nFires when the process has been terminated, with an error or not.\r\n\r\n#### event: `pythonError`\r\n\r\nFires when the process terminates with a non-zero exit code.\r\n\r\n#### event: `error`\r\n\r\nFires when:\r\n* The process could not be spawned, or\r\n* The process could not be killed, or\r\n* Sending a message to the child process failed.\r\n\r\nIf the process could not be spawned please double-check that python can be launched from the terminal.\r\n\r\n### NewlineTransformer\r\n\r\nA utility class for splitting stream data into newlines. Used as the default for stdoutSplitter and stderrSplitter if they are unspecified. You can use this class for any extra python streams if you'd like. For example:\r\n\r\n```python\r\n# foo.py\r\nprint('hello world', file=open(3, \"w\"))\r\n```\r\n\r\n```typescript\r\nimport { PythonShell, NewlineTransformer, Options } from 'python-shell'\r\n\r\nconst options: Options = {\r\n    'stdio':\r\n        ['pipe', 'pipe', 'pipe', 'pipe'] // stdin, stdout, stderr, custom\r\n}\r\nconst pyshell = new PythonShell('foo.py', options)\r\n\r\nconst customPipe = pyshell.childProcess.stdio[3]\r\ncustomPipe.pipe(new NewlineTransformer()).on('data', (customResult: Buffer) => {\r\n    console.log(customResult.toString())\r\n})\r\n```\r\n\r\n## Used By:\r\n\r\nPython-Shell is used by [arepl-vscode](https://github.com/almenon/arepl-vscode), [gitinspector](https://github.com/ejwa/gitinspector), [pyspreadsheet](https://github.com/extrabacon/pyspreadsheet), [AtlantOS Ocean Data QC](https://github.com/ocean-data-qc/ocean-data-qc) and more!\r\n\r\n## License\r\n\r\nThe MIT License (MIT)\r\n\r\nCopyright (c) 2014 Nicolas Mercier\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy\r\nof this software and associated documentation files (the \"Software\"), to deal\r\nin the Software without restriction, including without limitation the rights\r\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\ncopies of the Software, and to permit persons to whom the Software is\r\nfurnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in\r\nall copies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r\nTHE SOFTWARE.\r\n","_attachments":{},"homepage":"http://github.com/extrabacon/python-shell","bugs":{"url":"http://github.com/extrabacon/python-shell/issues"},"license":"MIT"}