{ "info": { "author": "Launchpad Developers", "author_email": "launchpad-dev@lists.launchpad.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "**************************\npython-oops: Error reports\n**************************\n\n Copyright (c) 2011, Canonical Ltd\n\n This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU Lesser General Public License as published by\n the Free Software Foundation, version 3 only.\n\n This program is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU Lesser General Public License for more details.\n\n You should have received a copy of the GNU Lesser General Public License\n along with this program. If not, see .\n GNU Lesser General Public License version 3 (see the file LICENSE).\n\nThe oops project provides an in-memory model and basic serialisation,\ndeserialisation and allocation of OOPS reports. An OOPS report is a report\nabout something going wrong in a piece of software... thus, an 'oops' :)\n\nThis core package is rarely used directly: most programs or services that want\nto generate OOPS reports will do so via a framework specific adapter (e.g.\npython-oops_wsgi).\n\nDependencies\n============\n\n* Python 2.6+ or 3.3+\n* pytz (http://pypi.python.org/pypi/pytz/)\n\nTesting Dependencies\n====================\n\n* subunit (http://pypi.python.org/pypi/python-subunit) (optional)\n\n* testtools (http://pypi.python.org/pypi/testtools)\n\nUsage\n=====\n\nIn Python, OOPS reports are dicts with some well known keys, but extensible\nsimply by adding as many additional keys asneeded. The only constraint is that\nthe resulting dict must be bson serializable : this is the standard to which\nnew serializers are held. Some existing serializers cannot handle this degree\nof extensability and will ignore additional keys, and/or raise an error on keys\nthey expect but which contain unexpected data.\n\nTypical usage:\n\n* When initializing your script/app/server, create a Config object::\n\n >>> from oops import Config\n >>> config = Config()\n\n* New reports will be based on the template report::\n\n >>> config.template\n {}\n\n* You can edit the template report (which like all reports is just a dict)::\n\n >>> config.template['branch_nick'] = 'mybranch'\n >>> config.template['appname'] = 'demo'\n\n* You can supply a callback (for instance, to capture your process memory usage\nwhen the oops is created, or to override / tweak the information gathered by an\nearlier callback)::\n\n >>> mycallback = lambda report, context: None\n >>> config.on_create.append(mycallback)\n\nThe context parameter is also just dict, and is passed to all the on_create\ncallbacks similarly to the report. This is used to support passing information\nto the on_create hooks. For instance, the exc_info key is used to pass in\ninformation about the exception being logged (if one was caught).\n\n* Later on, when something has gone wrong and you want to create an OOPS\nreport::\n\n >>> report = config.create(context=dict(exc_info=sys.exc_info()))\n >>> report\n {'appname': 'demo', 'branch_nick': 'mybranch'}\n\n* And then send it off for storage::\n\n >>> config.publish(report)\n []\n\n* Note that publish returns a list - each item in the list is the id allocated\nby the particular repository that recieved the report. (Id allocation is up\nto the repository). Publishers should try to use report['id'] for the id, if it\nis set. This is automatically set to the id returned by the previous publisher.\n\nIf publish returns None, then the report was filtered and not passed to any\npublisher (see the api docs for more information).\n\n >>> 'id' in report\n False\n >>> def demo_publish(report):\n ... return ['id 1']\n >>> config.publisher = demo_publish\n >>> config.publish(report)\n ['id 1']\n >>> report['id']\n 'id 1'\n\n* The pprint_to_stream publisher will print out reports to a stream after\npprinting them. This can be very helpful for interactive use.\n\n* The related project oops_datedir_repo contains a local disk based repository which\ncan be used as a publisher.\n\nMore coming soon.\n\nInstallation\n============\n\nEither run setup.py in an environment with all the dependencies available, or\nadd the working directory to your PYTHONPATH.\n\n\nDevelopment\n===========\n\nUpstream development takes place at https://launchpad.net/python-oops.\nTo setup a working area for development, if the dependencies are not\nimmediately available, you can use ./bootstrap.py to create bin/buildout, then\nbin/py to get a python interpreter with the dependencies available.\n\nTo run the tests use the runner of your choice, the test suite is\noops.tests.test_suite.\n\nFor instance::\n\n $ bin/py -m testtools.run oops.tests.test_suite\n\nAlternative you can use the testr command from testrepository::\n\n $ testr run", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://launchpad.net/python-oops", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "oops", "package_url": "https://pypi.org/project/oops/", "platform": "", "project_url": "https://pypi.org/project/oops/", "project_urls": { "Homepage": "https://launchpad.net/python-oops" }, "release_url": "https://pypi.org/project/oops/0.0.14/", "requires_dist": null, "requires_python": "", "summary": "OOPS report model and default allocation/[de]serialization.", "version": "0.0.14" }, "last_serial": 3830641, "releases": { "0.0.1": [], "0.0.10": [ { "comment_text": "", "digests": { "md5": "c8324c7f13f159cd4b8b5ff9fe0d0fa0", "sha256": "4db7d4a084891045c014abaa1c36517f797f786e627cffd0e3fde080a15cde3d" }, "downloads": -1, "filename": "oops-0.0.10.tar.gz", "has_sig": true, "md5_digest": "c8324c7f13f159cd4b8b5ff9fe0d0fa0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7766, "upload_time": "2011-11-13T22:28:17", "url": "https://files.pythonhosted.org/packages/89/6e/2779fabf5c76a07e8c81c316c4972084e72b1e828eaa1293996001daf9bc/oops-0.0.10.tar.gz" } ], "0.0.11": [ { "comment_text": "", "digests": { "md5": "70ed1b5fd4b647a5ec57a47999ab5758", "sha256": "6e32645bc44f575f837fefa396ba9cec1e31f93bfef47ea84aba2916c2d574a6" }, "downloads": -1, "filename": "oops-0.0.11.tar.gz", "has_sig": true, "md5_digest": "70ed1b5fd4b647a5ec57a47999ab5758", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8552, "upload_time": "2012-06-26T23:24:27", "url": "https://files.pythonhosted.org/packages/da/c0/11eb2ec3c7cc4292a9021c9c4f089e69f5caf917e877fd2c02ad994f3a94/oops-0.0.11.tar.gz" } ], "0.0.12": [ { "comment_text": "", "digests": { "md5": "65382d84c8950850fe9ae0343b81d8e9", "sha256": "69070e2a7f7d51bd9c4a6a515f7d9f27ef71ef8c21bc25274d4a0bff77ae41b9" }, "downloads": -1, "filename": "oops-0.0.12.tar.gz", "has_sig": true, "md5_digest": "65382d84c8950850fe9ae0343b81d8e9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8555, "upload_time": "2012-06-26T23:28:53", "url": "https://files.pythonhosted.org/packages/55/e2/3baf448e2fbcdf5d567765f5c27b1f3a75c8ed59791e1999eee3f7ab1d00/oops-0.0.12.tar.gz" } ], "0.0.13": [ { "comment_text": "", "digests": { "md5": "2fd0ba834bf8b5f475f517d2bf202bfb", "sha256": "3a8b47a9db0a0ea73724188d7c733ada5f8417d90ce930433aeba2f7ba417202" }, "downloads": -1, "filename": "oops-0.0.13.tar.gz", "has_sig": true, "md5_digest": "2fd0ba834bf8b5f475f517d2bf202bfb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8916, "upload_time": "2012-08-10T04:18:25", "url": "https://files.pythonhosted.org/packages/5d/39/2686dbe92e7b0d3ec7442a8026f3d1dc6ffd03265ca164d5e1c30f479292/oops-0.0.13.tar.gz" } ], "0.0.14": [ { "comment_text": "", "digests": { "md5": "fa649af6195e0ab6cb1ebbec80f0a882", "sha256": "f9756304978201786f0c8817062acbce64ea0c1f4bb23ddcbb2cf1d9b24eaeb2" }, "downloads": -1, "filename": "oops-0.0.14.tar.gz", "has_sig": true, "md5_digest": "fa649af6195e0ab6cb1ebbec80f0a882", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8869, "upload_time": "2018-05-03T11:43:48", "url": "https://files.pythonhosted.org/packages/8e/51/710eef3b4d21f5f2910953331d6e6cf0c60b72433f27445f115d1a616ca9/oops-0.0.14.tar.gz" } ], "0.0.6": [], "0.0.7": [ { "comment_text": "", "digests": { "md5": "1f3b3daff36102a957ad7d17244e54c2", "sha256": "5dcc4229831c3dec50e143092dbbca11eb7a518455d9d9095a20f1bfac733b3f" }, "downloads": -1, "filename": "oops-0.0.7.tar.gz", "has_sig": true, "md5_digest": "1f3b3daff36102a957ad7d17244e54c2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6789, "upload_time": "2011-09-19T01:01:09", "url": "https://files.pythonhosted.org/packages/b2/7a/73567854b5cfc28ccd0ee555c17b91fd690063718765f27d4648851ff76b/oops-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "8f6669c4b00ee416782cfc9c094bebe8", "sha256": "0de7bcbfc93c37fad8ca6664658c8b0b0fb42163763bfe323c0f9e92b424798d" }, "downloads": -1, "filename": "oops-0.0.8.tar.gz", "has_sig": true, "md5_digest": "8f6669c4b00ee416782cfc9c094bebe8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7066, "upload_time": "2011-10-04T09:21:29", "url": "https://files.pythonhosted.org/packages/e7/e3/47725d6994d01fdd575a93e7ae1d3c27d02cb98ebf6706dbfd0aade3bd8c/oops-0.0.8.tar.gz" } ], "0.0.9": [ { "comment_text": "", "digests": { "md5": "2d76956431935bdfa0850b5ce217aa7c", "sha256": "1311d7678e868bfc206d6c3305e67ec9a770da1b64ec7f5cabb4b4ab46100164" }, "downloads": -1, "filename": "oops-0.0.9.tar.gz", "has_sig": true, "md5_digest": "2d76956431935bdfa0850b5ce217aa7c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7630, "upload_time": "2011-10-11T22:55:21", "url": "https://files.pythonhosted.org/packages/a0/30/6d7fb0de23afe90da494479dfadfce0d491cbfa2b4ce4c93ed76efa422be/oops-0.0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fa649af6195e0ab6cb1ebbec80f0a882", "sha256": "f9756304978201786f0c8817062acbce64ea0c1f4bb23ddcbb2cf1d9b24eaeb2" }, "downloads": -1, "filename": "oops-0.0.14.tar.gz", "has_sig": true, "md5_digest": "fa649af6195e0ab6cb1ebbec80f0a882", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8869, "upload_time": "2018-05-03T11:43:48", "url": "https://files.pythonhosted.org/packages/8e/51/710eef3b4d21f5f2910953331d6e6cf0c60b72433f27445f115d1a616ca9/oops-0.0.14.tar.gz" } ] }