Skip to main content

preprocess: a multi-language preprocessor

Project description

There are millions of templating systems out there (most of them developed for the web). This isn’t one of those, though it does share some basics: a markup syntax for templates that are processed to give resultant text output. The main difference with preprocess.py is that its syntax is hidden in comments (whatever the syntax for comments maybe in the target filetype) so that the file can still have valid syntax. A comparison with the C preprocessor is more apt.

preprocess.py is targetted at build systems that deal with many types of files. Languages for which it works include: C++, Python, Perl, Tcl, XML, JavaScript, CSS, IDL, TeX, Fortran, PHP, Java, Shell scripts (Bash, CSH, etc.) and C#. Preprocess is usable both as a command line app and as a Python module.

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

preprocess-2.0.0.tar.gz (46.1 kB view details)

Uploaded Source

Built Distribution

preprocess-2.0.0-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file preprocess-2.0.0.tar.gz.

File metadata

  • Download URL: preprocess-2.0.0.tar.gz
  • Upload date:
  • Size: 46.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.6.9

File hashes

Hashes for preprocess-2.0.0.tar.gz
Algorithm Hash digest
SHA256 fb751f3218b7948a23cd821588c296695c0141f75a2e48201afe8e266518abaa
MD5 9cce02464ce88dcde856f62926a88f7c
BLAKE2b-256 4ae632902a2669818a30949ee404d2447184ba651b61e60edb12ffffaee612dd

See more details on using hashes here.

File details

Details for the file preprocess-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: preprocess-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.6.9

File hashes

Hashes for preprocess-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ae799e3ab836efeb4b9958bf0e54b5248a368bcdfd77e2c5467b8c56fe00dea1
MD5 cf806a2b6827e23f2f3fd48e698355fb
BLAKE2b-256 297855f04dbe6f8863538d139f05c8b898f196472299c694a03dac895ad673ae

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