All Projects → nitely → python-react-v8

nitely / python-react-v8

Licence: MIT license
⭐ Render React.js views server-side

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to python-react-v8

V8
✔️8️⃣ 分析V8和周边技术、并且着手代码的优化
Stars: ✭ 179 (+126.58%)
Mutual labels:  v8
zig-v8
Simple V8 builds with C and Zig bindings.
Stars: ✭ 87 (+10.13%)
Mutual labels:  v8
v8-android-buildscripts
V8 build scripts for React Native Android
Stars: ✭ 63 (-20.25%)
Mutual labels:  v8
Unreal.js Core
Unreal.js plugin submodule
Stars: ✭ 189 (+139.24%)
Mutual labels:  v8
bytenode
A minimalist bytecode compiler for Node.js
Stars: ✭ 2,042 (+2484.81%)
Mutual labels:  v8
all-about-node
All about Node.js
Stars: ✭ 16 (-79.75%)
Mutual labels:  v8
V8 Natives
Access v8 Engine Natives easily in Chrome & Node
Stars: ✭ 161 (+103.8%)
Mutual labels:  v8
coverage-node
A simple CLI to run Node.js and report code coverage.
Stars: ✭ 39 (-50.63%)
Mutual labels:  v8
WebView4Delphi
WebView4Delphi is an open source project created by Salvador Díaz Fau to embed Chromium-based browsers in applications made with Delphi or Lazarus/FPC for Windows.
Stars: ✭ 157 (+98.73%)
Mutual labels:  v8
OldCEF4Delphi
OldCEF4Delphi is an open source project to embed Chromium-based browsers in applications made with Delphi.
Stars: ✭ 55 (-30.38%)
Mutual labels:  v8
Php V8
PHP extension for V8 JavaScript engine
Stars: ✭ 197 (+149.37%)
Mutual labels:  v8
Electron
Build cross-platform desktop apps with JavaScript, HTML, and CSS
Stars: ✭ 99,383 (+125701.27%)
Mutual labels:  v8
docker-v8
Docker V8 Image
Stars: ✭ 26 (-67.09%)
Mutual labels:  v8
Easy Monitor
企业级 Node.js 应用性能监控与线上故障定位解决方案
Stars: ✭ 2,451 (+3002.53%)
Mutual labels:  v8
react-native-js-benchmark
JavaScript Engine Benchmark for React Native
Stars: ✭ 100 (+26.58%)
Mutual labels:  v8
Discovery
Discoveries on Sustainable Loading research
Stars: ✭ 174 (+120.25%)
Mutual labels:  v8
FENews.org
fenews.org
Stars: ✭ 20 (-74.68%)
Mutual labels:  v8
raw-nodejs-api
An users NodeJS API without packages libs or frameworks!
Stars: ✭ 31 (-60.76%)
Mutual labels:  v8
openrasp-v8
Google V8 with OpenRASP builtins
Stars: ✭ 42 (-46.84%)
Mutual labels:  v8
node-mini
Mini Node.js runtime built on V8
Stars: ✭ 24 (-69.62%)
Mutual labels:  v8

Python-React-V8

Build Status Coverage Status pypi licence

Thin wrapper around v8-cffi to render React views server-side.

Compatibility

What v8-cffi supports

Install

$ pip install python-react-v8

Usage

import react

from my_web_framework import render, orm, runserver


def index(request):
    """A naive implementation for a fake web-framework"""
    data = orm.query().only('name', 'age', 'location')
    react_ = react.React({
        'url': request.get_full_url(),
        'data': data})
    context = {
        'content': react_.render(),
        'data': react_.to_json(data)}

    return render('index.html', context)


if __name__ == '__main__':
    react.set_up() # Initialize V8 machinery
    react.utils.load_libs(['./bundle.js'])
    runserver(index)

Read the docs.

Examples

Build examples

$ make build-examples

Tests

$ make test

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].