A simple package to prevent the abusive use of 'import' statement in Python.
Project description
noimport v0.0.1
A simple package to prevent the abusive use of the import statement in Python.
Installation
To install, just run:
pip install noimport
Usage
After importing the noimport package, any attempts of importation would result in an error
>>> import noimport
>>> import time # Built in modules won't work, ...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: import of time halted; None in sys.modules
>>> import foo # ... nor local modules, ...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'foo'
>>> import PIL # ... nor pip installed packages
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'PIL'
License
This project is licensed under the MIT license
Python without modules and packages, how bad can it be?
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file noimport-0.0.1.tar.gz.
File metadata
- Download URL: noimport-0.0.1.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/51.3.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c6dfa0d387cd1d5086dca99c21c6e7f61143cafa1e28cf350fb30050afc006f
|
|
| MD5 |
41c5f9a5106923f93a76231796981afa
|
|
| BLAKE2b-256 |
c108d6db20ff70b8bcb7b68a2c21d2b8c8c3f783ae68772d6d5111d1e7e19c3a
|
File details
Details for the file noimport-0.0.1-py3-none-any.whl.
File metadata
- Download URL: noimport-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/51.3.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
402e174798bd0ca4b02ac1e1aaad16f0fea84b91da08e21bca202dfe8af0f6cb
|
|
| MD5 |
1db188dd93709a0a9c37ed5d692e3fa3
|
|
| BLAKE2b-256 |
0325d0c199f8b4d13030b7944e95cc5170f463bc1b169485a408e88127bdf6a0
|