Coder Social home page Coder Social logo

ofxpython's Introduction

ofxPython

(c) 2014 Carles F. Julià [email protected]

Introduction

May be you are like me and love Python and openFrameworks, or maybe you just need to embed a scripting engine and dislike Lua. Lua is nice but Python comes full of batteries.

This addon allows you to embed a Python interpreter into an openFrameworks application, and offers Python bindings to many OF functions, so you can draw from Python code.

This addon uses the common swig bindings for OF.

License

See license.md. Spoiler alert: it's MIT

Installation

Drop the folder into the OF/addons/ folder. If your project generator is clever enough it will copy the OF/addons/ofxPython/lib/openframeworks.py file into the data/ folder, copy it manually otherwise.

You will need Python (2.7 tested) installed in order to compile your program.

Compatibility

It is now compiling both in Linux64, Windows (Code::Blocks) and OSX. Generated for OF 0.8.4

Re-generating the bindings

In case that you want to regenerate the bindings, do so with SWIG:

$ cd swig
$ make desktop LANG=python SWIG=swig3.0 DEST_LANG_DIR=../lib

Known issues

  • Not fully tested

Contributing

Please do! Open issues, send pull requests etc.

ofxpython's People

Contributors

chaosct avatar

Watchers

 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.