Skip to main content

ggpp - An Useful g++ Interface

Table of Contents

About

"ggpp" is a simple g++ interface made with python3, it is useful to run C/C++ code in only one command.
So, instead of:
g++ example.cpp -o example
./example
And sometimes you don't want the compiled file. So, you also do:
rm -rf example
All theses steps, can be reduced with ggpp to:

ggpp example.cpp

And you will run your C/C++ code without (optionally) leaving a compiled file on the folder.

Getting Started

Install ggpp is very simple.

Prerequisites

You will need python3 installed on your PC.
For Python 3 installation, download on the official page.

  • Python 3 is already installed on the most linux distributions.
    Try run "python3" on your shell.

As the ggpp is a g++ interface, you will need it installed too.

As a plus, if you want to copy the content of you C/C++ code automatically after ran it, you will need xclip installed on linux.
For install it, you can follow this useful guide.
On Windows, to copy the content, you don't need any prerequisites.

Installing

Download or clone this repository

git clone https://github.com/davigsousa/ggpp.git

Then, open the repository folder

cd ggpp

And run pip3 to install the package.

pip3 install .

Now, restart your shell and you will be able to use ggpp, try:

ggpp --help

Usage

You can run your C/C++ code,
just passing the filename as first argument. On Windows, you need file path, like: .\targetfile.cpp

ggpp targetfile.cpp

You can also pass arguments to the g++ just passing in the end.

ggpp targetfile.cpp -Wall -H

Currently, there are two arguments to configure ggpp,
they are "-c" or "--clip" to copy file content to the clipboard (xclip is required on linux),
And "-nr" or "--noremove" to make ggpp do not remove the compiled file.

Usage:

ggpp example.cpp -c -nr

Release files for ggpp 1.1.2

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

Source distribution (sdist)

Source distribution for ggpp 1.1.2
File Size Uploaded
ggpp-1.1.2.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ggpp 1.1.2
File Interpreter ABI Platform
ggpp-1.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.8 kB

Release files / ggpp-1.1.2.tar.gz

Download URL ggpp-1.1.2.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
aaffbd01fbe09e422f612f8255efdd0bbe2c06d88d71e21e9cd05417c236c232
BLAKE2b-256 checksum
How to use checksums
664c403b1187e61bd56fbad248b2d6f2de034472c5232bbc4399e904f9b43b4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

Release files / ggpp-1.1.2-py3-none-any.whl

Download URL ggpp-1.1.2-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
05ef38c38ed54754d6eac9ce886d73e2a0f08139e43f7b548fd1e6584ec3c9f6
BLAKE2b-256 checksum
How to use checksums
4513b4092956ff6be356f50f93e8f79b41799e808e0473e982e1d709d82bb7a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 release files

1.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