Skip to content

ChrisTimperley/comby-python

Repository files navigation

comby-python

https://travis-ci.org/ChrisTimperley/comby-python.svg?branch=master

Python bindings for Comby.

Installation

Comby must be installed: https://github.com/comby-tools/comby

To install the latest release from PyPI:

$ pip install comby

or to install from source:

$ pip install .

Getting Started

To perform a basic match-rewrite on a given source text:

from comby import Comby

comby = Comby()
match = 'print :[[1]]'
rewrite = 'print(:[1])'
source_old = 'print "hello world"'
source_new = comby.rewrite(source_old, match, rewrite)
# -> 'print("hello world")
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy