Skip to main content

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


Download files

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

Source Distribution

noimport-0.0.1.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

noimport-0.0.1-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

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

Hashes for noimport-0.0.1.tar.gz
Algorithm Hash digest
SHA256 6c6dfa0d387cd1d5086dca99c21c6e7f61143cafa1e28cf350fb30050afc006f
MD5 41c5f9a5106923f93a76231796981afa
BLAKE2b-256 c108d6db20ff70b8bcb7b68a2c21d2b8c8c3f783ae68772d6d5111d1e7e19c3a

See more details on using hashes here.

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

Hashes for noimport-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 402e174798bd0ca4b02ac1e1aaad16f0fea84b91da08e21bca202dfe8af0f6cb
MD5 1db188dd93709a0a9c37ed5d692e3fa3
BLAKE2b-256 0325d0c199f8b4d13030b7944e95cc5170f463bc1b169485a408e88127bdf6a0

See more details on using hashes here.

Supported by

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