Skip to content

new-mind/pyjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Python bridge for javascript on base SpiderMonkey

At this moment library does not support converting python variables to javascript variables and back. Use json.dumps and JSON.parse to communicate each other.

Usage

import pyjs

cx = pyjs.Context()
cx.eval('var a = 1')
import pyjs

cx = pyjs.Context()
cx.setGlobal("intVar", 1)
cx.setGlobal("object", {'type': 'someGlobalObject'})
cx.eval('intVar * 2')

Testing

  • python setup.py test

Thanks

About

Python-Javascript bridge for SpiderMonkey

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published