Skip to main content

PyPI version License: MIT Downloads GitHub

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

Metadata

Release files for setup-py-gen 2025.9.81452

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

Source distribution (sdist)

Source distribution for setup-py-gen 2025.9.81452
File Size Uploaded
setup_py_gen-2025.9.81452.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for setup-py-gen 2025.9.81452
File Interpreter ABI Platform
setup_py_gen-2025.9.81452-py3-none-any.whl Python 3 none any Details

Total release size: 7.6 kB

Release files / setup_py_gen-2025.9.81452.tar.gz

Download URL setup_py_gen-2025.9.81452.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a4c6d823c1d8cd8a9e797a684957168a900ae9a6927d8e0011e80350a017a94a
BLAKE2b-256 checksum
How to use checksums
2f02f3c96522add6a58442e322b49933be9fb2c8909d163d3e6460fc3ad3fe1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.11

Release files / setup_py_gen-2025.9.81452-py3-none-any.whl

Download URL setup_py_gen-2025.9.81452-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31d63abbfd065f0eae9508889161705d461d8a74ff092fce96a1ba1e71891069
BLAKE2b-256 checksum
How to use checksums
be8da0f6ae6a97095b9fe98dcd599b71cc29edd94ab88d6fe5fc8012b48cc56b
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.81452 This release

2 release files

0.1.0

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