Skip to main content

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

Project description

extractreqs

PyPI version License - MIT 3-Clause PyPI Downloads Visitors

extractreqs 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:

extractreqs . -o requirements.txt

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

As a Python Module

You can also use extractreqs in your own scripts:

import extractreqs
reqs = extractreqs.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 Distribution

extractreqs-0.1.1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

extractreqs-0.1.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file extractreqs-0.1.1.tar.gz.

File metadata

  • Download URL: extractreqs-0.1.1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for extractreqs-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fffdf192a11ce714cae982f6e2957d7b5dcd216dcd1639a9854f4953d110b45b
MD5 cddf4417254e8d5e9367e157d8fc12e6
BLAKE2b-256 e844d81c5eab91ee09e535c4e1a65eb0ad27487dfa28ebc9a061e932080efef5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: extractreqs-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for extractreqs-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 766168e6d00963e0428993f03f56af7d90e2a5d652dd8d41d7a977fe7f62ea4b
MD5 c9194572c9772ea0690e57968e3c0983
BLAKE2b-256 2e2055f023f3156abc2ecdeee6dc595309af1e979b35e4bc3e46d851383a78b6

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