0.0.14 • Published 2 years ago

py2js v0.0.14

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

py2js

Py2js wraps python-bridge allowing any python library to be used as if it were a JS library instead.

For example once you've installed numpy through pip you can run the following.

 const py = py2js();
  const np = py("numpy");
  const npArray = np.array([1, 2, 3]);
  const flipped = np.flip(npArray);
  const preList = flipped.tolist();
  expect(await preList.__get()).toEqual([3, 2, 1]);

  const list = np.array([npArray, flipped]).tolist();
  expect(await list.__get()).toEqual([
    [1, 2, 3],
    [3, 2, 1],
  ]);
  py.end();
0.0.10

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.14

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago