Skip to main content

comby-python

https://travis-ci.org/ChrisTimperley/comby-python.svg?branch=master https://badge.fury.io/py/comby.svg https://img.shields.io/pypi/pyversions/comby.svg

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

MIT License

Copyright (c) 2019 Christopher Timperley

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Metadata

Release files for comby 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for comby 0.0.3
File Interpreter ABI Platform
comby-0.0.3-py3-none-any.whl Python 3 none any Details

Release files / comby-0.0.3-py3-none-any.whl

Download URL comby-0.0.3-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b307000fe20bff0b95808836d198833a5f46556a9a51aec33aa92f7a63d1eba1
BLAKE2b-256 checksum
How to use checksums
e9779a7e024d6dcf8568204b4163b939fac7bed1ca86b81d0b8bfc72feeee8a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.7.1 requests/2.26.0 setuptools/58.0.4 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file

0.0.2

2 release files

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page