{"id":16418526,"url":"https://github.com/nitely/v8-cffi","last_synced_at":"2025-12-30T16:18:09.803Z","repository":{"id":62586908,"uuid":"56408002","full_name":"nitely/v8-cffi","owner":"nitely","description":"Embed the V8 Javascript Interpreter into Python","archived":false,"fork":false,"pushed_at":"2017-04-30T18:26:14.000Z","size":21350,"stargazers_count":36,"open_issues_count":6,"forks_count":7,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-10-12T07:14:16.823Z","etag":null,"topics":["cffi","python","v8","v8-javascript-engine"],"latest_commit_sha":null,"homepage":"http://v8-cffi.readthedocs.org","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nitely.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-16T22:15:15.000Z","updated_at":"2024-03-14T05:39:59.000Z","dependencies_parsed_at":"2022-11-03T22:16:15.033Z","dependency_job_id":null,"html_url":"https://github.com/nitely/v8-cffi","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitely%2Fv8-cffi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitely%2Fv8-cffi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitely%2Fv8-cffi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitely%2Fv8-cffi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nitely","download_url":"https://codeload.github.com/nitely/v8-cffi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221811374,"owners_count":16884305,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cffi","python","v8","v8-javascript-engine"],"created_at":"2024-10-11T07:14:21.984Z","updated_at":"2024-10-28T09:16:25.098Z","avatar_url":"https://github.com/nitely.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 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\u003e *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\u003e *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\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitely%2Fv8-cffi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnitely%2Fv8-cffi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitely%2Fv8-cffi/lists"}