Skip to main content

A tool to automatically extract and generate requirements.txt from Python source code by analyzing imports.

Project description

requirePy

PyPI version Documentation Status

requirePy is a tool to automatically extract and generate requirements.txt from Python source code by analyzing imports.

How to Use

Command Line

From your project root, run:

requirePy . -o requirements.txt

This will analyze your source code and generate a requirements.txt file.

As a Python Module

You can also use requirePy in your own scripts:

import requirePy
reqs = requirePy.extractreq(src_dir="/path/to/your/source", write=True)
print(reqs)

This will return a sorted list of requirements found in the given source directory.

Features

  • TODO

Credits

This package was created with Cookiecutter and the audreyfeldroy/cookiecutter-pypackage project template.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

extractreqs-0.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file extractreqs-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: extractreqs-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.6

File hashes

Hashes for extractreqs-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9797e95b2683dadadafaa197182e5011e26b0df8af3703fe1c0f38c9aae1e5d7
MD5 4f796ff98c053913981fa2126f384606
BLAKE2b-256 96b3737b8aa4af3d85edc93722b38616bcdd12a34d3afa119e8daf6ec70c70c4

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