Skip to main content

A Node.js-like runtime for Python.

Project description

.. raw:: html

<p align="center">

.. raw:: html

</p>

.. raw:: html

<p align="center">

.. raw:: html

</p>

.. raw:: html

<h2>

Node.py

.. raw:: html

</h2>

Node.py is a Python runtime compatible with CPython 2.7 and 3.3 – 3.6.
It provides a separate but superior import mechanism for modules,
bringing dependency management and ease of deployment for Python
applications up to par with other languages, **without virtualenvs**.
Node.py is inspired by `Node.js <https://nodejs.org>`__.

Nodepy-pm, Node.py's package manager, allows you to install and manage
standard Python packages (using Pip under the hood) *as well* as Node.py
package. Nodepy-pm is a powerful tool for deploying Node.py applications
and command-line tools.

Installation
============

Node.py is available from PyPI as ``nodepy-runtime``. The Python version
that you install it into will also be the Python version that you will
use in your Node.py code. (Note that the ``six`` module is always
available when using Node.py, allowing you to write cross-Python version
code easily).

::

$ pip install nodepy-runtime

Add the ``--user`` flag if you don't want to install Node.py
system-wide.

Installing nodepy-pm
====================

Either **install from the online script** using the following command:

::

$ nodepy https://nodepy.org/install-pm.py

Or **install from the repository**:

::

$ git clone https://github.com/nodepy/nodepy-pm.git
$ nodepy nodepy-pm/scripts/install.py

**Note** The installer is *not* able to automatically detect whether
Node.py was installed system-wide or with the ``--user`` option. If you
installed Node.py with the ``--user`` option, pass the ``--global``
option to the install-script (global meaning user-location). The default
is to install with ``--root`` (system-wide).

::

$ nodepy https://nodepy.org/install-pm.py --global

Todolist
========

- Python bytecache loading/writing
- Node.js-style traceback (Python's traceback sucks)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nodepy-runtime-2.0.0.tar.gz (21.3 kB view details)

Uploaded Source

File details

Details for the file nodepy-runtime-2.0.0.tar.gz.

File metadata

File hashes

Hashes for nodepy-runtime-2.0.0.tar.gz
Algorithm Hash digest
SHA256 f8560e2e1d229762125ff96582eb2879c7824ca4953da4f9dbe3a2fbb67a0322
MD5 c00a7c041b51bfb558d39450413e80cb
BLAKE2b-256 ffea61dfb3c5778edcaea42599bfe4b84e8cfd82cfa0ada0f4d041039ce88c62

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page