Git Product home page Git Product logo

pywt's Introduction

pywt

Python bindings for WtPyWt consists of:

  • an introspection tool based on clang to extract API information from Wt header files. This introspection tool generates the API description files.
  • a set of python scripts that use the API description files to generate C++ code, being the core implementation of the python bindings
  • a set of C++ support files which are not generated, but are also required to complete the binding

Since a few functions are missing from clang, PyWt uses a modified version of clang to generate the introspection tool.

Steps to build:

  1. build llvm and a patched clang https://github.com/wdu/clang
  2. build and run the python-dump tool on wt.cc (add -I for Wt and boost)
  3. run descr-cleanup.sh
  4. run pywt-gen.sh
  5. mkdir build; cd build; cmake ..; make

Running the examples:

  • put the .so files in the extensions directory searched by python
  • cd examples/hello
  • python hello.py --docroot . --http-address 0.0.0.0 --http-port 8080
  • don't forget to create a link to the resources directory of Wt when your example requires files from the resources folder (most examples do).

State of the PyWt bindings: The state of the current project is alpha. It is work-in-progress, and is released in order to obtain feedback on the API, architecture, and performance. Any comments or patches are welcomed and appreciated. The Wt fora are the appropriate place to discuss PyWt.

See LICENSE file for license information.

pywt's People

Contributors

wdu avatar

Watchers

Massimo Di Stefano avatar James Cloos 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.