Welcome!
import-watch allows to trace module imports and detect/deny cyclic imports at runtime with Python 2 and 3. It is licensed under the MIT license.
Enjoy!
Installation
# pip install import-watch
Usage
Trace imports
import import_watch
import_watch.trace_imports(depth=2) # default depth is unlimited
Detect and warn about cyclic imports (at runtime)
import import_watch
import_watch.warn_about_cyclic_imports()
Deny cyclic imports (at runtime)
import import_watch
import_watch.deny_cyclic_imports()
Start fresh
import import_watch
[..]
import_watch.reset()
Metadata
Release files for import-watch 2.0.1
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 |
|---|---|---|---|---|
| import-watch-2.0.1.tar.gz | 3.6 kB | Without provenance | Details for import-watch-2.0.1.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| import_watch-2.0.1-py3-none-any.whl | Python 3 | none | any | Details for import_watch-2.0.1-py3-none-any.whl |
| import_watch-2.0.1-py2-none-any.whl | Python 2 | none | any | Details for import_watch-2.0.1-py2-none-any.whl |
Total release size: 13.0 kB
Release files / import-watch-2.0.1.tar.gz
| Download URL | import-watch-2.0.1.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
81215c64303a10f058a39ddb2fa691def0ed258daa853fb27ee7cb896ef36cf2
|
|
BLAKE2b-256 checksum How to use checksums |
42e3a49e8929bbe1a93a54a78920ac8a01ca2eb95ab0bcf68a6c53a635bbef92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.10
|
Release files / import_watch-2.0.1-py3-none-any.whl
| Download URL | import_watch-2.0.1-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
753c8f442d00b62bd63fcead45456689f4ec8c2bb8591366382f2c5f30c29f4b
|
|
BLAKE2b-256 checksum How to use checksums |
62945e6b3d3046850b0307c3fdf48fc640787cf703d209799db942e5451b9663
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.10
|
Release files / import_watch-2.0.1-py2-none-any.whl
| Download URL | import_watch-2.0.1-py2-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
f50e2a3b327caae7804bdda2ff1be7adbcf12feece30eea591e91c5f141507f2
|
|
BLAKE2b-256 checksum How to use checksums |
cf907c86628cd35e6ab5033891ae0a4dd3cc0a0a2097f02941edf2898684c3d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.10
|
Security for import-watch 2.0.1
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.