{ "info": { "author": "Thomas Kluyver", "author_email": "takowl@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3" ], "description": "========\nbackcall\n========\n\n.. image:: https://travis-ci.org/takluyver/backcall.png?branch=master\n :target: https://travis-ci.org/takluyver/backcall\n\nSpecifications for callback functions passed in to an API\n\nIf your code lets other people supply callback functions, it's important to\nspecify the function signature you expect, and check that functions support that.\nAdding extra parameters later would break other peoples code unless you're careful.\n\nbackcall provides a way of specifying the callback signature using a prototype\nfunction::\n\n from backcall import callback_prototype\n \n @callback_prototype\n def handle_ping(sender, delay=None):\n # Specify positional parameters without a default, and keyword\n # parameters with a default.\n pass\n \n def register_ping_handler(callback):\n # This checks and adapts the function passed in:\n callback = handle_ping(callback)\n ping_callbacks.append(callback)\n\nIf the callback takes fewer parameters than your prototype, *backcall* will wrap\nit in a function that discards the extra arguments. If the callback expects\nmore arguments, a TypeError is thrown when it is registered.", "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/takluyver/backcall", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "backcall", "package_url": "https://pypi.org/project/backcall/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/backcall/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/takluyver/backcall" }, "release_url": "https://pypi.org/project/backcall/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Specifications for callback functions passed in to an API", "version": "0.1.0" }, "last_serial": 999519, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "87ce0c7839808e6a3427d57df6a792e7", "sha256": "38ecd85be2c1e78f77fd91700c76e14667dc21e2713b63876c0eb901196e01e4" }, "downloads": -1, "filename": "backcall-0.1.0.tar.gz", "has_sig": true, "md5_digest": "87ce0c7839808e6a3427d57df6a792e7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9690, "upload_time": "2014-02-13T23:14:12", "url": "https://files.pythonhosted.org/packages/84/71/c8ca4f5bb1e08401b916c68003acf0a0655df935d74d93bf3f3364b310e0/backcall-0.1.0.tar.gz" }, { "comment_text": "", "digests": { "md5": "b48eb1ad963b0f6ecae0d90434723614", "sha256": "bbbf4b1e5cd2bdb08f915895b51081c041bac22394fdfcfdfbe9f14b77c08bf2" }, "downloads": -1, "filename": "backcall-0.1.0.zip", "has_sig": true, "md5_digest": "b48eb1ad963b0f6ecae0d90434723614", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11722, "upload_time": "2014-02-13T23:14:06", "url": "https://files.pythonhosted.org/packages/1b/b3/0708228132a772de8802967af71d00c6b1f2f407e6f8efcc7055ac5900fe/backcall-0.1.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "87ce0c7839808e6a3427d57df6a792e7", "sha256": "38ecd85be2c1e78f77fd91700c76e14667dc21e2713b63876c0eb901196e01e4" }, "downloads": -1, "filename": "backcall-0.1.0.tar.gz", "has_sig": true, "md5_digest": "87ce0c7839808e6a3427d57df6a792e7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9690, "upload_time": "2014-02-13T23:14:12", "url": "https://files.pythonhosted.org/packages/84/71/c8ca4f5bb1e08401b916c68003acf0a0655df935d74d93bf3f3364b310e0/backcall-0.1.0.tar.gz" }, { "comment_text": "", "digests": { "md5": "b48eb1ad963b0f6ecae0d90434723614", "sha256": "bbbf4b1e5cd2bdb08f915895b51081c041bac22394fdfcfdfbe9f14b77c08bf2" }, "downloads": -1, "filename": "backcall-0.1.0.zip", "has_sig": true, "md5_digest": "b48eb1ad963b0f6ecae0d90434723614", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11722, "upload_time": "2014-02-13T23:14:06", "url": "https://files.pythonhosted.org/packages/1b/b3/0708228132a772de8802967af71d00c6b1f2f407e6f8efcc7055ac5900fe/backcall-0.1.0.zip" } ] }