Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ChrisTimperley/comby-python

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

109 Commits
109 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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")

About

Python bindings for Comby

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.