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]
Release files for difai 0.9.73
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| difai-0.9.73.tar.gz | 4.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| difai-0.9.73-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.6 kB
Release files / difai-0.9.73.tar.gz
| Download URL | difai-0.9.73.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac1f8b95a259d6ba64fd07e3058a589e71f355b3032b47e58176e0114288986c
|
|
BLAKE2b-256 checksum How to use checksums |
8484e7830ef52a3e75a9a2a105d7a895eae164e4961e84fb93c0c9e361d530bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.10.6 Linux/5.15.154+
|
Release files / difai-0.9.73-py3-none-any.whl
| Download URL | difai-0.9.73-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bff8bd3e698f1ce79ddb7b78d8ff7a87a4616ffda5e31fe06e98993a66a93efe
|
|
BLAKE2b-256 checksum How to use checksums |
66e63737bb435d4ece0debf90a81fa3eced6a0be59b365d0373708b29c106a10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.10.6 Linux/5.15.154+
|