python-wasm
Advanced tools
Sorry, the diff of this file is not supported yet
+2
-1
@@ -1,1 +0,2 @@ | ||
| export { python } from "@wapython/core"; | ||
| import * as python from "@wapython/core"; | ||
| export default python; |
+25
-3
| "use strict"; | ||
| var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
| if (k2 === undefined) k2 = k; | ||
| var desc = Object.getOwnPropertyDescriptor(m, k); | ||
| if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
| desc = { enumerable: true, get: function() { return m[k]; } }; | ||
| } | ||
| Object.defineProperty(o, k2, desc); | ||
| }) : (function(o, m, k, k2) { | ||
| if (k2 === undefined) k2 = k; | ||
| o[k2] = m[k]; | ||
| })); | ||
| var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
| Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
| }) : function(o, v) { | ||
| o["default"] = v; | ||
| }); | ||
| var __importStar = (this && this.__importStar) || function (mod) { | ||
| if (mod && mod.__esModule) return mod; | ||
| var result = {}; | ||
| if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
| __setModuleDefault(result, mod); | ||
| return result; | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.python = void 0; | ||
| var core_1 = require("@wapython/core"); | ||
| Object.defineProperty(exports, "python", { enumerable: true, get: function () { return core_1.python; } }); | ||
| var python = __importStar(require("@wapython/core")); | ||
| exports.default = python; | ||
| //# sourceMappingURL=index.js.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,uCAAwC;AAA/B,8FAAA,MAAM,OAAA"} | ||
| {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAyC;AACzC,kBAAe,MAAM,CAAC"} |
+5
-8
| { | ||
| "name": "python-wasm", | ||
| "version": "0.0.1", | ||
| "version": "0.2.0", | ||
| "description": "WebAssembly Python", | ||
@@ -10,5 +10,3 @@ "main": "dist/index.js", | ||
| "build": "npx tsc", | ||
| "tsc": "npx tsc -w", | ||
| "test": "jest ./dist", | ||
| "test-watch": "jest --watch ./dist" | ||
| "tsc": "npx tsc -w" | ||
| }, | ||
@@ -19,3 +17,3 @@ "repository": { | ||
| }, | ||
| "keywords": ["number", "theory"], | ||
| "keywords": ["python", "webassembly"], | ||
| "author": "William Stein", | ||
@@ -27,6 +25,5 @@ "license": "BSD-3-Clause", | ||
| "homepage": "https://github.com/sagemathinc/wapython/tree/main/packages/python-wasm", | ||
| "workspaces": ["../wasi", "../core"], | ||
| "workspaces": ["../core"], | ||
| "dependencies": { | ||
| "@wapython/wasi": "^0.15.0", | ||
| "@wapython/core": "^0.2.3" | ||
| "@wapython/core": "^0.3.0" | ||
| }, | ||
@@ -33,0 +30,0 @@ "devDependencies": { |
+9
-3
| # python-wasm | ||
| ## Quickstart | ||
| ## Quickstart in Node.js | ||
@@ -15,5 +15,11 @@ ``` | ||
| Type ".help" for more information. | ||
| > const {python} = require('python-wasm') | ||
| > const python = require('python-wasm') | ||
| > await python.init() | ||
| > python.exec('2+3') | ||
| 5 | ||
| 5 | ||
| ``` | ||
| ## Webpack | ||
| See https://github.com/sagemathinc/wapython/tree/main/packages/webpack | ||
2952
49.09%1
-50%8
14.29%37
164.29%25
38.89%+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated