Skip to main content

ZPP: Zero-hassle C++ build/run, metrics, and optimization hints with a real-time terminal UI

Project description

ZPP

Fast C++ build/run, metrics, and optimization hints with a real-time terminal UI.

CI badge

Quickstart

pipx install zynpp  # or: pip install --user zynpp
zpp init
zpp main.cpp      # build + run
zpp ui main.cpp   # open two-pane UI

Features

  • Build/run defaults: -std=c++17 -O2 -pipe -Wall -Wextra
  • Two-pane Textual UI: left code, right metrics and hints
  • Rule-based hints (offline) + optional AI hints
  • Bench and mem commands for performance
  • Auto-install guidance for g++/clang++ on Linux/macOS/Windows

CLI

  • zpp <file.cpp>: build + run quickly
  • zpp build <file.cpp> [--release] [--debug] [--flags "..."]
  • zpp run [binary | file.cpp] [--args "..."]
  • zpp bench <file.cpp> [--repeat 10]
  • zpp mem <file.cpp>
  • zpp hint <file.cpp> [--ai]
  • zpp ui <file.cpp>
  • zpp doctor
  • zpp install-gpp [--dry-run] [--yes]
  • zpp init
  • zpp config
  • zpp selfcheck

Auto-update for clients

If installed via pipx:

pipx upgrade zynpp

Or use the built-in command:

zpp self-update

Admins can point to TestPyPI for canary:

zpp self-update --index-url https://test.pypi.org/simple/

Release process

  • Push to main publishes to TestPyPI automatically.
  • Tag a release vX.Y.Z to publish to PyPI.

Snippets (Hints)

Before:

vector<int> a;
for (int i=0;i<n;i++) a.push_back(i);

After:

vector<int> a;
a.reserve(n);
for (int i=0;i<n;i++) a.push_back(i);

Before:

void f(std::string s);

After:

void f(const std::string& s); // or std::string_view

Before:

for(...) y += pow(x, 2);

After:

y += x * x;

Packaging

  • pyproject.toml exposes zpp entrypoint
  • Optional single-binary via PyInstaller

License

MIT

Project details


Download files

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

Source Distribution

zynpp-2.0.4.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

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

zynpp-2.0.4-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file zynpp-2.0.4.tar.gz.

File metadata

  • Download URL: zynpp-2.0.4.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zynpp-2.0.4.tar.gz
Algorithm Hash digest
SHA256 fadcef08fdbd5cb69d40b5d8842a6975f252a6d29e4e6f6414258d0c5d7eb409
MD5 0600aed8adc5c32efcfe4d2b82fe2fc0
BLAKE2b-256 cdbcad1cfeed00ec29c2c7925607d4b74c80d1d897ca8f1fa1c18fc3c4f7ad5b

See more details on using hashes here.

File details

Details for the file zynpp-2.0.4-py3-none-any.whl.

File metadata

  • Download URL: zynpp-2.0.4-py3-none-any.whl
  • Upload date:
  • Size: 18.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zynpp-2.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f2d47201ba37e90e28e7c3ae9b7f079445894e4177d31565498025a1c532a24d
MD5 615dedaf169554091169225b8defbd9e
BLAKE2b-256 97ee8dc4382584e7345ea8585a53b4be4789d86bf7969bd1ccc609d74fcfa7e6

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 Pingdom Monitoring Sentry Error logging StatusPage Status page