Skip to main content

Extracts 10 valid Python package names from an LLM response using llmatch.

Project description

PyPI version License: MIT Downloads LinkedIn

pip_dep_extractor

pip_dep_extractor is a Python package designed to extract exactly 10 Python package names from an LLM response, using a specified pattern and validation.

Installation

To install pip_dep_extractor, use pip:

pip install pip_dep_extractor

Usage

Using pip_dep_extractor is straightforward. Here's an example:

from pip_dep_extractor import extract_pip_dependencies
from langchain_llm7 import ChatLLM7

# Initialize your LLM instance here
llm = ChatLLM7(...)

custom_text = "This is a description of the package source."

try:
    dependencies = extract_pip_dependencies(llm, custom_text)
    print("Extracted dependencies:", dependencies)
except RuntimeError as e:
    print("Error:", e)

Short Example

from pip_dep_extractor import extract_pip_dependencies
from langchain_llm7 import ChatLLM7

llm = ChatLLM7()
custom_text = "Sample description of package that may include dependencies."

try:
    deps = extract_pip_dependencies(llm, custom_text)
    print("Dependencies:", deps)
except RuntimeError as e:
    print("Failed to extract dependencies:", e)

Author

Eugene Evstafev hi@eugene.plus

Repository: https://github.com/chigwell/pip_dep_extractor

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

pip_dep_extractor-2025.9.101642.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

pip_dep_extractor-2025.9.101642-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file pip_dep_extractor-2025.9.101642.tar.gz.

File metadata

File hashes

Hashes for pip_dep_extractor-2025.9.101642.tar.gz
Algorithm Hash digest
SHA256 cd99873a73e5d68be51dcb68d83c74337b2f312bfd84380ccef48aeced9a5471
MD5 8074eb87f7def55d2213d1013641b98f
BLAKE2b-256 b86a9cfc3bc70e9377f4d3352240cc73e8d1fafc36ba216ca242eec63f404dac

See more details on using hashes here.

File details

Details for the file pip_dep_extractor-2025.9.101642-py3-none-any.whl.

File metadata

File hashes

Hashes for pip_dep_extractor-2025.9.101642-py3-none-any.whl
Algorithm Hash digest
SHA256 44b754662d7aa9f1cc652bd0cfa59c88ba38880adf3ff5f2ed371779511810c2
MD5 8f8fc3aa91600450ad28926b4750e7a8
BLAKE2b-256 f3f90e0c4a569c7f9a3dab488e0db45e9921d1a08e4b06026b943b5877f9647d

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