{ "info": { "author": "Yishai Wiesner", "author_email": "wyishai@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# suppyress\r\n\r\nA simple python library for running code and ignore any errors.\r\n\r\n## Getting Started\r\n\r\n### Installing\r\n\r\nYou can install this package with pip.\r\n\r\n```shell\r\npip install suppyress\r\n```\r\n\r\n### Usage\r\n\r\nAll examples are intended for writing in a python shell (or python code file).\r\n\r\n```python\r\nfrom suppyress import suppress\r\n\r\n@suppress\r\ndef test(a, b=1):\r\n result = \"%s -> %s\" % (a, int(b))\r\n return result\r\n\r\n\r\nassert test(\"a\", b=\"2\") is not None\r\nassert test(\"a\", b=\"a\") is None\r\n```\r\n\r\nor:\r\n\r\n```python\r\nfrom suppyress import safe_run\r\n\r\nassert safe_run(int, \"2\") is not None\r\nassert safe_run(int, \"a\") is None\r\n```\r\n\r\n## License\r\n\r\nThis project is licensed under the Apache-2.0 License - see the [LICENSE](https://github.com/WYishai/suppyress/blob/master/LICENSE) file for details\r\n\r\n\r\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/WYishai/suppyress", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "suppyress", "package_url": "https://pypi.org/project/suppyress/", "platform": "", "project_url": "https://pypi.org/project/suppyress/", "project_urls": { "Homepage": "https://github.com/WYishai/suppyress" }, "release_url": "https://pypi.org/project/suppyress/0.1/", "requires_dist": null, "requires_python": "", "summary": "A tiny python library for running code and ignore any errors", "version": "0.1" }, "last_serial": 4149376, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "b115197292e37dfacb30fdc2ab1fe504", "sha256": "2bd18e2052d464c2f305cb51d18650ab27ddeb85458082718ddb6b0b175f5218" }, "downloads": -1, "filename": "suppyress-0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "b115197292e37dfacb30fdc2ab1fe504", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 2076, "upload_time": "2018-08-08T15:17:11", "url": "https://files.pythonhosted.org/packages/00/ef/53c40a75fc6585acf176a1c1315ef015dd02c8a8022ca6668d5e9ca49919/suppyress-0.1-py2-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b115197292e37dfacb30fdc2ab1fe504", "sha256": "2bd18e2052d464c2f305cb51d18650ab27ddeb85458082718ddb6b0b175f5218" }, "downloads": -1, "filename": "suppyress-0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "b115197292e37dfacb30fdc2ab1fe504", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 2076, "upload_time": "2018-08-08T15:17:11", "url": "https://files.pythonhosted.org/packages/00/ef/53c40a75fc6585acf176a1c1315ef015dd02c8a8022ca6668d5e9ca49919/suppyress-0.1-py2-none-any.whl" } ] }