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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| setup_py_gen-2025.9.81452.tar.gz | 3.6 kB | Without provenance | Details for setup_py_gen-2025.9.81452.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| setup_py_gen-2025.9.81452-py3-none-any.whl | Python 3 | none | any | Details for setup_py_gen-2025.9.81452-py3-none-any.whl |
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
|
Security for setup-py-gen 2025.9.81452
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.