Skip to main content

Python Find imported Module

pip3 install findimport

Example:

findownimportfile

if the source file in /mnt/c/workspace/example/source_code.py

Input:

python3 -m findimport --source source_code.py --path /mnt/c/workspace/ or /mnt/c/workspace/example

Output:

/mnt/c/workspace/example/own_import_find.txt

Input:

python3 -m findimport --source source_code.py --path /mnt/c/workspace/ or /mnt/c/workspace/example --save_text /mnt/c/workspace/imported_file.txt

Ouput:

/mnt/c/workspace/imported_file.txt

$ python3.7

import findimport import_list = findimport.find_own_import(source,path) print(import_list) ['/mnt/c/workspace/example/other_code.py',...]

findownimportfile

python3 -m findimport --source source_code.py --path 'dummystring' --find_all_import

S$ python3.7

import findimport import_list = findimport.find_all_import(source)

Metadata

Release files for findimport 0.1

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

Source distribution (sdist)

Source distribution for findimport 0.1
File Size Uploaded Provenance Actions
findimport-0.1.tar.gz 2.6 kB Without provenance Details for findimport-0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for findimport 0.1
File Interpreter ABI Platform Actions
findimport-0.1-py2.py3-none-any.whl Python 3, Python 2 none any Details for findimport-0.1-py2.py3-none-any.whl

Total release size: 5.1 kB

Release files / findimport-0.1.tar.gz

Download URL findimport-0.1.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8fe7a0810feb02929154a373939f11d6a02414158245a1994d68d5149eff0aea
BLAKE2b-256 checksum
How to use checksums
d1ff015ce1a289cfb711ee0d7955e8fdc74694a2ae8630bdd73aaf813dd4c0a1
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/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4

Release files / findimport-0.1-py2.py3-none-any.whl

Download URL findimport-0.1-py2.py3-none-any.whl
Size 2.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
a625dabd8f73157ed8396e7490fac37f2ee36b83c9e62d20abafe81a2f6998b3
BLAKE2b-256 checksum
How to use checksums
aa2975df486e1518e97efe0265c2daad984223c2636d1d4fc06f197eae67fdf8
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/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4

Security for findimport 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.

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files No provenance

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