Extracts 10 valid Python package names from an LLM response using llmatch.
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pip_dep_extractor-2025.9.101642.tar.gz.
File metadata
- Download URL: pip_dep_extractor-2025.9.101642.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd99873a73e5d68be51dcb68d83c74337b2f312bfd84380ccef48aeced9a5471
|
|
| MD5 |
8074eb87f7def55d2213d1013641b98f
|
|
| BLAKE2b-256 |
b86a9cfc3bc70e9377f4d3352240cc73e8d1fafc36ba216ca242eec63f404dac
|
File details
Details for the file pip_dep_extractor-2025.9.101642-py3-none-any.whl.
File metadata
- Download URL: pip_dep_extractor-2025.9.101642-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44b754662d7aa9f1cc652bd0cfa59c88ba38880adf3ff5f2ed371779511810c2
|
|
| MD5 |
8f8fc3aa91600450ad28926b4750e7a8
|
|
| BLAKE2b-256 |
f3f90e0c4a569c7f9a3dab488e0db45e9921d1a08e4b06026b943b5877f9647d
|