Skip to main content

# pybuild-x 🚀

**pybuild-x** is a lightweight CLI utility designed to eliminate the repetitive boilerplate of creating and publishing Python packages. In a single command, it sets up your project structure, generates a professional README.md using Gemini AI, compiles the build artifacts, and uploads everything straight to PyPI.

⚡ *This package was built and published to PyPI using pybuild-x itself. No code was harmed during this recursion.*

---

## 📦 Features

* **Instant Packaging:** Automatically turns a single .py file into a full PEP-compliant package structure (setup.py, \_\_init\_\_.py, dist/).

* **AI-Powered Documentation:** Uses Gemini API (gemini-2.5-flash) to draft clean Markdown documentation based on a short description.

* **Auto-Toolchain Setup:** Automatically checks for and installs missing dependencies (build, twine, setuptools).

* **One-Click PyPI Upload:** Compiles wheels/tarballs and pushes them to PyPI seamlessly with --autoupload.

* **Smart Fallback:** Uses local README-<name>.md if no AI prompt is passed.

---

## ⚙️ Installation & Requirements

Set your Gemini API key in your terminal environment before running:

$env:gemini\_api\_key = "key"

\# 🚀 Usage

1\. Basic Package Generation

Creates the package folder, setup.py, and README.md locally without publishing:



```Bash

python pybuild\_x.py -f "path/to/script.py" -d "A neat script for automation"

2. Full Automation & PyPI Upload

Generates everything and automatically publishes to PyPI:

python pybuild\_x.py -f "path/to/script.py" -d "A neat script for automation" --autoupload

3. Specify Custom Version

Sets a custom version for setup.py (default is 0.1.0):

Bash

python pybuild_x.py -f "path/to/script.py" -v "1.0.0" --autoupload

📄 License

MIT License © 2026

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pybuild_x-0.0.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pybuild_x-0.0.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file pybuild_x-0.0.1.tar.gz.

File metadata

  • Download URL: pybuild_x-0.0.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for pybuild_x-0.0.1.tar.gz
Algorithm Hash digest
SHA256 30dcb2fba0ba2f01d557fb41cbb1609c38ef859f99e5312d96aa86d5a76d9676
MD5 85f8ddc5ad19eea40d484df4b9c48b79
BLAKE2b-256 a4dd48437ca2d3284c715c2ca670ab66ba07508b8d4b51c635c24ddb71883f2f

See more details on using hashes here.

File details

Details for the file pybuild_x-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pybuild_x-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for pybuild_x-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b9aa34a449d967bcc2b2b4ecd6737ed9da15c05414b9bc6f09934b76de714f90
MD5 71c61481f79451a49a0323d6745ca755
BLAKE2b-256 ad3a36b92783304e3138d666d5054a5264717ad6f86f21bc89ede7ec5ea63034

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page