{ "info": { "author": "Christopher Timperley", "author_email": "christimperley@googlemail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": ".. -*-restructuredtext-*-\n\ncomby-python\n============\n\n\n.. image:: https://travis-ci.org/ChrisTimperley/comby.svg?branch=master\n :target: https://travis-ci.org/ChrisTimperley/comby\n\n.. image:: https://badge.fury.io/py/comby.svg\n :target: https://badge.fury.io/py/comby\n\n.. image:: https://img.shields.io/pypi/pyversions/comby.svg\n :target: https://pypi.org/project/comby\n\nPython bindings for `Comby `_.\n\n\nInstallation\n------------\n\nComby must be installed: https://github.com/comby-tools/comby\n\nTo install the latest release from PyPI:\n\n.. code:: shell\n\n $ pip install comby \n\nor to install from source:\n\n.. code:: shell\n\n $ pip install .\n\n\nGetting Started\n---------------\n\nTo perform a basic match-rewrite on a given source text:\n\n.. code:: python\n\n from comby import Comby\n\n comby = Comby()\n match = 'print :[[1]]'\n rewrite = 'print(:[1])'\n source_old = 'print \"hello world\"'\n source_new = comby.rewrite(source_old, match, rewrite)\n # -> 'print(\"hello world\")\n\nMIT License\n\nCopyright (c) 2019 Christopher Timperley\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ChrisTimperley/comby-python", "keywords": "rewrite,syntax,comby,transformation", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "comby", "package_url": "https://pypi.org/project/comby/", "platform": "", "project_url": "https://pypi.org/project/comby/", "project_urls": { "Homepage": "https://github.com/ChrisTimperley/comby-python" }, "release_url": "https://pypi.org/project/comby/0.0.1/", "requires_dist": null, "requires_python": ">= 3.5", "summary": "Lightweight language-independent syntax rewriting.", "version": "0.0.1" }, "last_serial": 5863792, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "2a49fbc1ac3f89699e018dab3211a98e", "sha256": "44be594f068ecbab9695f060cc8c88075bb5d8eb5fb134a76f216bd9efd7501b" }, "downloads": -1, "filename": "comby-0.0.1.tar.gz", "has_sig": false, "md5_digest": "2a49fbc1ac3f89699e018dab3211a98e", "packagetype": "sdist", "python_version": "source", "requires_python": ">= 3.5", "size": 5994, "upload_time": "2019-09-20T19:21:15", "url": "https://files.pythonhosted.org/packages/93/3e/e7723c3deb32bbe8c958845f47a00e19507a3a3c6faeb158cb9a2d45b00f/comby-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2a49fbc1ac3f89699e018dab3211a98e", "sha256": "44be594f068ecbab9695f060cc8c88075bb5d8eb5fb134a76f216bd9efd7501b" }, "downloads": -1, "filename": "comby-0.0.1.tar.gz", "has_sig": false, "md5_digest": "2a49fbc1ac3f89699e018dab3211a98e", "packagetype": "sdist", "python_version": "source", "requires_python": ">= 3.5", "size": 5994, "upload_time": "2019-09-20T19:21:15", "url": "https://files.pythonhosted.org/packages/93/3e/e7723c3deb32bbe8c958845f47a00e19507a3a3c6faeb158cb9a2d45b00f/comby-0.0.1.tar.gz" } ] }