Skip to main content

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>

Metadata

Release files for llm-dep-extractor 2025.9.1301013

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llm-dep-extractor 2025.9.1301013
File Size Uploaded
llm_dep_extractor-2025.9.1301013.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-dep-extractor 2025.9.1301013
File Interpreter ABI Platform
llm_dep_extractor-2025.9.1301013-py3-none-any.whl Python 3 none any Details

Total release size: 7.0 kB

Release files / llm_dep_extractor-2025.9.1301013.tar.gz

Download URL llm_dep_extractor-2025.9.1301013.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5d9e0cbc45653be8eda1e11b9849bd5f9273437fcca15c5aed1dcdaafd209629
BLAKE2b-256 checksum
How to use checksums
c0a0a9c5407353370563e2a6578731fd72e9b8e675fbe4a909742013daae39d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.11

Release files / llm_dep_extractor-2025.9.1301013-py3-none-any.whl

Download URL llm_dep_extractor-2025.9.1301013-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73ff38e129f01d1f728880e1356b4e46387e91f14172bfe958286d0175184e0b
BLAKE2b-256 checksum
How to use checksums
dad2091c9b083057f4fcb6244bd4d29c5beccbd0de00117923f90e56d8c5fddc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.11

Release history Release notifications | RSS feed

This release

2025.9.1301013 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page