python-third-party-imports
This is a Python CLI tool built with Rust that finds all third-party packages imported into your Python project.
Install
You can install this package via pip.
pip install third-party-imports
Usage
Run:
Check a directory:
third-party-imports path/to/project/dir
Check a directory with extra files:
third-party-imports --extra-file-paths path/to/project/dir/foo.sh path/to/project/dir
Note: You can use --extra-file-paths option to include files that do not contain .py or .pyi extension.
Check a file:
third-party-imports --project-root path/to/project/dir/ path/to/project/dir/foo/main.py
Note: If the file is not located in the project root directory,
then you need to use --project-root option to specify where the project root directory is located.
Help:
Find all third-party packages imported into your python project.
Usage: third-party-imports [OPTIONS] <PATH>
Arguments:
<PATH> Path to a file or directory to check
Options:
-p, --project-root <PROJECT_ROOT> Path to the project's root directory
-e, --extra-file-paths <EXTRA_FILE_PATHS> Extra file paths to check
-h, --help Print help
-V, --version Print version
Example
third-party-imports examples/
Output:
Found '4' third-party package imports in '5' files. (Took 920.50µs)
celery
django
pandas
requests
Development
Run using Cargo
cargo +nightly run -- path/to/project/dir
Code Format
cargo +nightly fmt
Run Tests
cargo +nightly test
Install Package in current virtualenv
maturin develop
License
The code in this project is released under the MIT License.
Metadata
Release files for third-party-imports 0.0.7
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 |
|---|---|---|---|---|
| third_party_imports-0.0.7.tar.gz | 17.6 kB | Without provenance | Details for third_party_imports-0.0.7.tar.gz |
Built distributions (wheels)
Total release size: 5.4 MB
Release files / third_party_imports-0.0.7.tar.gz
| Download URL | third_party_imports-0.0.7.tar.gz |
|---|---|
| Size | 17.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e76808defaefb948130bd9dbf8ce21aecd8059ada898797c1fb5dc08e4c16435
|
|
BLAKE2b-256 checksum How to use checksums |
6fdb113d2211abcd36b6b586287b9c5b0ed0d525a083a0979efb37e1fbe5788e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / third_party_imports-0.0.7-py3-none-win_amd64.whl
| Download URL | third_party_imports-0.0.7-py3-none-win_amd64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
1b127fb190c00d07135eaf8b8131ade91c30b34fbd20b0833d5b953ccdd02371
|
|
BLAKE2b-256 checksum How to use checksums |
94d4ca916af79331efd92158432bc0b9ed12c6dd75587ebeada0eaad11df5ac3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / third_party_imports-0.0.7-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | third_party_imports-0.0.7-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
c0be1449ba5758d2e488d6b422635c207e9bce594a56bf5f48ccadbf7e50f21c
|
|
BLAKE2b-256 checksum How to use checksums |
6744539f0405f9918da35d8050913f267b5711b7f45890d90ce06a8a72b1d3cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / third_party_imports-0.0.7-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
| Download URL | third_party_imports-0.0.7-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl |
|---|---|
| Size | 1.2 MB |
| Tags | Linux glibc 2.17+ x86-32 Python 3 |
|
SHA-256 checksum How to use checksums |
35e2ea9f7caee8b3225174edda48edd7baf73bd81b708e7d12a9e27d459ecd83
|
|
BLAKE2b-256 checksum How to use checksums |
8251c369e227d9d38d6c7fd4229d682b445a47c274c66fee05d995b4a466bf71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / third_party_imports-0.0.7-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | third_party_imports-0.0.7-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
8e8fce859dd57edc6f8dc00514505138cef4f93726b6b72bb5865c3f4aa70b97
|
|
BLAKE2b-256 checksum How to use checksums |
6f2f6bc32e2218b54b30e8624526204f11bb2e223e79b0b9aa87a46dfd0e0dab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / third_party_imports-0.0.7-py3-none-macosx_10_7_x86_64.whl
| Download URL | third_party_imports-0.0.7-py3-none-macosx_10_7_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Python 3 macOS 10.7+ x86-64 |
|
SHA-256 checksum How to use checksums |
6ca8ecf5e65f816beea39232fad537f93a34654da9a0ebfc89aea77c0bf5dc23
|
|
BLAKE2b-256 checksum How to use checksums |
6d1585ebbbb69a3121b9cae6403f5b6e221dea3863a4a892d3087726acb1d1b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Security for third-party-imports 0.0.7
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.