{ "info": { "author": "Esteban Castro Borsani", "author_email": "ecastroborsani@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "# V8-CFFI\n\n[![Build Status](https://img.shields.io/travis/nitely/v8-cffi.svg?style=flat-square)](https://travis-ci.org/nitely/v8-cffi)\n[![Coverage Status](https://img.shields.io/coveralls/nitely/v8-cffi.svg?style=flat-square)](https://coveralls.io/r/nitely/v8-cffi)\n[![pypi](https://img.shields.io/pypi/v/v8-cffi.svg?style=flat-square)](https://pypi.python.org/pypi/v8-cffi)\n[![licence](https://img.shields.io/pypi/l/v8-cffi.svg?style=flat-square)](https://raw.githubusercontent.com/nitely/v8-cffi/master/LICENSE)\n\nEmbed the V8 Javascript engine into Python.\n\n> *Note: The initial purpose of this library is to render React components server side.*\n\n\n## Compatibility\n\n* GCC +4.8\n* G++ +4.8\n* Python 2.7, 3.4, 3.5 and PyPy 5.3\n\n> *Note:* ***Linux-x64*** *is the only (officially) supported platform.\n To build the binaries for other platforms, the `./dev` steps\n must be adapted (probably to vagrant instead of docker) accordingly.\n PRs are welcome.*\n\n\n## Usage\n\n```python\nfrom v8cffi import shortcuts\nshortcuts.set_up()\n\nctx = shortcuts.get_context()\nctx.load_libs(['./foo_bundled.js'])\nctx.run_script('foo.render(\"hola mundo\");')\n# \"hola mundo\"\n```\n\nRead the [docs](http://v8-cffi.readthedocs.org/en/latest/).\n\n\n## Notes\n\n* Currently ships with V8 4.9.385.33 (stable).\n* This repo contains V8 static files for Linux-x64,\n built with CentOS 6.7 (glibc 2.12),\n it's known to work in Ubuntu 12.04/14.04/16.04.\n\n\n## Resources\n\n* [How does NodeJS works?](https://medium.com/@ghaiklor/how-nodejs-works-bfe09efc80ca#.antxxwpsv)\n* [Beautiful Native Libraries](http://lucumr.pocoo.org/2013/8/18/beautiful-native-libraries/)\nor [alt](https://github.com/mitsuhiko/lucumr/blob/master/2013/8/18/beautiful-native-libraries.rst)\n* [V8 Custom Snapshots](http://v8project.blogspot.com.ar/2015/09/custom-startup-snapshots.html)\n* [V8 Cache Code](http://v8project.blogspot.com.ar/2015/07/code-caching.html)\n* [Latest stable V8](https://gist.github.com/nitely/9668d9feab88644148a1e62322ff11c5)\n* [V8 Wiki](https://github.com/v8/v8/wiki)\n* [V8 Embedder's Guide](https://developers.google.com/v8/embed)\n* [V8 users group](https://groups.google.com/forum/#!forum/v8-users)\n* [CFFI user group](https://groups.google.com/forum/#!forum/python-cffi)\n* [CFFI - Distribute including a (pre-)compiled library](https://groups.google.com/forum/#!topic/python-cffi/y5iNsezOlVs)\n\n\n## Devs\n\n[Devs](https://github.com/nitely/v8-cffi/tree/master/dev)\n\n\n## Benchmarks\n\nThis will run some silly benchmarks.\nIt runs about ~110k ops/s on a 1.8GHz CPU.\n\n```\n$ make benchmarks\n```\n\n\n## License\n\nMIT", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nitely/v8-cffi", "keywords": null, "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "v8-cffi", "package_url": "https://pypi.org/project/v8-cffi/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/v8-cffi/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/nitely/v8-cffi" }, "release_url": "https://pypi.org/project/v8-cffi/0.2.1/", "requires_dist": null, "requires_python": null, "summary": "Embed the V8 Javascript engine into Python.", "version": "0.2.1" }, "last_serial": 2266899, "releases": { "0.0.1": [ { "comment_text": "Python 3 only", "digests": { "md5": "65394e7dcde6bea9fbd7fd9922ceef1d", "sha256": "29dfa6585297cf62d37d723388d5664d15eb3a60693a610dd80d8e108cbb5fcf" }, "downloads": -1, "filename": "v8-cffi-0.0.1.tar.gz", "has_sig": false, "md5_digest": "65394e7dcde6bea9fbd7fd9922ceef1d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11984753, "upload_time": "2016-04-16T23:38:10", "url": "https://files.pythonhosted.org/packages/a1/ec/8ef89995e1d89bcfc34dd74858ac0e57c87e6345cabd49d8c3c0ed55e3b0/v8-cffi-0.0.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "617f841ff33d6cabf570e54554770c15", "sha256": "95f94d04c8ddd1500c560024eedcf5ab43c30c237eb2f5d28f5738971177fcbf" }, "downloads": -1, "filename": "v8-cffi-0.2.0.tar.gz", "has_sig": false, "md5_digest": "617f841ff33d6cabf570e54554770c15", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13334904, "upload_time": "2016-06-04T02:02:57", "url": "https://files.pythonhosted.org/packages/01/e3/69cfdfd2ddca93694e98e09200697454bb4fce1500eba23944caca74e219/v8-cffi-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "af8974b0cf1a4706af797f5a6fcaa785", "sha256": "1bcfdc48bb61e8a6648fade4eb1711d89ce9d4746dde8e6d29a0c38056f742a7" }, "downloads": -1, "filename": "v8-cffi-0.2.1.tar.gz", "has_sig": false, "md5_digest": "af8974b0cf1a4706af797f5a6fcaa785", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13335068, "upload_time": "2016-08-07T17:36:02", "url": "https://files.pythonhosted.org/packages/0b/14/f24f90fa45f0ac2e990e483d9276bd049fd6ace4b6cbe7179e1fb9199d27/v8-cffi-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "af8974b0cf1a4706af797f5a6fcaa785", "sha256": "1bcfdc48bb61e8a6648fade4eb1711d89ce9d4746dde8e6d29a0c38056f742a7" }, "downloads": -1, "filename": "v8-cffi-0.2.1.tar.gz", "has_sig": false, "md5_digest": "af8974b0cf1a4706af797f5a6fcaa785", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13335068, "upload_time": "2016-08-07T17:36:02", "url": "https://files.pythonhosted.org/packages/0b/14/f24f90fa45f0ac2e990e483d9276bd049fd6ace4b6cbe7179e1fb9199d27/v8-cffi-0.2.1.tar.gz" } ] }