Skip to main content

Minimal Python package: llm_dep_extractor

Project description

PyPI version License: MIT Downloads LinkedIn

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


Download files

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

Source Distribution

llm_dep_extractor-2025.9.1301013.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

llm_dep_extractor-2025.9.1301013-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file llm_dep_extractor-2025.9.1301013.tar.gz.

File metadata

File hashes

Hashes for llm_dep_extractor-2025.9.1301013.tar.gz
Algorithm Hash digest
SHA256 5d9e0cbc45653be8eda1e11b9849bd5f9273437fcca15c5aed1dcdaafd209629
MD5 9eb703ad6336af9952add772622735a9
BLAKE2b-256 c0a0a9c5407353370563e2a6578731fd72e9b8e675fbe4a909742013daae39d4

See more details on using hashes here.

File details

Details for the file llm_dep_extractor-2025.9.1301013-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_dep_extractor-2025.9.1301013-py3-none-any.whl
Algorithm Hash digest
SHA256 73ff38e129f01d1f728880e1356b4e46387e91f14172bfe958286d0175184e0b
MD5 7f919fa39338bb331f273c41a258f815
BLAKE2b-256 dad2091c9b083057f4fcb6244bd4d29c5beccbd0de00117923f90e56d8c5fddc

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