Skip to main content

ReqExtract

Extract 3rd-party requirements from Python code. reqextract makes no network requests and sends no telemetry; it only reads local .py files and writes stdout or the given output file. reqextract is stdlib-only and requires no third-party dependencies.

Install

pip install plainkitbin-reqextract

Usage

reqextract ./myproject
reqextract ./myproject -o requirements_draft.txt

Limitations

Uses AST to statically find import statements. It filters out standard library modules to give you a rough draft of your requirements.txt. It does not execute code and does not extract versions. It skips common ignored directories like .git, node_modules, venv, and __pycache__.

Free and open source (MIT license, see LICENSE). No nagware.

Part of the PlainKitBin toolset.

Provided as-is with no individual support.


Built with AI assistance and automatically tested before release; released under human oversight.

Download files

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

Source Distribution

plainkitbin_reqextract-1.0.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

plainkitbin_reqextract-1.0.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file plainkitbin_reqextract-1.0.0.tar.gz.

File metadata

  • Download URL: plainkitbin_reqextract-1.0.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for plainkitbin_reqextract-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6676e3f64eeab5eff22e61351cb6d397ff8f9aed7e5cd302f680e487b29b99c2
MD5 ee161a0646fbe8e35b01dcf94f34cb88
BLAKE2b-256 d1cf205e320e6a23073a42cd35bba3d89eb1023a5cac035ae707fa14becf2b86

See more details on using hashes here.

File details

Details for the file plainkitbin_reqextract-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for plainkitbin_reqextract-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cf7bb28bd599823191596027fd098c2c5cac950a03e3a77be1fcfb4670631dfe
MD5 f9b22c619978ddb106acea3f5538f7bd
BLAKE2b-256 ccd42157a70b90a4e4b1512b90e572d7c59d79749c09da4d487dc1114a67991b

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 Sentry Error logging StatusPage Status page