Skip to main content

simplepreprocessor

Usage

import simplecpreprocessor

There will be one function called preprocess. It can either be called with a file object or something that looks sufficiently like a file object. See unit tests to find out what's enough for a compatible wrapper. Line endings are by default normalized to unix but a parameter can be given to customize this behaviour.

Gotchas

Supported macros: ifdef, ifndef, define, undef, include, else, pragma (only "once")

If using for FFI, you may want to ignore some system headers eg for types

Limitations:

  • Multiline continuations supported but whitespace handling may not be 1:1 with real preprocessors. Trailing whitespace is removed if before comment, indentation from first line is removed
  • Semi-colon handling may not be identical to real preprocessors

Metadata

Release files for simplecpreprocessor 2.3.4

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

Source distribution (sdist)

Source distribution for simplecpreprocessor 2.3.4
File Size Uploaded Provenance Actions
simplecpreprocessor-2.3.4.tar.gz 10.8 kB Without provenance Details for simplecpreprocessor-2.3.4.tar.gz

Built distribution (wheel)

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

Total release size: 23.0 kB

Release files / simplecpreprocessor-2.3.4.tar.gz

Download URL simplecpreprocessor-2.3.4.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
691b49deaca0f5a783ae69d595d23196fe00b64817f26e98c1bec426158db2d8
BLAKE2b-256 checksum
How to use checksums
6057a9957d1e9678fac79d13ed47286a3469e622eadd86179cded005b68e9a42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / simplecpreprocessor-2.3.4-py3-none-any.whl

Download URL simplecpreprocessor-2.3.4-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae7403b5627d2c7ddcd78f3f2fc77339b047e6567a15fa44bd684af020e9ec2e
BLAKE2b-256 checksum
How to use checksums
2acd8ff278e2affb93b1d28124f9b0f36e26ab9f0fc65f7b00478381ad9c1856
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.7

Security for simplecpreprocessor 2.3.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.3.4 This release

2 release files No provenance

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