Skip to main content

Creates a requirements.txt file for a project solely from source files, given a root directory

Project description

Python Requirements Tool

This package compiles and puts all of the required python packages into a single requirements.txt file.

Quick Start

Usage

ReqParser is a module which contains static functions for generating the requirements.txt from python source code.

from pyreqgen import ReqParser

root_dir_of_project = "/location/to/project"

ReqParser.run(root_dir_of_project, write_o=True, alpha=True)

ReqParser

The run method is the main entry point to generate the requirements.txt. It takes a mandatory argument the location of the root directory of the project as a string. Optional arguments arguments are if you want to write out the required modules to a requirements.txt in the function. If not then it will return with a set of strings the module names.

The alpha option is set True if you want the modules sorted alphanumerically.

Contributing

Please submit an issue or pull request if you have suggestions on how to make this project better.

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

pyreqgen-0.0.4.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyreqgen-0.0.4-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file pyreqgen-0.0.4.tar.gz.

File metadata

  • Download URL: pyreqgen-0.0.4.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1

File hashes

Hashes for pyreqgen-0.0.4.tar.gz
Algorithm Hash digest
SHA256 1c3a35bf4274a6a667e78097427e5d38772603572ccd02bec1848bf5e4f3ba75
MD5 2ebc0997845a11c7059c5c162026efc7
BLAKE2b-256 e9082cce3428e3fe7dd42ddcfe8b32ec0e4009fb43e7386ecd02def1e7185728

See more details on using hashes here.

File details

Details for the file pyreqgen-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: pyreqgen-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1

File hashes

Hashes for pyreqgen-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 35aea68939232e07ef2192ce9c3768a3015f317e0c1bdc9df941599b807595d3
MD5 cd058d23c06ba46c39c27d0c5b83107b
BLAKE2b-256 5d633ce1bed3006f67df7dfb2b690abee976cc8479ce684132cc514908818f7c

See more details on using hashes here.

Supported by

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