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.3.tar.gz (4.8 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.3-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pybuild_x-0.0.3.tar.gz
  • Upload date:
  • Size: 4.8 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.3.tar.gz
Algorithm Hash digest
SHA256 3ea9059e7b4e14d44388605e6997f6afea599f9c36615cf8133f2fe726b855e3
MD5 41df77a0e483c9d204b2ad2e21d89994
BLAKE2b-256 339ceaa903b534109c452833ae87ae66444684ebbaeadb68209c7436d1ec1373

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pybuild_x-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.4 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 239a096665992468f2e222f14b618a15659c6caf5ca187d8529801bdcaa600ae
MD5 f2320530ac310ac2e3ea9e82be2a3520
BLAKE2b-256 f533c73816f6e4421be3964afe5e994799f0592b8a598ed93a6458c62899e6f3

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