{ "info": { "author": "Marc Abramowitz", "author_email": "marc@marc-abramowitz.com", "bugtrack_url": null, "classifiers": [], "description": "python\\_dotted\\_name\\_resolver\n==============================\n\n|Build Status| |PyPI Version|\n\n`DottedNameResolver `__\nand other stuff lifted from\n`pyramid.path `__\nfrom the wonderful\n`Pyramid `__ web\nframework.\n\nA few quick examples of usage\n-----------------------------\n\n.. code:: python\n\n In [1]: from dotted_name_resolver import DottedNameResolver\n\n In [2]: r = DottedNameResolver()\n\n In [3]: r.resolve('os.path')\n Out[3]: \n\n In [4]: r.resolve('os.path.exists')\n Out[4]: \n\n In [5]: r.resolve('dotted_name_resolver.DottedNameResolver.maybe_resolve')\n Out[5]: \n\n In [6]: import os.path\n\n In [7]: r.resolve(os.path.exists)\n ---------------------------------------------------------------------------\n ValueError Traceback (most recent call\n last)\n in ()\n ----> 1 r.resolve(os.path.exists)\n\n /Users/marca/dev/git-repos/python_dotted_name_resolver/dotted_name_resolver/__init__.pyc\n in resolve(self, dotted)\n 328 if not isinstance(dotted, string_types):\n --> 329 raise ValueError('%r is not a string' % (dotted,))\n 330 package = self.package\n 331 if package is CALLER_PACKAGE:\n\n ValueError: is not a string\n\n In [8]: r.maybe_resolve(os.path.exists)\n Out[8]: \n\n In [24]: from dotted_name_resolver import AssetResolver\n\n In [25]: a = AssetResolver('IPython')\n\n In [26]: a.resolve('html/static/notebook/js/notebook.js').abspath()\n Out[26]:\n '/Users/marca/python/virtualenvs/dotted_name_resolver/lib/python2.7/site-packages/IPython/html/static/notebook/js/notebook.js'\n\nDocumentation\n-------------\n\nFor detailed documentation, see `the documentation for pyramid.path\n`_ and\nreplace anything that says ``pyramid.path`` with ``dotted_name_resolver``.\n\nSupported python versions\n-------------------------\n\n::\n\n $ /Library/Frameworks/Python.framework/Versions/3.3/bin/tox\n ...\n py26: commands succeeded\n py27: commands succeeded\n py33: commands succeeded\n py34: commands succeeded\n pypy: commands succeeded\n congratulations :)\n\n.. |Build Status| image:: https://travis-ci.org/msabramo/python_dotted_name_resolver.svg?branch=master\n :target: https://travis-ci.org/msabramo/python_dotted_name_resolver\n\n.. |PyPI Version| image:: https://pypip.in/version/dotted_name_resolver/badge.svg\n :target: https://pypi.python.org/pypi/dotted_name_resolver/\n :alt: Latest Version\n\n\n0.1\n===\n\n- Fix zope.interface installed issue\n (https://github.com/msabramo/python_dotted_name_resolver/pull/1). Thanks,\n Victor Lin!\n\n0.0\n===\n\n- Initial release", "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/msabramo/python_dotted_name_resolver", "keywords": null, "license": "BSD-derived (http://www.repoze.org/LICENSE.txt)", "maintainer": null, "maintainer_email": null, "name": "dotted_name_resolver", "package_url": "https://pypi.org/project/dotted_name_resolver/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/dotted_name_resolver/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/msabramo/python_dotted_name_resolver" }, "release_url": "https://pypi.org/project/dotted_name_resolver/0.1/", "requires_dist": null, "requires_python": null, "summary": "DottedNameResolver and other stuff lifted from pyramid.path", "version": "0.1" }, "last_serial": 1912893, "releases": { "0.0": [ { "comment_text": "", "digests": { "md5": "837f43e4af4369dc7044aeca37861924", "sha256": "a4ae60de6f4d6e5cf1697c22e460c107de388fc5236185c4e1c994c6c8e789dd" }, "downloads": -1, "filename": "dotted_name_resolver-0.0.tar.gz", "has_sig": false, "md5_digest": "837f43e4af4369dc7044aeca37861924", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9614, "upload_time": "2014-10-21T05:55:59", "url": "https://files.pythonhosted.org/packages/3e/c7/df3fcd32a9a0e1e0e89e156f687983b524ce91dd2677b1f034f1c68c89e5/dotted_name_resolver-0.0.tar.gz" } ], "0.1": [ { "comment_text": "", "digests": { "md5": "9645f469c277c864081d382a07a73f52", "sha256": "2078fc5a3d2f62f3aae704f07aab394383d36c076520e679478e79808ce1c81f" }, "downloads": -1, "filename": "dotted_name_resolver-0.1.tar.gz", "has_sig": false, "md5_digest": "9645f469c277c864081d382a07a73f52", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9193, "upload_time": "2016-01-20T07:20:26", "url": "https://files.pythonhosted.org/packages/ce/08/e588641b9d676a4ae39b877ce6787afdbab29eae8706d78b36af6f44ed5c/dotted_name_resolver-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9645f469c277c864081d382a07a73f52", "sha256": "2078fc5a3d2f62f3aae704f07aab394383d36c076520e679478e79808ce1c81f" }, "downloads": -1, "filename": "dotted_name_resolver-0.1.tar.gz", "has_sig": false, "md5_digest": "9645f469c277c864081d382a07a73f52", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9193, "upload_time": "2016-01-20T07:20:26", "url": "https://files.pythonhosted.org/packages/ce/08/e588641b9d676a4ae39b877ce6787afdbab29eae8706d78b36af6f44ed5c/dotted_name_resolver-0.1.tar.gz" } ] }