Coder Social home page Coder Social logo

glavin001 / node-python Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jeansebtr/node-python

0.0 3.0 0.0 164 KB

a binding between node.js (really, the V8 engine) and python. super beta super buggy super great

License: BSD 3-Clause "New" or "Revised" License

node-python's Introduction

node-python binding

python bridge for nodejs!

Hyper-beta, don't hesitate to try and report bugs!

Build Status

Installation

npm install node-python

Usage

// python stuff
var python = require('node-python');
var os = python.import('os');

// nodejs stuff
var path = require('path');

assert(os.path.basename(os.getcwd()) == path.basename(process.cwd()))

You should now go have fun with that and make it brokes :)

Current status

What should work:

  • Conversion between None and Undefined
  • Conversion between Python's and Node's Boolean
  • Conversion between Python's and Node's String
  • Calling python functions from node
  • Conversion from Python's Array to Node's Array

What may be broken:

  • Losing precision from Python's 64 bits Integer to Node's Number
  • If you're using node v0.6.x (please upgrade) you'll have to manually compile with node-gyp

What's to be done:

  • Conversion from Node's Array to Python's Array
  • Pass javascript object to python
  • Call javascript function from python

What would be realy awesome:

  • Proper object introspection

History

  • v0.0.4 : 2013-10-09
    • use the bindings module to load the native extension
  • v0.0.3 : 2013-07-06
    • Refactor
    • Better type conversion & error handling
    • Compilation now properly working on both OSX and Linux. Windows compilation may work too
  • v0.0.2 : 2012-12-21

node-python's People

Contributors

chrisdickinson avatar jeansebtr avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.