Nicolas Mercier

Results 26 comments of Nicolas Mercier

I think you are correct, modules are not really user friendly with the current set of options. Maybe we could add a `module` property, which could set `scriptPath` and `pythonOptions`...

Sorry, I forgot to mention that the script argument would be optional with this approach. Here's an example: ``` js // using the new `module` property // also, `script` argument...

A transform stream sure is nice but I think it would be unnecessarily complex. We could easily make the message splitting more flexible by allowing to set the ending characters...

Sounds like a buffering issue. Stdin and stdout are buffered by default and you need to flush in order to "update immediately".

Sorry, you will have to wrap the callbacks with a 3rd party library for now. PRs are welcome though. See: http://bluebirdjs.com/docs/api/promisification.html

It means non-JSON content got written to stdout, which python-shell tried to parse as JSON. In JSON mode, all output should be JSON-encoded, with carriage returns for separating messages.

Right, it should be handled better. I'll keep that in mind for a future version.

If I understand correctly, you have successfully obtained a token via the `authenticate` method. For properly authenticating a request with most Google APIs, you need to add this HTTP header:...

You have 2 options: `authenticate` allows you to get the token and use it anywhere you like, but you can also use this module to make the request as well,...

This module will help you with the authorization part only. You need to follow the official documentation for the rest. https://developers.google.com/drive/v3/web/manage-uploads#uploads