Skip to main content

Python environment clean up.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

greenpeace-0.2.tar.gz (9.8 kB view hashes)

Uploaded Source

Built Distribution

greenpeace-0.2-py3-none-any.whl (12.1 kB view hashes)

Uploaded Python 3

Supported by

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