Skip to main content

A Library For Dynamically Importing Modules. Inspired By **Node.js** `require` Function.

Project description

Use

A Library For Dynamically Importing Modules. Inspired By Node.js require Function.


Installation

Use can be installed using Pip by the command:-


    [sudo] pip install use

Usage

If the file structure is like:-


    test/
    	test/
    		__init__.py
    		test.py
    		utils/
    			__init__.py
    			utils.py

If you want to import test/test/__init__.py in the file test/test/utils/utils.py it is not possible, but using Use you can do it by putting the following snippet in test/test/utils/utils.py file.


    from use import use

    initFile = use("./../__init__")


License Under The MIT License A Project By Shardul Nalegave

Project details


Release history Release notifications

This version
History Node

0.1.0

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
use-0.1.0-py3-none-any.whl (2.8 kB) Copy SHA256 hash SHA256 Wheel py3
use-0.1.0.tar.gz (2.6 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page