{ "info": { "author": "Ali-Akber Saifee", "author_email": "ali at indydevs.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: Education", "Intended Audience :: Science/Research", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Operating System :: MacOS", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Topic :: Scientific/Engineering", "Topic :: Scientific/Engineering :: Artificial Intelligence" ], "description": ".. |travis-ci| image:: https://secure.travis-ci.org/alisaifee/pycrm114.png?branch=master\n :target: https://travis-ci.org/#!/alisaifee/pycrm114?branch=master\n.. |coveralls| image:: https://coveralls.io/repos/alisaifee/pycrm114/badge.png?branch=master\n :target: https://coveralls.io/r/alisaifee/pycrm114?branch=master\n.. |pypi| image:: https://pypip.in/v/pycrm114/badge.png\n :target: https://crate.io/packages/pycrm114/\n.. |license| image:: https://pypip.in/license/pycrm114/badge.png\n :target: https://pypi.python.org/pypi/pycrm114/\n.. _crm114: http://crm114.sourceforge.net/wiki/doku.php\n\n|travis-ci| |coveralls| |pypi| |license|\n\n********\npycrm114\n********\n\nPythonic bindings for `crm114`_\n\nCRM114 - the Controllable Regex Mutilator\n=========================================\n\n CRM114 is a system to examine incoming e-mail, system log streams, data files or other\n data streams, and to sort, filter, or alter the incoming files or data streams according\n to the user's wildest desires.\n\n -- crm114.sourceforge.net\n\n\nQuickstart\n==========\n\nNo persistence\n--------------\n.. code-block:: python\n\n import pycrm114\n\n crm = pycrm114.CRM114(classes=[\"spam\", \"ham\"])\n crm.learn(\"spam\", \"foo bar\")\n crm.learn(\"ham\", \"bar is good\")\n assert crm.classify(\"is bar good\")[\"class\"] == \"ham\"\n assert crm.classify(\"foo bar good\")[\"class\"] == \"spam\"\n crm.forget(\"spam\", \"foo bar\")\n assert crm.classify(\"foo bar good\")[\"class\"] == \"ham\"\n\n\nFile System Persistence\n-----------------------\n\n.. code-block:: python\n\n import pycrm114\n\n crm = pycrm114.CRM114(\n classes=[\"spam\", \"ham\"],\n storage=pycrm.storage.FileSystemStorage(\"/var/tmp/crm-test\")\n )\n crm.learn(\"spam\", \"foo bar\")\n crm.learn(\"ham\", \"bar is good\")\n crm.save()\n new_crm = pycrm114.CRM114(\n classes=[\"spam\", \"ham\"],\n storage=pycrm.storage.FileSystemStorage(\"/var/tmp/crm-test\")\n )\n assert new_crm.classify(\"is bar good\")[\"class\"] == \"ham\"\n assert new_crm.classify(\"foo bar good\")[\"class\"] == \"spam\"\n\nDependencies\n============\n\nDebian/Ubuntu: ``sudo apt-get install libtre5 libtre-dev``\n\nOS X: ``brew install tre``\n\nTests\n=====\n\nDependencies\n------------\n\n.. code-block:: bash \n\n pip install -r requirements/test.txt\n\nTo test against different python versions use tox::\n \n tox \n\nTo run the tests with the active python::\n\n python setup.py build && nosetests tests \n\n\nBuilding\n========\n\n.. code-block:: bash\n\n python setup.py build\n\nReferences\n==========\n\n* `crm114`_ \n\n.. :changelog:\n\nChangelog\n---------\n\n0.2.3 2015-04-19\n================\n* Documentation tweaks\n\n0.2.2 2015-04-18\n================\n* Added a forget method to unlearn a text from a class\n\n0.2.0 2015-04-18\n================\n* Python 3 compatibility\n* Added a Pythonic wrapper with a potentially pluggable storage backend\n* Support for dumping control block/data block to string instead of file\n* Added basic tests\n\n0.1.0 2015-04-10\n================\n* Initial import from `pmundkur/libcrm114 `_", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/alisaifee/pycrm114", "keywords": null, "license": "Copyright (c) 2015 Ali-Akber Saifee \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 to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, 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.", "maintainer": null, "maintainer_email": null, "name": "pycrm114", "package_url": "https://pypi.org/project/pycrm114/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pycrm114/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/alisaifee/pycrm114" }, "release_url": "https://pypi.org/project/pycrm114/0.2.3/", "requires_dist": null, "requires_python": null, "summary": "Python interface to libcrm114", "version": "0.2.3" }, "last_serial": 1511160, "releases": { "0.2.0": [], "0.2.1": [ { "comment_text": "", "digests": { "md5": "c991a7bb5f4976e4e1931b1278eba919", "sha256": "b6bee9644acdefe0619caffe47c8adeef79b62b71b85bd8ca8c1a6b89bafb637" }, "downloads": -1, "filename": "pycrm114-0.2.1-py2.7-macosx-10.10-x86_64.egg", "has_sig": false, "md5_digest": "c991a7bb5f4976e4e1931b1278eba919", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 136089, "upload_time": "2015-04-18T00:40:21", "url": "https://files.pythonhosted.org/packages/69/48/89b1ca9888f5f6f9ff39341a4bbbdd2fcd14d7438a61d2bc7bc49fa7e2e0/pycrm114-0.2.1-py2.7-macosx-10.10-x86_64.egg" }, { "comment_text": "", "digests": { "md5": "5e475f75e32b4dc3ad015af99cbcb277", "sha256": "98fd7143f2b8f509891dd9b788be2dcd9364c82fa55f686a4d07dd92e464de3d" }, "downloads": -1, "filename": "pycrm114-0.2.1.tar.gz", "has_sig": false, "md5_digest": "5e475f75e32b4dc3ad015af99cbcb277", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 242643, "upload_time": "2015-04-18T00:40:16", "url": "https://files.pythonhosted.org/packages/36/26/abac0dfac8d9b484644fbd057ae5a9994faa7d1a0429ab0d8fbc1d8d8efa/pycrm114-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "c1f244cfd0b0fdcacae4be2b1bfcea67", "sha256": "cba2a6af177450b8fa7ee078b60696b3735e2d79afa0d9459b9dea4141194589" }, "downloads": -1, "filename": "pycrm114-0.2.2-py2.7-macosx-10.10-x86_64.egg", "has_sig": false, "md5_digest": "c1f244cfd0b0fdcacae4be2b1bfcea67", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 136445, "upload_time": "2015-04-18T04:06:39", "url": "https://files.pythonhosted.org/packages/47/35/2773d98c37756fda67372b1bf02c8dd3adbfa7932738cf7068936b7046d7/pycrm114-0.2.2-py2.7-macosx-10.10-x86_64.egg" }, { "comment_text": "", "digests": { "md5": "d0f06bfd8557ec9d7313762bff6d560b", "sha256": "d41ea68715654ca9a73142381fd44d732729c6972742af2b1da391b927fe8b97" }, "downloads": -1, "filename": "pycrm114-0.2.2.tar.gz", "has_sig": false, "md5_digest": "d0f06bfd8557ec9d7313762bff6d560b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 242892, "upload_time": "2015-04-18T04:06:34", "url": "https://files.pythonhosted.org/packages/33/fa/6ee04052ead249aa768e4792864f2c96881802c6f4477a12b671d623720b/pycrm114-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "5029ec0709313ddf8643c7b8bde70dcf", "sha256": "34eeefa66fd45afea5a96e54de3bcf912c7f1b0e91a8582cef18746f18165295" }, "downloads": -1, "filename": "pycrm114-0.2.3.tar.gz", "has_sig": false, "md5_digest": "5029ec0709313ddf8643c7b8bde70dcf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 244143, "upload_time": "2015-04-19T03:07:46", "url": "https://files.pythonhosted.org/packages/05/41/8622fa99a2dafdc27b85ee5af747d9ceeffb6fe417116ba7de9a5a24d913/pycrm114-0.2.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5029ec0709313ddf8643c7b8bde70dcf", "sha256": "34eeefa66fd45afea5a96e54de3bcf912c7f1b0e91a8582cef18746f18165295" }, "downloads": -1, "filename": "pycrm114-0.2.3.tar.gz", "has_sig": false, "md5_digest": "5029ec0709313ddf8643c7b8bde70dcf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 244143, "upload_time": "2015-04-19T03:07:46", "url": "https://files.pythonhosted.org/packages/05/41/8622fa99a2dafdc27b85ee5af747d9ceeffb6fe417116ba7de9a5a24d913/pycrm114-0.2.3.tar.gz" } ] }