{ "info": { "author": "The HyperSpy Developers", "author_email": "devel@hyperspy.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 3", "Topic :: Software Development :: Build Tools" ], "description": "link\\_traits\r\n============\r\n\r\n|Build Status| |Codecov branch|\r\n\r\n**link\\_traits** is a fork of\r\n`traitlets' `__ **link** and\r\n**dlink** functions to add the ability to link\r\n`traits `__ in addition to\r\ntraitlets.\r\n\r\nInstallation\r\n------------\r\n\r\nMake sure you have `pip\r\ninstalled `__ and run:\r\n\r\n.. code:: bash\r\n\r\n pip install link_traits\r\n\r\n**link\\_traits** depends on **traits** which is not a pure Python\r\npackage. In `Anaconda `__ you can install\r\nlink\\_traits and traits as follows:\r\n\r\n.. code:: bash\r\n\r\n conda install link-traits -c conda-forge\r\n\r\nRunning the tests\r\n-----------------\r\n\r\npy.test is required to run the tests.\r\n\r\n.. code:: bash\r\n\r\n pip install \"link_traits[test]\"\r\n py.test --pyargs traitlets\r\n\r\nUsage\r\n-----\r\n\r\n.. code:: python\r\n\r\n\r\n import traits.api as t\r\n import traitlets\r\n from link_traits import link\r\n\r\n class A(t.HasTraits):\r\n a = t.Int()\r\n\r\n class B(traitlets.HasTraits):\r\n b = t.Int()\r\n a = A()\r\n b = B()\r\n l = link((a, \"a\"), (b, \"b\"))\r\n\r\n.. code:: python\r\n\r\n >>> a.a = 3\r\n >>> b.b\r\n 3\r\n\r\nDevelopment\r\n-----------\r\n\r\nContributions through pull requests are welcome. The intention is to\r\nkeep the syntax and features in sync with the original traitlets'\r\n**link** and **dlink** functions. Therefore, before contributing a new\r\nfeature here, please contribute it to\r\n`traitlets `__ first.\r\n\r\n.. |Build Status| image:: https://travis-ci.org/hyperspy/link_traits.svg?branch=master\r\n :target: https://travis-ci.org/hyperspy/link_traits\r\n.. |Codecov branch| image:: https://img.shields.io/codecov/c/github/hyperspy/link_traits/master.svg\r\n :target: https://codecov.io/gh/hyperspy/link_traits", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/hyperspy/link_traits", "keywords": "traits traitlets ipywidgets traitsui", "license": "BSD-3-Clause", "maintainer": "", "maintainer_email": "", "name": "link-traits", "package_url": "https://pypi.org/project/link-traits/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/link-traits/", "project_urls": { "Homepage": "https://github.com/hyperspy/link_traits" }, "release_url": "https://pypi.org/project/link-traits/1.0.2/", "requires_dist": [ "traits", "pytest; extra == 'test'" ], "requires_python": "", "summary": "A fork to traitlets' link and dlink to link traits in addition to traitlets.", "version": "1.0.2" }, "last_serial": 5420994, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "6bfceb9fef7b557cf198a6da17e40baa", "sha256": "2c823a3d7100d6f1c9f38c074b0ed40990e9964922567f3f4312946c586d64d4" }, "downloads": -1, "filename": "link_traits-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6bfceb9fef7b557cf198a6da17e40baa", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7238, "upload_time": "2017-05-19T16:45:14", "url": "https://files.pythonhosted.org/packages/83/1e/fda87263ab03f1d1f5b373a38e82086c42ddec26d74a82bab6cfc1ddf43d/link_traits-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0c7697b16146a530ce045584f3e6e411", "sha256": "1ba48fc5d8a9a9a11d28fa8ddffba602558eb44ffc52f33a64835a02ac2db3a7" }, "downloads": -1, "filename": "link_traits-1.0.0.tar.gz", "has_sig": false, "md5_digest": "0c7697b16146a530ce045584f3e6e411", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5456, "upload_time": "2017-05-19T16:45:16", "url": "https://files.pythonhosted.org/packages/7b/db/a643322c969a911a219e0908cc269eef299fbdb8c879784551af0d1e1d3e/link_traits-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "3682d3dad8e7c77700bc0f7294db05a8", "sha256": "56674c84f4a70667a927447e117f1c4a5a9fbaf51a491d922b8af8a3f88635b4" }, "downloads": -1, "filename": "link_traits-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3682d3dad8e7c77700bc0f7294db05a8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7357, "upload_time": "2017-05-19T17:36:17", "url": "https://files.pythonhosted.org/packages/2e/04/69367b100e6d60753ae08c116dfbe3862831a1ce02a8a923f9f19044b89e/link_traits-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7f270bc64ccd606573e9dd1d929f0f63", "sha256": "bd8fbc7130cb863f334539cf93c304796886baa159e9b8df1270b3b59d5781a7" }, "downloads": -1, "filename": "link_traits-1.0.1.tar.gz", "has_sig": false, "md5_digest": "7f270bc64ccd606573e9dd1d929f0f63", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5935, "upload_time": "2017-05-19T17:36:18", "url": "https://files.pythonhosted.org/packages/64/d1/4d683994fbba2d3691f7433c09453ea8f4a5144a74767bd39c0d0f8ad25a/link_traits-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "fb099a76a05d13fc58e551f477b630f0", "sha256": "59fb6c10a579f00308acadd7bed3caeaa112babe98203c933cff680106f635fc" }, "downloads": -1, "filename": "link_traits-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "fb099a76a05d13fc58e551f477b630f0", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7337, "upload_time": "2017-05-22T15:40:57", "url": "https://files.pythonhosted.org/packages/d6/40/4fb7bcca14e826d75df8acbaac39977a0d3645f14d0671699a28a2f4666b/link_traits-1.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "23667341b3d8bbe392c2fec9a36bae95", "sha256": "2a5de4aa37bc0c9e135b2b28c37b8986fcb0c8e68e1e7c26939b2316dfaa1674" }, "downloads": -1, "filename": "link_traits-1.0.2.tar.gz", "has_sig": false, "md5_digest": "23667341b3d8bbe392c2fec9a36bae95", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7243, "upload_time": "2017-05-22T15:40:59", "url": "https://files.pythonhosted.org/packages/68/70/3193b471babb46ddb5be65fda14b4e17e544838531fcb84266f497217136/link_traits-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fb099a76a05d13fc58e551f477b630f0", "sha256": "59fb6c10a579f00308acadd7bed3caeaa112babe98203c933cff680106f635fc" }, "downloads": -1, "filename": "link_traits-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "fb099a76a05d13fc58e551f477b630f0", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7337, "upload_time": "2017-05-22T15:40:57", "url": "https://files.pythonhosted.org/packages/d6/40/4fb7bcca14e826d75df8acbaac39977a0d3645f14d0671699a28a2f4666b/link_traits-1.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "23667341b3d8bbe392c2fec9a36bae95", "sha256": "2a5de4aa37bc0c9e135b2b28c37b8986fcb0c8e68e1e7c26939b2316dfaa1674" }, "downloads": -1, "filename": "link_traits-1.0.2.tar.gz", "has_sig": false, "md5_digest": "23667341b3d8bbe392c2fec9a36bae95", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7243, "upload_time": "2017-05-22T15:40:59", "url": "https://files.pythonhosted.org/packages/68/70/3193b471babb46ddb5be65fda14b4e17e544838531fcb84266f497217136/link_traits-1.0.2.tar.gz" } ] }