Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Cython project management like npm in nodejs

Project Description

Cython project management like npm in nodejs. This project is inspired by npm in nodejs. ### Installation You can easily install by:

pip install cython-npm


When using cython, we face the problem of compile cython file. We can do it easily by:

import pyximport; pyximport.install()

But that it is not recommended to let pyximport build code on end user side as it hooks into their import system. The best way to cater for end users is to provide pre-built binary packages. So i wrote a package providing pre-built binary packages easily. #### Basic use to Complie file or folder:

from cython_npm.cythoncompile import export

You should do this code once time only. ### Create install file like package.json You can also compile many files or folders at once time. Create a file name in the root of your project/package and write the code below:

from cython_npm.cythoncompile import install
Manymodules = [
    # put your modules list here

Run the file before start your project


Using require(‘path’) as nodejs

You can also relative import in python by require function. For example:

from cython_npm.cythoncompile import require

# import .pyx file. Will cause error if not compile yet
examplefile = require('../parentpackage') # import cython package from parent folder

# it also support relative import .py file
examplefile = require('../parentpackage', recompile=True)

Release History

History Node


History Node


History Node


History Node


This version
History Node


History Node


History Node


History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(5.8 kB) Copy SHA256 Hash SHA256
Wheel py3 Mar 2, 2018
(4.0 kB) Copy SHA256 Hash SHA256
Source None Mar 2, 2018

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers