Skip to content

Latest commit

 

History

141 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages