{ "info": { "author": "Zach Sailer", "author_email": "zachsailer@gmail.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "\n# traitlets_paths\n\n**Traitlets module for pathlib**\n\nThis package defines `traitlets` for all pathlib objects.\n\n## Getting Started \n\nInstall from pip:\n```\npip install traitlets_paths\n```\n\n**Basic Example**\n\n```python\nfrom traitlets import HasTraits, default\nfrom traitlets_paths import PurePath\n\nclass Foo(HasTraits):\n path = PurePath()\n\n @default('path')\n def _default_path(self):\n return 'path/to/foo'\n\n\nfoo = Foo()\nfoo.path\n```\n```\n# On Posix systems\nPurePosixPath('path/to/foo')\n\n# or on Windows systems\nPureWindowsPath('path/to/foo')\n```\n\n**How to get a TraitError**\n\nWhen we try passing a bad type:\n```\nfoo = Foo(path=5)\n```\nwe get a TraitError:\n```\nTraitError: The 'path' trait of a Foo instance must be a pathlib.PurePath trait, but a value of 5 was specified.\n```\n\n## Developing\n\nDownload and install this repo from source, and move into the base directory.\n```\ngit clone https://github.com/Zsailer/traitlets_paths\ncd traitlets_paths\n```\nIf you use [pipenv](https://pipenv.readthedocs.io/en/latest/), you can install a developement version:\n```\npipenv install --dev\n``` \n\nOtherwise you can install a development version using pip\n```\npip install -e .\n```\n\n## Licensing\n\nThe code in this project is licensed under MIT license.\n\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/Zsailer/traitlets_paths", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "traitlets-paths", "package_url": "https://pypi.org/project/traitlets-paths/", "platform": "", "project_url": "https://pypi.org/project/traitlets-paths/", "project_urls": { "Homepage": "https://github.com/Zsailer/traitlets_paths" }, "release_url": "https://pypi.org/project/traitlets-paths/0.1.3/", "requires_dist": [ "traitlets" ], "requires_python": "", "summary": "Traitlets module for pathlib.", "version": "0.1.3" }, "last_serial": 4388640, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "fa48343dbf6a42a00dbc4e0649f54655", "sha256": "495336587780bab684e82b737e1a683d3dcc72cc38f54b9c227d1cbf6551f947" }, "downloads": -1, "filename": "traitlets_paths-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "fa48343dbf6a42a00dbc4e0649f54655", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 2823, "upload_time": "2018-10-18T00:15:25", "url": "https://files.pythonhosted.org/packages/20/cf/f89086bac047f3d6b566cdeb3eac575d577ebbf05a206058299e80f81351/traitlets_paths-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c6446541617eba47468d92ab72de9165", "sha256": "ad542413f76a03bcd18991a5eef2355f4918c2ccbcc610af4496729d2c525ea4" }, "downloads": -1, "filename": "traitlets_paths-0.1.0.tar.gz", "has_sig": false, "md5_digest": "c6446541617eba47468d92ab72de9165", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1594, "upload_time": "2018-10-18T00:15:27", "url": "https://files.pythonhosted.org/packages/c4/72/3cfbdfe85693b7360c61a624ca4c43353f2c80a1fc5ad448b5b17b4db4f6/traitlets_paths-0.1.0.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "44633dd2d0172d41833e96866f1cd2cf", "sha256": "f72f81463ad97933ec11a5e2bea56dad37f97acde206db7528f4e85b07f9b558" }, "downloads": -1, "filename": "traitlets_paths-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "44633dd2d0172d41833e96866f1cd2cf", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3438, "upload_time": "2018-10-18T02:40:37", "url": "https://files.pythonhosted.org/packages/82/06/427ae688548d7bfa6b99b0a708ca8e81a132da7da56fa5a9f1fdea857a10/traitlets_paths-0.1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "befe8d9b8e12f69ae6534dbd8ec2760e", "sha256": "a1ba6cacd220b7ba2d357ffd28488cec2c45d4bc687eab7f8bb54df1f618809a" }, "downloads": -1, "filename": "traitlets_paths-0.1.3.tar.gz", "has_sig": false, "md5_digest": "befe8d9b8e12f69ae6534dbd8ec2760e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2327, "upload_time": "2018-10-18T02:40:38", "url": "https://files.pythonhosted.org/packages/15/61/ffc36a5e8f876433fec95c880591390ff696e7e85e10fa92514252135144/traitlets_paths-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "44633dd2d0172d41833e96866f1cd2cf", "sha256": "f72f81463ad97933ec11a5e2bea56dad37f97acde206db7528f4e85b07f9b558" }, "downloads": -1, "filename": "traitlets_paths-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "44633dd2d0172d41833e96866f1cd2cf", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3438, "upload_time": "2018-10-18T02:40:37", "url": "https://files.pythonhosted.org/packages/82/06/427ae688548d7bfa6b99b0a708ca8e81a132da7da56fa5a9f1fdea857a10/traitlets_paths-0.1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "befe8d9b8e12f69ae6534dbd8ec2760e", "sha256": "a1ba6cacd220b7ba2d357ffd28488cec2c45d4bc687eab7f8bb54df1f618809a" }, "downloads": -1, "filename": "traitlets_paths-0.1.3.tar.gz", "has_sig": false, "md5_digest": "befe8d9b8e12f69ae6534dbd8ec2760e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2327, "upload_time": "2018-10-18T02:40:38", "url": "https://files.pythonhosted.org/packages/15/61/ffc36a5e8f876433fec95c880591390ff696e7e85e10fa92514252135144/traitlets_paths-0.1.3.tar.gz" } ] }