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"
  1. 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
  1. Specify Custom Version Sets a custom version for setup.py (default is 0.1.0):
python pybuild_x.py -f "path/to/script.py" -v "1.0.0" --autoupload

📄 License MIT License © 2026

Metadata

Release files for pybuild-x 0.0.3

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

Source distribution (sdist)

Source distribution for pybuild-x 0.0.3
File Size Uploaded
pybuild_x-0.0.3.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pybuild-x 0.0.3
File Interpreter ABI Platform
pybuild_x-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 10.1 kB

Release files / pybuild_x-0.0.3.tar.gz

Download URL pybuild_x-0.0.3.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3ea9059e7b4e14d44388605e6997f6afea599f9c36615cf8133f2fe726b855e3
BLAKE2b-256 checksum
How to use checksums
339ceaa903b534109c452833ae87ae66444684ebbaeadb68209c7436d1ec1373
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release files / pybuild_x-0.0.3-py3-none-any.whl

Download URL pybuild_x-0.0.3-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
239a096665992468f2e222f14b618a15659c6caf5ca187d8529801bdcaa600ae
BLAKE2b-256 checksum
How to use checksums
f533c73816f6e4421be3964afe5e994799f0592b8a598ed93a6458c62899e6f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

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