{ "info": { "author": "R&T Equinor ", "author_email": "", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Multimedia :: Graphics", "Topic :: Scientific/Engineering", "Topic :: Scientific/Engineering :: Visualization" ], "description": "[![PyPI version](https://badge.fury.io/py/webviz-core-components.svg)](https://badge.fury.io/py/webviz-core-components)\n[![Build Status](https://travis-ci.org/equinor/webviz-core-components.svg?branch=master)](https://travis-ci.org/equinor/webviz-core-components)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/e5f81735a1a9423eb7be3fee8e2d30ee)](https://www.codacy.com/manual/webviz/webviz-core-components?utm_source=github.com&utm_medium=referral&utm_content=equinor/webviz-core-components&utm_campaign=Badge_Grade)\n[![Python 3.6+](https://img.shields.io/badge/python-3.6+-blue.svg)](https://www.python.org/)\n[![Code style: black](https://img.shields.io/badge/code%20style-black%20%28Python%29-000000.svg)](https://github.com/psf/black)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier%20%28JavaScript%29-ff69b4.svg)](https://github.com/prettier/prettier)\n\n# Webviz core components\n\n`webviz_core_components` is a Dash component library for use in `webviz`.\n\nYou can quickly get started with:\n\n1. Run `pip install webviz-core-components`\n2. Run `python usage.py`\n3. Visit http://localhost:8050 in your web browser\n\n> :warning: The components here are used by [`webviz-config`](https://github.com/equinor/webviz-config).\nIn order to facilitate a strong [CSP configuration](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP),\nthis package has a side effect of changing the Plotly distribution coming with\n[`dash-core-components`](https://github.com/plotly/dash-core-components) to one\nthat do not rely on [`eval()`](https://developer.chrome.com/extensions/contentSecurityPolicy#relaxing-eval).\nMore specifically it changes from `plotly-full` to `plotly-cartesian` bundle. This will be\nnecessary in order to enforce a strong CSP configuration as long as\n[this `plotly` issue](https://github.com/plotly/plotly.js/issues/897) and\n[this `dash-core-components` issue](https://github.com/plotly/dash-core-components/issues/462)\nboth are open. Note that this side-effect only takes place if `dash-core-components`\nis installed, which is a requirement if the `Graph` component from this repository\nis going to be used.\n\n## Contributing\n\nThis project was generated by the\n[dash-component-boilerplate](https://github.com/plotly/dash-component-boilerplate).\nIt contains the minimal set of code required to create a custom Dash component.\n\n### Install dependencies\n\nIf you have selected install_dependencies during the prompt, you can skip this part.\n\n1. Install npm packages\n ```\n npm install\n ```\n2. Create a virtual env and activate.\n ```\n virtualenv venv\n . venv/bin/activate\n ```\n _Note: venv\\Scripts\\activate for windows_\n\n3. Install python packages required to build components.\n ```\n pip install .[dependencies]\n pip install dash[dev]\n ```\n4. Install the python packages for testing (optional)\n ```\n pip install .[tests]\n pip install dash[testing]\n ```\n The second of these commands appears to be necessary as long as\n [this `pip` issue is open](https://github.com/pypa/pip/issues/4957).\n\n### Write component code in `src/lib/components/.react.js`\n\n- The demo app is in `src/demo` and you will import your example component code into your demo app.\n- Test your code in a Python environment:\n 1. Build your code\n ```\n npm run build\n ```\n 2. Run and modify the `usage.py` sample dash app:\n ```\n python usage.py\n ```\n- Write tests for your component.\n - A sample test is available in `tests/test_usage.py`, it will load\n `usage.py` and you can then automate interactions with selenium.\n\n - Run the tests with `pytest tests`.\n\n - The Dash team uses these types of integration tests extensively.\n Browse the Dash component code on GitHub for more examples of testing\n (e.g. [dash-core-components](https://github.com/plotly/dash-core-components)).\n\n- Add custom styles to your component by putting your custom CSS files into\n your distribution folder (`webviz_subsurface_components`).\n - Make sure that they are referenced in `MANIFEST.in` so that they get\n properly included when you're ready to publish your component.\n\n - Make sure the stylesheets are added to the `_css_dist` dict in\n `webviz_core_components/__init__.py` so dash will serve them\n automatically when the component suite is requested.\n\n- [Review your code](./review_checklist.md)\n\n### Build code and install\n\n1. Build your code:\n ```\n npm run build\n ```\n2. Install the Python package:\n ```\n pip install -e .\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/equinor/webviz-core-components", "keywords": "", "license": "LGPL-3.0", "maintainer": "", "maintainer_email": "", "name": "webviz-core-components", "package_url": "https://pypi.org/project/webviz-core-components/", "platform": "", "project_url": "https://pypi.org/project/webviz-core-components/", "project_urls": { "Homepage": "https://github.com/equinor/webviz-core-components" }, "release_url": "https://pypi.org/project/webviz-core-components/0.0.10/", "requires_dist": null, "requires_python": "", "summary": "Core components for webviz config", "version": "0.0.10" }, "last_serial": 5923198, "releases": { "0.0.0": [ { "comment_text": "", "digests": { "md5": "7be7e60a49bf0c4d284018d986132e3f", "sha256": "34622baeded0b5fade1222c3c8390e050a0ff52428eef7649ac713cc0724e533" }, "downloads": -1, "filename": "webviz-core-components-0.0.0.tar.gz", "has_sig": false, "md5_digest": "7be7e60a49bf0c4d284018d986132e3f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 596, "upload_time": "2019-08-19T11:58:38", "url": "https://files.pythonhosted.org/packages/1f/75/93d497e04ae11126176027cd8b345e7a43e8b23c3664eaf18ffc6b254a35/webviz-core-components-0.0.0.tar.gz" } ], "0.0.1": [ { "comment_text": "", "digests": { "md5": "2ce9caa86051a2a7fc645aa5101d184d", "sha256": "35c5c15422b9a3a8f55efe584e23b090cf15c6ca0b31bf568b3a27eaf6412fee" }, "downloads": -1, "filename": "webviz_core_components-0.0.1.tar.gz", "has_sig": false, "md5_digest": "2ce9caa86051a2a7fc645aa5101d184d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 712719, "upload_time": "2019-08-19T14:04:50", "url": "https://files.pythonhosted.org/packages/e8/7b/4a4317f85d4c292645d50b576ba038bedf6bfb350c7ea7fb649e101c886b/webviz_core_components-0.0.1.tar.gz" } ], "0.0.10": [ { "comment_text": "", "digests": { "md5": "4be21d93ee53d03e65264abc38e59ff0", "sha256": "2a43fe1edcfc47a2ba46d992a2a54b3ff78f16a2e550070f26e2f4d0d20113cf" }, "downloads": -1, "filename": "webviz_core_components-0.0.10.tar.gz", "has_sig": false, "md5_digest": "4be21d93ee53d03e65264abc38e59ff0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1714024, "upload_time": "2019-10-03T12:34:48", "url": "https://files.pythonhosted.org/packages/42/d2/8ce0afbfb333da9117390bf41150e44d61c6e0b7f8bf27f855509b9db5ed/webviz_core_components-0.0.10.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "57f45d864e3a08acbf55ac7b8336507c", "sha256": "e8208e74d300720574a7ef38cb15258151a7d32dfc540c92c2449e27bdd8e5d1" }, "downloads": -1, "filename": "webviz_core_components-0.0.2.tar.gz", "has_sig": false, "md5_digest": "57f45d864e3a08acbf55ac7b8336507c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 807069, "upload_time": "2019-08-19T19:44:56", "url": "https://files.pythonhosted.org/packages/24/87/266f7aabda5d95d482e9958377e55f9b5103feeb70e21650428868bfd1c7/webviz_core_components-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "32f27dcdacebd6cb41f32ae558cdc065", "sha256": "1e06941f8fe66a49813e872701fbfb20d2d871edef2f0c22acc40546854fca9d" }, "downloads": -1, "filename": "webviz_core_components-0.0.3.tar.gz", "has_sig": false, "md5_digest": "32f27dcdacebd6cb41f32ae558cdc065", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 807289, "upload_time": "2019-08-20T13:38:51", "url": "https://files.pythonhosted.org/packages/ca/2b/4670b77312e5fea785c080a6d963acfab9d4e8b6c682fcf802b12a908e84/webviz_core_components-0.0.3.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "59e7876792f216321aba125251c0449c", "sha256": "c70f20bd9451ac628c15028fb0243709e5ba99dc2417ad8905aea1d18fe28c65" }, "downloads": -1, "filename": "webviz_core_components-0.0.6.tar.gz", "has_sig": false, "md5_digest": "59e7876792f216321aba125251c0449c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 808257, "upload_time": "2019-08-29T08:47:17", "url": "https://files.pythonhosted.org/packages/75/55/2e65a929934727d6f9342356c08492750dc3c9b6b6a5127d9ca4e43641db/webviz_core_components-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "f5c348ccc4a55aa384b725dd770492e9", "sha256": "1a757b6d09e69664dbb2fdffa21df8832c7660b90c90041ae8e916349fcf47fa" }, "downloads": -1, "filename": "webviz_core_components-0.0.7.tar.gz", "has_sig": false, "md5_digest": "f5c348ccc4a55aa384b725dd770492e9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1461940, "upload_time": "2019-08-29T19:33:57", "url": "https://files.pythonhosted.org/packages/11/2a/81dde26acfba78b1f9d710c0dd4909e8343c0162484ec4b41cfe3e3a25a3/webviz_core_components-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "07684f2bb828a4e1779b741c5450a09a", "sha256": "74c1edd6b9bb776b40dadd5ca9e9d53761b2b71924161e6ecd72b7491733b132" }, "downloads": -1, "filename": "webviz_core_components-0.0.8.tar.gz", "has_sig": false, "md5_digest": "07684f2bb828a4e1779b741c5450a09a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1461952, "upload_time": "2019-08-30T13:45:10", "url": "https://files.pythonhosted.org/packages/cd/3c/05347f731d0e6b78826da410cd8f887cc3ab1bf8740eea62bc70ef5473a6/webviz_core_components-0.0.8.tar.gz" } ], "0.0.9": [ { "comment_text": "", "digests": { "md5": "5e915e1698848f84af97d86a1cdbb40a", "sha256": "dcd765942f10fb8fe4b9665f14a1e145270c0bc7496df9d4a3398ecdf6f7eafc" }, "downloads": -1, "filename": "webviz_core_components-0.0.9.tar.gz", "has_sig": false, "md5_digest": "5e915e1698848f84af97d86a1cdbb40a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1461952, "upload_time": "2019-09-21T18:59:27", "url": "https://files.pythonhosted.org/packages/71/9d/2a6845d89af835316d8ba5b472e1e538f1a276ba39723a509607a9ea860d/webviz_core_components-0.0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4be21d93ee53d03e65264abc38e59ff0", "sha256": "2a43fe1edcfc47a2ba46d992a2a54b3ff78f16a2e550070f26e2f4d0d20113cf" }, "downloads": -1, "filename": "webviz_core_components-0.0.10.tar.gz", "has_sig": false, "md5_digest": "4be21d93ee53d03e65264abc38e59ff0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1714024, "upload_time": "2019-10-03T12:34:48", "url": "https://files.pythonhosted.org/packages/42/d2/8ce0afbfb333da9117390bf41150e44d61c6e0b7f8bf27f855509b9db5ed/webviz_core_components-0.0.10.tar.gz" } ] }