Skip to main content

Run c-style preprocessor directives in python modules

Project description

Features

  • support c-style directives in python

  • can run post-processed code on-the-fly

  • can output to a file

  • can strip all pre-processor data from the output

  • #defines can be set in code prior to processing

Supported Directives

  • #define

  • #undef

  • #ifdef

  • #else

  • #endif

  • #exclude

  • #endexclude

Python Interpreter Compatibility

pypreprocessor itself was originally designed to provide developers

with a simple solution to write python 2x and python 3x code in the same source file so compatibility is a must.

Currently pypreprocessor has been tested and works in:
  • 2.5

  • 2.6

  • 3.0

  • 3.1

2.4 support has been looked into and can easily be made possible if

users request it.

There are no plans to support earlier versions of python unless

there is sufficient demand from users.

Support

For more extensive information on features, access to the source

repository, documentation, or examples of use cases involving pypreprocessor be sure to visit the project’s Home Page.

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

pypreprocessor-0.4.0.tar.gz (5.3 kB view hashes)

Uploaded Source

Built Distribution

pypreprocessor-0.4.0.linux-i686.exe (66.9 kB view hashes)

Uploaded Source

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