list python file imports
Project description
Installation
$ [sudo] pip install list-imports
Examples
import list_imports
imports = list_imports.get("file.py")
or from string:
imports = list_imports.parse(open("file.py").read())
cli:
$ find . -type f -name "*.py" | xargs python -m list_imports
$ find . -type f -name "*.py" | xargs python -m list_imports | awk -F"." '{print $1}'
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
list-imports-2020.7.2.tar.gz
(1.8 kB
view details)
File details
Details for the file list-imports-2020.7.2.tar.gz
.
File metadata
- Download URL: list-imports-2020.7.2.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cca0ac317a23c24bf711d7ef7696a9716455071eb8c9622d715db4d22ee6c746 |
|
MD5 | a1f95b886cdd86d50b3d046fb9ecb2d0 |
|
BLAKE2b-256 | 34172138fd245055d0f535abaaccc63b4b016cdc5f2beea60695daa16e4c33cb |