pymport

v1.5.1
Use Python libraries from Node.js
python node.js import require compatibility scipy numpy pandas graph_tool and 2 more...

install

node-pre-gyp install --fallback-to-build && node scripts/patch-prefix.js

test

mocha

doc

npx documentation readme --readme-file wiki/API.md --section API --config=documentation.yml lib/*.d.ts

wiki

cd wiki && git add API.md && git diff-index --quiet HEAD || git commit -m 'update API'

wiki:sidebar

cd wiki && github-wiki-sidebar --silent

build

npx node-pre-gyp configure && npx node-pre-gyp build

lint

clang-format -i src/*.cc src/*.h && eslint lib/*.[tj]s test/*.[tj]s

gcov

mkdir -p coverage && cd coverage && gcov -o ../build/Debug/obj.target/pymport/src ../src/*

lcov

npx c8 report --reporter=text-lcov > coverage/tests.lcov

codecov

cd coverage && curl -s https://codecov.io/bash | bash

preversion

npm run lint && npm run test && npm run doc && npm run wiki && git add wiki

postversion

git push && git push --tags && node ./scripts/publish-packages.js

postpublish

gh workflow run test-package.yml -F version=$npm_package_version

bench

node bench/bench.js
npm i pymport

Metadata

  • ISC
  • >= 16.0.0
  • Momtchil Momtchev
  • released 4/2/2024

Downloads

Maintainers