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.101648.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.101648-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llm_dep_extractor-2025.9.101648.tar.gz
Algorithm Hash digest
SHA256 c7ff2114ac6d44a4be3b6000c46f1d9155290d2179a626706390d8916f595112
MD5 393e4c8f617938ff5745ad1efa5c0c99
BLAKE2b-256 3b0c56c908b4beaee15286a0533217b1c04da8b9e53ce5f88b5ebc156b8aa5be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llm_dep_extractor-2025.9.101648-py3-none-any.whl
Algorithm Hash digest
SHA256 3d20369887692e1c9bce73930506fed49db875f89993c1bd3df4e00f2cd75f07
MD5 b5308ec790bb71e094e593a4ebe54462
BLAKE2b-256 9ad30c06ca57906647439c77a6a5902ec3a5fe585f3d7d4d23e64173a4648414

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