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 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.6.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

difai-0.6.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file difai-0.6.1.tar.gz.

File metadata

  • Download URL: difai-0.6.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.6 Linux/5.4.109+

File hashes

Hashes for difai-0.6.1.tar.gz
Algorithm Hash digest
SHA256 0b5876209e3eacb749b2aefc19a07541b7efd2d2fdf9a7c0ad9fd6b4d10f0128
MD5 8a2d4b5567c305e30840b18f20caf495
BLAKE2b-256 accd1e8d0264d3e3674fa99032292325e03bbd0dacbfac7c8a0d42e485ef95db

See more details on using hashes here.

File details

Details for the file difai-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: difai-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.6 Linux/5.4.109+

File hashes

Hashes for difai-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 83f3b901579d13a5dd979c26727177c05e629381bd8bff2e82f8ad14b68ce61c
MD5 9fc01a7c1813c0b1359a15b8d5fc44c3
BLAKE2b-256 d561f8b5102aa06520412453c57784896898506026a9209faf2d2b2c68d2c488

See more details on using hashes here.

Supported by

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