This release is a pre-release and may not be stable for production use.
NotImportChecker
Python module used on editors to check if a imported module is installed.
Examples
Test file
test1.py
import os
print(os.listdir('.'))
test2.py
import os
import dontExist
print(os.listdir('.'))
Use
>>> from notimportchecker import *
>>> c = Checker('test1.py')
>>> c
<notimportchecker.Checker object at 0x7f172352bdd0>
>>> c.get_imports()
{'os': {'lineno': 1, 'mod_name': {'os': 'os'}}}
>>> l = c.get_not_imports_on_file(c.get_imports())
>>> c._import_error_list
{}
>>> print_report(l)
There are not not imports
>>> c = Checker('test2.py')
>>> c.get_imports()
{'os': {'lineno': 1, 'mod_name': {'os': 'os'}}, 'dontExist': {'lineno': 2, 'mod_name': {'dontExist': 'dontExist'}}}
>>> print(c.get_not_imports_on_file(c.get_imports()))
{'dontExist': {'lineno': 2, 'mod_name': 'dontExist'}}
>>> print_report(l)
dontExist module have 2 Not Imports
dontExist on line: 2
Metadata
Release files for NotImportChecker 0.0.1b1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| NotImportChecker-0.0.1b1.tar.gz | 16.4 kB | Without provenance | Details for NotImportChecker-0.0.1b1.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| NotImportChecker-0.0.1b1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for NotImportChecker-0.0.1b1-py2.py3-none-any.whl |
| NotImportChecker-0.0.1b1-py2.7.egg | Legacy Egg format | - | - | Details for NotImportChecker-0.0.1b1-py2.7.egg |
Total release size: 24.9 kB
Release files / NotImportChecker-0.0.1b1.tar.gz
| Download URL | NotImportChecker-0.0.1b1.tar.gz |
|---|---|
| Size | 16.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
99a86bdd711e99d274e9d9fcc62561dac5f9654bdff39036b4784e0ff69da24b
|
|
BLAKE2b-256 checksum How to use checksums |
b4f2b52aad7508f76b1c7ca9b812de1ced59806caec52d43c0debab634d32bac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / NotImportChecker-0.0.1b1-py2.py3-none-any.whl
| Download URL | NotImportChecker-0.0.1b1-py2.py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a31a417c7dd569322fc5a7d96d6e940a9d960728fcb46f0803ea2743aec0bd5c
|
|
BLAKE2b-256 checksum How to use checksums |
c28941b3946756b5aa8b26faefa689764a7f04712a3cda97df64961fe525b9d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / NotImportChecker-0.0.1b1-py2.7.egg
| Download URL | NotImportChecker-0.0.1b1-py2.7.egg |
|---|---|
| Size | 5.2 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
3de3085f516896c252beddc83965a4524b441e60f167865590e438d38933b3ec
|
|
BLAKE2b-256 checksum How to use checksums |
1d44c3b6dfadb496fafa84d78991da682152cc4dc9b23eb8088b4861ae03ec40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for NotImportChecker 0.0.1b1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.