Skip to main content

'Did I forget any imports' generates requirement files for you

Project description

Did I forget any imports?

pipeline status coverage report PyPi Code style: black Checked with mypy security: bandit Downloads

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

difai-0.9.66.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

difai-0.9.66-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page