{"_id":"python","_rev":"35-a1c15d2a9f8866a9aba77c4949199313","name":"python","dist-tags":{"latest":"0.0.4"},"versions":{"0.0.0":{"name":"python","version":"0.0.0","author":{"url":"https://github.com/darrenderidder","name":"Darren DeRidder","email":"drderidder@gmail.com"},"_id":"python@0.0.0","homepage":"https://github.com/darrenderidder/node-python","dist":{"shasum":"439f50d0bb9bd01c4a8b27f39efe40096617a2a7","tarball":"https://registry.npmjs.org/python/-/python-0.0.0.tgz","integrity":"sha512-3C4aDUIWpQQXHv0mC/JjV7IWXln/lfwdfjuRrCKBuOQkNeT7e7wrZ+9RJ+AKAZE7xgpOu2y7X05S3+dZeRhiWA==","signatures":[{"sig":"MEYCIQDP2Xik8MnVyWpz7EOR0NDb/aU5luRK2cGGaUzDkrqY5wIhAKx5+U4EBltWkG09zkf1bnyNZ81W5OS8wj3BQAIeikkX","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./python.js","engines":{"node":">= 0.4.1 < 0.5.0"},"scripts":{},"repository":{"url":"git://github.com/darrenderidder/node-python.git","type":"git"},"_npmVersion":"1.0.15","description":"Interact with python child process using callbacks","directories":{},"_nodeVersion":"v0.4.8","_npmJsonOpts":{"file":"/Users/darren/.npm/python/0.0.0/package/package.json","wscript":false,"serverjs":false,"contributors":false},"dependencies":{},"_defaultsLoaded":true,"devDependencies":{},"_engineSupported":true},"0.0.1":{"name":"python","version":"0.0.1","author":{"url":"https://github.com/darrenderidder","name":"Darren DeRidder","email":"drderidder@gmail.com"},"_id":"python@0.0.1","homepage":"https://github.com/darrenderidder/node-python","dist":{"shasum":"0c41fe57c5d440f8fb6abddfd6cfd5fea631ebe0","tarball":"https://registry.npmjs.org/python/-/python-0.0.1.tgz","integrity":"sha512-wT9S6FJbkKy0J1PvGd5E6JBUBmYkymd7FITUIeKYWDeQEnOfqFTgeezkUoHT/LivOe9HVw+pCF/aNqrOcsbn+Q==","signatures":[{"sig":"MEUCIFCcFwWaJzkdueCm5bX/tHlaI6PyABQrPBYA9Mk+7mjAAiEA6mI4iSLv2bkO0gXmVDT2DvHBwX8rGtCTShc5im1wK9U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/python.js","engines":{"node":">= 0.4.1 < 0.5.0"},"scripts":{},"repository":{"url":"git://github.com/darrenderidder/node-python.git","type":"git"},"_npmVersion":"1.0.15","description":"Interact with python child process using callbacks","directories":{},"_nodeVersion":"v0.4.9","_npmJsonOpts":{"file":"/Users/darren/.npm/python/0.0.1/package/package.json","wscript":false,"serverjs":false,"contributors":false},"dependencies":{},"_defaultsLoaded":true,"devDependencies":{},"_engineSupported":true},"0.0.2":{"name":"python","version":"0.0.2","author":{"url":"https://github.com/darrenderidder","name":"Darren DeRidder","email":"drderidder@gmail.com"},"_id":"python@0.0.2","homepage":"https://github.com/darrenderidder/node-python","dist":{"shasum":"4db798dea00af67eeb07cc763405aa51a25ee357","tarball":"https://registry.npmjs.org/python/-/python-0.0.2.tgz","integrity":"sha512-8oPGEs3JECqDIubSpDd40PZvtnWiwoAbjGdmxoZFRGDbDUkJQFiESiQNU0fScfbgaiZSkWN2McGhi7uIy14Xaw==","signatures":[{"sig":"MEUCIQD3Y0VLr79uAvanr/tpjKgzm1Xc/8f0sHaTQ3zSyW3J0AIgMskUB/BD4FloBfiK56iwIxityDEktEhHXdzLG/0D+WA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/python.js","engines":{"node":">= 0.4.1 < 0.5.0"},"scripts":{},"repository":{"url":"git://github.com/darrenderidder/node-python.git","type":"git"},"_npmVersion":"1.0.15","description":"Interact with a long-running python child process","directories":{},"_nodeVersion":"v0.4.9","_npmJsonOpts":{"file":"/Users/darren/.npm/python/0.0.2/package/package.json","wscript":false,"serverjs":false,"contributors":false},"dependencies":{},"_defaultsLoaded":true,"devDependencies":{},"_engineSupported":true},"0.0.3":{"name":"python","version":"0.0.3","author":{"url":"https://github.com/darrenderidder","name":"Darren DeRidder","email":"drderidder@gmail.com"},"_id":"python@0.0.3","maintainers":[{"name":"drderidder","email":"drderidder@gmail.com"}],"homepage":"https://github.com/darrenderidder/node-python","bugs":{"url":"https://github.com/darrenderidder/node-python/issues"},"dist":{"shasum":"cd9a8b5158356a7312108f3f761d7f1c0952be47","tarball":"https://registry.npmjs.org/python/-/python-0.0.3.tgz","integrity":"sha512-n+EKvOa2VVaXb/YcNBDHI4F9BsX55DFmLhZbHC49CzwbCPMctB/oTFufY2ljMyiKzJiHULzreoeeAAkNC7Xlcg==","signatures":[{"sig":"MEQCIDqYajVXOnyT7R49d6qdyADyKKXDOJxheoasu6bjNQZTAiAExuDQAeuxCWeCuOD4kUbSoaSWFMkOfsE0QoRnbknHcA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/python.js","_from":"node-python/","_shasum":"cd9a8b5158356a7312108f3f761d7f1c0952be47","engines":{"node":">= 0.4.1"},"_npmUser":{"name":"drderidder","email":"drderidder@gmail.com"},"repository":{"url":"git://github.com/darrenderidder/node-python.git","type":"git"},"_npmVersion":"1.4.9","description":"Interact with a long-running python child process","directories":{}},"0.0.4":{"name":"python","version":"0.0.4","author":{"name":"Darren DeRidder"},"_id":"python@0.0.4","maintainers":[{"name":"drderidder","email":"drderidder@gmail.com"}],"homepage":"https://github.com/73rhodes/node-python","bugs":{"url":"https://github.com/73rhodes/node-python/issues"},"dist":{"shasum":"3094e898ef17a33aa9c3e973b3848a38e47d1818","tarball":"https://registry.npmjs.org/python/-/python-0.0.4.tgz","integrity":"sha512-7avKA/6XxrwcGSDes8xGn7FHAUdAUQXKHtpjDulyv5/nm7TcPblmPRvXjjwx5knWHqeRiipqH/TZR2HhmJ4CGQ==","signatures":[{"sig":"MEYCIQDTcraWPVJPEuVA+L+PXtImpuraCejA5Fr2vivCgF5orQIhAIhq9sQ1aWkPDJoTn/zboFBCSo/UqT6ypqwstwyyXgf8","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/python.js","_from":".","_shasum":"3094e898ef17a33aa9c3e973b3848a38e47d1818","engines":{"node":">= 0.4.1"},"gitHead":"69754aaa57658193916a1bf5fc391198098f74f6","scripts":{},"_npmUser":{"name":"drderidder","email":"drderidder@gmail.com"},"repository":{"url":"git://github.com/73rhodes/node-python.git","type":"git"},"_npmVersion":"1.4.23","description":"Interact with a long-running python child process","directories":{}}},"time":{"created":"2011-07-11T01:59:04.362Z","modified":"2026-01-17T19:21:20.655Z","0.0.0":"2011-07-11T01:59:05.137Z","0.0.1":"2011-07-17T05:23:33.166Z","0.0.2":"2011-07-20T03:42:50.379Z","0.0.3":"2014-06-08T00:39:08.562Z","0.0.4":"2015-01-25T02:48:07.820Z"},"bugs":{"url":"https://github.com/73rhodes/node-python/issues"},"author":{"name":"Darren DeRidder"},"homepage":"https://github.com/73rhodes/node-python","repository":{"url":"git://github.com/73rhodes/node-python.git","type":"git"},"description":"Interact with a long-running python child process","maintainers":[{"name":"drderidder","email":"drderidder@gmail.com"}],"readme":"node-python\n===========\n\nA super-simple wrapper for NodeJS to interact programatically with the Python shell. Enables the use of Python-based tools from Node.\n\n[![NPM Stats](https://nodei.co/npm/python.png?downloads=true&stars=true)](https://npmjs.org/package/python)\n\n![NPM Downloads](https://nodei.co/npm-dl/python.png?months=9)\n\nExample\n-------\nThis example starts a python child process, reads stdin for python commands, pipes them through to the python shell and runs the callback method with the resulting output. State is preserved in the shell between calls.\n\n```javascript\n// ------\n// app.js\n// ------\nvar python=require('python').shell;\n\n// a callback to handle the response\nvar mycallback = function(err, data) {\n   if (err) {\n     console.error(err);\n   } else {\n     console.log(\"Callback function got : \" + data);\n   }\n};\n\n// to test, read and execute commands from stdin\nprocess.stdin.resume();\nprocess.stdin.setEncoding('utf8');\nprocess.stdin.on('data', function(chunk) {\n   python(chunk, mycallback);\n});\n```\n\nLicense\n-------\nMIT\n","readmeFilename":"README.md","users":{"cnzxx":true,"ukuli":true,"nuwaio":true,"asaupup":true,"imlucas":true,"chbardel":true,"heyderpd":true,"benzolbub":true,"goliatone":true,"aditcmarix":true,"sapanbhuta":true,"dewang-mistry":true}}