Skip to main content

TWPS: (T)ext (W)ith (P)ython (S)nippets preprocessor

Project description

A python package to preprocess text files with embedded Python code snippets: evaluate or execute them and replace with the result of evaluation/execution.

This package provides the ppp.py script. The script reads the file specified in the command line, finds python snippets, evaluates or executes them and writes out the file with the pyhton code replaced with the evaluateion/execution result.

For command line options see readme.rst in the twps folder or run the script without command line arguemnt.

General description with examples (somewhat outdated) can be found in the docs folder.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for twps, version 2.0.2
Filename, size File type Python version Upload date Hashes
Filename, size twps-2.0.2.tar.gz (70.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page