nodepy is a CPython platform heavily inspired by Node.js for building reproducible and easily distributable applications. While it provides its own package manager nppm (similar to npm), re-using existing standard Python modules from PyPI is highly encouraged.
Additional Links
Python's Import-mechanism is very limited and hardly customizable, which can
lead to problems in pluggable environments such as plugin infrastructures. When
multiple components provide their own version of a Python module, it can lead
to clashes in sys.modules
and have one component potentially import the
wrong module. Node.js" require()
solves this very elegantly, as it is always
first resolved based on the location of the file that uses it. Just like
Node.js' has its node_modules/
directory, Node.py resolved requirements in
the nearest nodepy_modules/
directory.
nppm is an npm-inspired package manager for Node.py packages.
package.json
filerequire()
makes tracking the origin of a dependency more clear and
enables an arbitrary project structure--prefix
)pip install node.py
Install yassg, the build the documentation.
$ nppm install -g git+https://github.com/NiklasRosenstein/yassg.git
$ cd docs
$ yassg