Minimal Python package: llm_dep_extractor
Project description
llm_dep_extractor
llm_dep_extractor is a Python package designed for extracting required pip package names from Python code snippets using LLMs and llmatch.
Installation
To install llm_dep_extractor, use pip:
pip install llm_dep_extractor
Usage
Here's a simple example demonstrating how to use the package:
from llm_dep_extractor import extract_required_pip_packages
from langchain_llm7 import ChatLLM7
# Initialize your LLM model
llm = ChatLLM7()
code_sample = '''
import numpy as np
import pandas as pd
# some code here
'''
# Extract package names
packages = extract_required_pip_packages(code_sample, llm)
print(packages)
Features
- Extracts up to 10 package names from Python code snippets
- Uses LLMs with a defined prompt pattern
- Ensures unique, properly formatted package names
Contributing
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
License
llm_dep_extractor is licensed under the MIT License.
Author
Eugene Evstafev <hi@eugene.plus>
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 llm_dep_extractor-2025.9.1301013.tar.gz.
File metadata
- Download URL: llm_dep_extractor-2025.9.1301013.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d9e0cbc45653be8eda1e11b9849bd5f9273437fcca15c5aed1dcdaafd209629
|
|
| MD5 |
9eb703ad6336af9952add772622735a9
|
|
| BLAKE2b-256 |
c0a0a9c5407353370563e2a6578731fd72e9b8e675fbe4a909742013daae39d4
|
File details
Details for the file llm_dep_extractor-2025.9.1301013-py3-none-any.whl.
File metadata
- Download URL: llm_dep_extractor-2025.9.1301013-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73ff38e129f01d1f728880e1356b4e46387e91f14172bfe958286d0175184e0b
|
|
| MD5 |
7f919fa39338bb331f273c41a258f815
|
|
| BLAKE2b-256 |
dad2091c9b083057f4fcb6244bd4d29c5beccbd0de00117923f90e56d8c5fddc
|