{ "info": { "author": "Yixian Du", "author_email": "duyixian1234@outlook.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "\nCondition Chain\n===============\n\nProcess a series of conditional judgement with a chained call.\n\nExample\n-------\n\n>>> from condition_chain import Condition\n>>> condition = Condition(1).be(2).equal(2.0 - 2)\\\n .differ('a').instance_of(str).expect(lambda x: x, 1)\n>>> print(condition.result(), condition.success, condition.failures, sep='\\n')\nFalse\n[('be', 2), ('equal', 0.0), ('differ', 'a'), ('instance_of', 'str'), ('expect', ('', 1))]\n[('be', 2), ('equal', 0.0), ('instance_of', 'str')]\n>>> condition = Condition([1,2,3]).contain(1).have('append').hold(3)\nTrue\n[('contain', 1), ('have', 'append'), ('hold', 3)]\n[]\n\nInstall\n-------\n\n.. code-block:: shell\npip install condition_chain\n\nAuthor\n------\nYixian Du (duyixian1234@outlook.com)\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/duyixian1234/condition_chain", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "condition-chain", "package_url": "https://pypi.org/project/condition-chain/", "platform": "", "project_url": "https://pypi.org/project/condition-chain/", "project_urls": { "Homepage": "https://github.com/duyixian1234/condition_chain" }, "release_url": "https://pypi.org/project/condition-chain/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "Process a series of conditional judgement with a chained call.", "version": "1.0.0" }, "last_serial": 4091955, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "e678b04b5066e2985f081a6340ab94ca", "sha256": "1a1069d35342015906371d3e8479901763c8cc71d870ef07029c5aaf4a57c9fd" }, "downloads": -1, "filename": "condition_chain-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "e678b04b5066e2985f081a6340ab94ca", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3993, "upload_time": "2017-11-02T02:11:03", "url": "https://files.pythonhosted.org/packages/cf/3f/4cd5c718c8df4af3f21822ce8c63d82a46d245857ad41017c2bd3f37f956/condition_chain-0.1.0-py3-none-any.whl" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "d9329a36e6dece2e2543b0318380fa66", "sha256": "8c8950d893a756408d160cd6c6aefdfcfae3ea91d7a470adb9569f8f022bc831" }, "downloads": -1, "filename": "condition_chain-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d9329a36e6dece2e2543b0318380fa66", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4001, "upload_time": "2017-11-02T02:33:31", "url": "https://files.pythonhosted.org/packages/90/c0/0159130b6e40772672b96b1d99ec5ce26c59ff866818b8c6f3f158ad8ec0/condition_chain-0.1.1-py3-none-any.whl" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "ec989d3a41183a28e73858699e231d5b", "sha256": "9c4c58715c824b27d29d7962c9718a9ac57a7bb148dd2915a3700b38991dd22b" }, "downloads": -1, "filename": "condition_chain-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ec989d3a41183a28e73858699e231d5b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3821, "upload_time": "2018-07-23T07:06:31", "url": "https://files.pythonhosted.org/packages/5b/67/1b4b53932f0abca94551456b9f1e5bfe3092efd2bf1eba6fda9ac49edaa9/condition_chain-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "52e4d1adc85f2461dd7b13b957d87958", "sha256": "62ff3030722cb34894d74b262e5b5bf1be66e8ad8487304799ee2424be584934" }, "downloads": -1, "filename": "condition_chain-1.0.0.tar.gz", "has_sig": false, "md5_digest": "52e4d1adc85f2461dd7b13b957d87958", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3701, "upload_time": "2018-07-23T07:06:32", "url": "https://files.pythonhosted.org/packages/50/48/219e152013cb80869d97a6f35929781997d015c514bc977fccfa55710c7b/condition_chain-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ec989d3a41183a28e73858699e231d5b", "sha256": "9c4c58715c824b27d29d7962c9718a9ac57a7bb148dd2915a3700b38991dd22b" }, "downloads": -1, "filename": "condition_chain-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ec989d3a41183a28e73858699e231d5b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3821, "upload_time": "2018-07-23T07:06:31", "url": "https://files.pythonhosted.org/packages/5b/67/1b4b53932f0abca94551456b9f1e5bfe3092efd2bf1eba6fda9ac49edaa9/condition_chain-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "52e4d1adc85f2461dd7b13b957d87958", "sha256": "62ff3030722cb34894d74b262e5b5bf1be66e8ad8487304799ee2424be584934" }, "downloads": -1, "filename": "condition_chain-1.0.0.tar.gz", "has_sig": false, "md5_digest": "52e4d1adc85f2461dd7b13b957d87958", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3701, "upload_time": "2018-07-23T07:06:32", "url": "https://files.pythonhosted.org/packages/50/48/219e152013cb80869d97a6f35929781997d015c514bc977fccfa55710c7b/condition_chain-1.0.0.tar.gz" } ] }