Skip to content

fdieulle/greenpeace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

greenpeace

build codecov Code style: black

license pypi python supported

Python environment clean up.

The package allows you to generate your package dependencies requirements directly from your source code. Python scripts .py and notebooks .ipynb are supported. You can also pin the package versions extracted with your current environment.

import greenpeace as gp

gp.cleanup_requirements(".", output_path="requirements.txt")

The package is also able to extract from a python script or a notbook the modules dependencies in your project. This feature is useful if you want to isolate a script or notebook from you project into a dedicated folder.

import greenpeace as gp

gp.isolate("[YOUR_PATH]/notebook.ipynb", "./isolated")

The isolated folder will contains all you project dependencies and a requirements.txt file for all package dependencies in use.