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

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

Built distribution (wheel)

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

Total release size: 7.1 kB

Release files / llm_dep_extractor-2025.9.101648.tar.gz

Download URL llm_dep_extractor-2025.9.101648.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c7ff2114ac6d44a4be3b6000c46f1d9155290d2179a626706390d8916f595112
BLAKE2b-256 checksum
How to use checksums
3b0c56c908b4beaee15286a0533217b1c04da8b9e53ce5f88b5ebc156b8aa5be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

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

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

Security for llm-dep-extractor 2025.9.101648

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