Skip to main content

Python C/C++ header amalgamation script

Project description

PyCHAS

Python PyPI version

Upload Python Package Python package Checks Issues Pull Requests License

Sponsors


PyCHAS ( Python C/C++ header amalgamation script ) is a tool for compiling C/C++ headers into one; allowing for better organization.

Usage

A header starting header file is required. The script goes through all included local headers, and puts external includes at the top of the output header.

The script also utilizes the "#pragma" for settings.

#pragma PYCHAS path . // Current file path
#pragma PYCHAS comments off // On/Off
#pragma PYCHAS noexpand // Don't expand included headers

And for usage

$ pychas -h
usage: pychas [-h] [-o OUTPUT] [--debug] file

Creates single-header libraries from given top-level input
file.

positional arguments:
  file                  top-level file

optional arguments:
  -h, --help            show this help message and exit
  -o OUTPUT, --output OUTPUT
                        output file or directory
  --debug               verbose debug output

If output exists and is a directory, the file is saved
inside with the same name as the input.

Github Twitter

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

PyCHAS-1.0.2.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

PyCHAS-1.0.2-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file PyCHAS-1.0.2.tar.gz.

File metadata

  • Download URL: PyCHAS-1.0.2.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for PyCHAS-1.0.2.tar.gz
Algorithm Hash digest
SHA256 89a784478abde9d681371bd70aa03bf7bdfbeee328cbbcc9fd42b57182f525c2
MD5 35fb89a4d74c44defeb4a780df5f37cd
BLAKE2b-256 edcaf36b411144309b6ecf1b2bb582ae95186c9c1d7bbc08bb387a7851d1a5ca

See more details on using hashes here.

File details

Details for the file PyCHAS-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: PyCHAS-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for PyCHAS-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 99b3dd5c01dc01ad6732fd50b42eebc8bbb31c920762605fafc9b40111c45f6d
MD5 54aba0e0e757751332db4eb903beafd3
BLAKE2b-256 1e80d4c8e7591228d34f4decb7feddc38b1ff0b4da31f2dab78d72f14c44c151

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page