Skip to main content

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

Metadata

Release files for use 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for use 0.1.0
File Size Uploaded
use-0.1.0.tar.gz 2.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for use 0.1.0
File Interpreter ABI Platform
use-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.5 kB

Release files / use-0.1.0.tar.gz

Download URL use-0.1.0.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6ae8e96fb414b6bfd2bf45d59ab9115887cb24026fff9198600d643828a6797f
BLAKE2b-256 checksum
How to use checksums
84bea9642e953d9dba0d4da68bfc1b703a02970fea24390f9b656a6e3909e994
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6

Release files / use-0.1.0-py3-none-any.whl

Download URL use-0.1.0-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fb7eaecf82d810ee4bae194ef142467cffbcee96f08b1c3c1ad7dcc43b1f1e10
BLAKE2b-256 checksum
How to use checksums
3965a4fc1a7c178690b1e9415d16004aef68a913abfcb7fceb6766468c75adb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page