Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

difai

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

difai

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

  • 0.9.73
  • PyPI
  • Socket score

Maintainers
1

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]

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc