Skip to main content

a concise and simple requirements.txt generator

Project description

Introduction

genre, a simple and concise requirements.txt generator.

When using pip freeze > requirements.txt, many indirect dependencies are listed, which is not elegant. This simple tool aims to provide a concise requirements.txt, which means it only export direct third-party dependencies or imports in your project.

Install

pip install genre

Usage

usage: genre [-h] [-p PACKAGE_DIR] [-v {0,1}]

optional arguments: -h, --help show this help message and exit -p PACKAGE_DIR, --package_dir PACKAGE_DIR your package path -v {0,1}, --add_version {0,1} add version (1) or not (0)

FAQ

Q: What does "Below are unsure project names (manual check needed)" mean?

A: Normally, this message should not appear in generated requirements.txt. If you see it unluckily, it means one third-party import in your project is mapped to multiple packages. Manual check is needed to verify which package(s) is/are real dependency(ies).

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

genre-0.1.1.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

genre-0.1.1-py2.py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 2 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