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.121647.tar.gz (3.4 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.121647-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llm_dep_extractor-2025.9.121647.tar.gz
Algorithm Hash digest
SHA256 9a4202b2bd6e8d0e6488670d4a37d42d28d6d99eda0e75ad7004463dfa281995
MD5 8475be23baed7403b6dcba7fb6418b98
BLAKE2b-256 12a1cfb63c509e508d34c812cda10c9a37bbca910e27c191392754a2211ff97f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llm_dep_extractor-2025.9.121647-py3-none-any.whl
Algorithm Hash digest
SHA256 dba8f05ad7c71addbc1a2b0be366efe0b21fa2fc8d7f894cd126bfd005dcb5c5
MD5 d8e4cc95f8bd2d944b2a187f2882cbee
BLAKE2b-256 5f298047402c10e121e47a1cd74353a2a20a1b621a7a8f6d7944f9dff21e9d8b

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