'Did I forget any imports' generates requirement files for you
Project description
Did I forget any imports?
DIFAI searches for import statements for all the python and jupyter notebook files in the current directory. It then uses pip freeze
to get your installed versions and pip-compile
to generate a requirements.txt
file containing all of your dependencies and their depdendencies including hashes for a reproducible build.
Run
Simply call difai
in the current folder.
You can change the input (where the .py
and .ipynb
files are read) and output (where the requirement.in
and requirements.txt
files are written) folders using
--in-path
and --out-path
respectively.
In order to exclude certain packages from the search, you can use the --exclude
option.
Pipeline
graph TB
A[glob] --> B
A --> C
B[.py] --> D
C[.ipynb] -->|nbconvert| B
D[AST] --> E
X[pip freeze] --> E
E[requirements.in] -->|pip tools| F
F[requirements.txt]
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
Built Distribution
File details
Details for the file difai-0.9.73.tar.gz
.
File metadata
- Download URL: difai-0.9.73.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.6 Linux/5.15.154+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac1f8b95a259d6ba64fd07e3058a589e71f355b3032b47e58176e0114288986c |
|
MD5 | 155839a18de351fe5f4f88c2ab883bd3 |
|
BLAKE2b-256 | 8484e7830ef52a3e75a9a2a105d7a895eae164e4961e84fb93c0c9e361d530bb |
File details
Details for the file difai-0.9.73-py3-none-any.whl
.
File metadata
- Download URL: difai-0.9.73-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.6 Linux/5.15.154+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bff8bd3e698f1ce79ddb7b78d8ff7a87a4616ffda5e31fe06e98993a66a93efe |
|
MD5 | 9b02c80de1b525579d796d93a49a6507 |
|
BLAKE2b-256 | 66e63737bb435d4ece0debf90a81fa3eced6a0be59b365d0373708b29c106a10 |