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.121647

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.121647
File Size Uploaded Provenance Actions
llm_dep_extractor-2025.9.121647.tar.gz 3.4 kB Without provenance Details for llm_dep_extractor-2025.9.121647.tar.gz

Built distribution (wheel)

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

Total release size: 7.1 kB

Release files / llm_dep_extractor-2025.9.121647.tar.gz

Download URL llm_dep_extractor-2025.9.121647.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9a4202b2bd6e8d0e6488670d4a37d42d28d6d99eda0e75ad7004463dfa281995
BLAKE2b-256 checksum
How to use checksums
12a1cfb63c509e508d34c812cda10c9a37bbca910e27c191392754a2211ff97f
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.121647-py3-none-any.whl

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

Security for llm-dep-extractor 2025.9.121647

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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