LibraScan is a tool designed to simplify the management of dependencies in Python and Ruby projects by automatically generating requirements.txt and Gemfile files based on your project's import statements.
- Python Support: Automatically detects and extracts third-party Python libraries used in your project, excluding standard library modules.
- Ruby Support: Parses require statements in Ruby files (*.rb) to generate a Gemfile listing required gems.
- Accurate Detection: Uses stdlib_list to ensure standard Python library modules are not included in requirements.txt.
- Error Handling: Provides basic error handling for file parsing and generation processes.
- Clone the Repository:
git clone https://github.com/Symbolexe/LibraScan.git
- Navigate to the Directory:
cd LibraScan
brew install cmake
sudo apt-get install cmake
sudo yum install cmake
mkdir build
cd build
cmake ..
make
sudo make install
mkdir build
cd build
cmake -G "Visual Studio 16 2019" ..
cmake --build . --config Release
- Generating
requirements.txt
for Python Projects
./LibraScan file.py
- Generating
Gemfile
for Ruby Projects
python ./LibraScan file.rb