A package generated from provided source code and metadata.
Project description
setup_py_gen
setup_py_gen is a Python package designed to generate a valid setup.py script suitable for PyPI packaging using an LLM. It leverages AI to craft precise and ready-to-use package setup scripts based on user input and metadata.
Installation
Install the package via pip:
pip install setup_py_gen
Usage
Here's a simple example demonstrating how to generate a setup.py script using a language model instance:
from llmatch_messages import llmatch
from langchain_llm7 import ChatLLM7
from langchain_core.language_models import BaseChatModel
from setup_py_gen import generate_setup_py_from_llm
# Initialize your LLM instance (placeholder example)
llm = ChatLLM7()
# Custom description for your package
custom_text = "A sample Python package for demonstration purposes."
# Generate setup.py content
setup_code = generate_setup_py_from_llm(
llm=llm,
custom_text=custom_text,
package_name="sample_package",
author="Your Name",
author_email="your.email@example.com",
repo_url="https://github.com/yourusername/sample_package"
)
print(setup_code)
This will output a complete setup.py script tailored to your description and metadata.
Author
Eugene Evstafev hi@eugene.plus
Repository: https://github.com/chigwell/setup_py_gen
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file setup_py_gen-2025.9.81452.tar.gz.
File metadata
- Download URL: setup_py_gen-2025.9.81452.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4c6d823c1d8cd8a9e797a684957168a900ae9a6927d8e0011e80350a017a94a
|
|
| MD5 |
46d65e695bc764835e58e65fc385c76b
|
|
| BLAKE2b-256 |
2f02f3c96522add6a58442e322b49933be9fb2c8909d163d3e6460fc3ad3fe1c
|
File details
Details for the file setup_py_gen-2025.9.81452-py3-none-any.whl.
File metadata
- Download URL: setup_py_gen-2025.9.81452-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31d63abbfd065f0eae9508889161705d461d8a74ff092fce96a1ba1e71891069
|
|
| MD5 |
d70374a57b643f5ca3882fc79e0ebcc9
|
|
| BLAKE2b-256 |
be8da0f6ae6a97095b9fe98dcd599b71cc29edd94ab88d6fe5fc8012b48cc56b
|