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

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.2.tar.gz (4.2 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.2-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pybuild_x-0.0.2.tar.gz
  • Upload date:
  • Size: 4.2 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.2.tar.gz
Algorithm Hash digest
SHA256 8107544d83b2a8dfe70a95b854397bb79ab08d5996ba8ee72651d784a68d9be9
MD5 1acbe70c3c2ef14d454883a87e395add
BLAKE2b-256 3af72b910a5af9404d5f2798c3f694a7dd4ffcbb2ba242f811a0e277a63bb1b8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pybuild_x-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.7 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a1a7e4b77574faf3a6e9fbd5878e36288fcc340968af55b8be7149f0b8f37038
MD5 9441f0f1eef9f824ccb0953580cc73ff
BLAKE2b-256 b5079f1cded802c640033a66b7f8fb827364e3fd87a00160120514fbff4575cf

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