0.0.14 • Published 1 year ago

py2js v0.0.14

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year 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

1 year ago

0.0.11

1 year ago

0.0.12

1 year ago

0.0.13

1 year ago

0.0.14

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago