AutoReq is a Python script that simplifies the process of managing Python dependencies by automatically generating a requirements.txt file.
- Automated Dependency Scanning: AutoReq scans your Python codebase to detect all imported modules.
- Auto-Generated
requirements.txt: It generates arequirements.txtfile with the list of dependencies. - Local Library Handling: AutoReq recognizes and excludes local library modules, keeping your requirements clean.
- Directory or File Scanning: You can use AutoReq to scan both directories and individual Python files.
- Clone or download this repository.
- Run the script, providing the file path or directory path you want to scan.
- Optionally, specify the
--outputparameter to save the imported module list to a file.
python Imports.py path/to/your/directory --output requirements.txtpython Imports.py path/to/your/file --output requirements.txt