plotly-stubs 0.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. plotly_stubs-0.0.1/.coveragerc +13 -0
  2. plotly_stubs-0.0.1/.editorconfig +15 -0
  3. plotly_stubs-0.0.1/.gitignore +160 -0
  4. plotly_stubs-0.0.1/.pre-commit-config.yaml +20 -0
  5. plotly_stubs-0.0.1/LICENSE +21 -0
  6. plotly_stubs-0.0.1/PKG-INFO +198 -0
  7. plotly_stubs-0.0.1/README.md +148 -0
  8. plotly_stubs-0.0.1/pyproject.toml +166 -0
  9. plotly_stubs-0.0.1/pytest.ini +5 -0
  10. plotly_stubs-0.0.1/ruff.toml +163 -0
  11. plotly_stubs-0.0.1/src/plotly-stubs/__init__.pyi +41 -0
  12. plotly_stubs-0.0.1/src/plotly-stubs/basedatatypes.pyi +416 -0
  13. plotly_stubs-0.0.1/src/plotly-stubs/callbacks.pyi +80 -0
  14. plotly_stubs-0.0.1/src/plotly-stubs/colors/__init__.pyi +35 -0
  15. plotly_stubs-0.0.1/src/plotly-stubs/express/__init__.pyi +95 -0
  16. plotly_stubs-0.0.1/src/plotly-stubs/express/colors/__init__.pyi +69 -0
  17. plotly_stubs-0.0.1/src/plotly-stubs/graph_objects/__init__.pyi +259 -0
  18. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/__init__.pyi +262 -0
  19. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/_bar.pyi +477 -0
  20. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/_box.pyi +536 -0
  21. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/_contour.pyi +448 -0
  22. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/_figure.pyi +3926 -0
  23. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/_heatmap.pyi +436 -0
  24. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/_layout.pyi +545 -0
  25. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/_scatter.pyi +450 -0
  26. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/_surface.pyi +385 -0
  27. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/bar/__init__.pyi +46 -0
  28. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/bar/_stream.pyi +23 -0
  29. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/bar/selected/__init__.pyi +7 -0
  30. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/bar/selected/_marker.pyi +23 -0
  31. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/bar/selected/_textfont.pyi +18 -0
  32. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/bar/unselected/__init__.pyi +4 -0
  33. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/bar/unselected/_marker.pyi +23 -0
  34. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/bar/unselected/_textfont.pyi +18 -0
  35. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/barpolar/__init__.pyi +38 -0
  36. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/box/__init__.pyi +38 -0
  37. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/box/_line.pyi +23 -0
  38. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/box/selected/__init__.pyi +3 -0
  39. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/box/selected/_marker.pyi +28 -0
  40. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/box/unselected/__init__.pyi +3 -0
  41. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/box/unselected/_marker.pyi +28 -0
  42. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/candlestick/__init__.pyi +36 -0
  43. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/carpet/__init__.pyi +32 -0
  44. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/choropleth/__init__.pyi +42 -0
  45. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/choropleth/selected/__init__.pyi +5 -0
  46. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/choropleth/selected/_marker.pyi +23 -0
  47. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/choropleth/unselected/__init__.pyi +5 -0
  48. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/choropleth/unselected/_marker.pyi +23 -0
  49. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/choroplethmap/__init__.pyi +42 -0
  50. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/choroplethmapbox/__init__.pyi +40 -0
  51. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/cone/__init__.pyi +34 -0
  52. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/contour/__init__.pyi +38 -0
  53. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/contourcarpet/__init__.pyi +32 -0
  54. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/densitymap/__init__.pyi +30 -0
  55. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/densitymapbox/__init__.pyi +30 -0
  56. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/funnel/__init__.pyi +40 -0
  57. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/funnelarea/__init__.pyi +40 -0
  58. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/graph_objs_disabled.pyi +1 -0
  59. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/heatmap/__init__.pyi +32 -0
  60. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/histogram/__init__.pyi +54 -0
  61. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/histogram2d/__init__.pyi +38 -0
  62. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/histogram2dcontour/__init__.pyi +44 -0
  63. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/icicle/__init__.pyi +48 -0
  64. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/image/__init__.pyi +26 -0
  65. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/indicator/__init__.pyi +40 -0
  66. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/isosurface/__init__.pyi +48 -0
  67. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/layout/__init__.pyi +122 -0
  68. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/layout/newselection/__init__.pyi +5 -0
  69. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/layout/newselection/_line.pyi +28 -0
  70. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/mesh3d/__init__.pyi +36 -0
  71. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/ohlc/__init__.pyi +36 -0
  72. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/parcats/__init__.pyi +34 -0
  73. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/parcoords/__init__.pyi +40 -0
  74. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/pie/__init__.pyi +42 -0
  75. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/sankey/__init__.pyi +38 -0
  76. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/scatter/__init__.pyi +47 -0
  77. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/scatter/marker/__init__.pyi +24 -0
  78. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/scatter/marker/colorbar/__init__.pyi +24 -0
  79. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/scatter/marker/colorbar/title/__init__.pyi +5 -0
  80. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/scatter/selected/__init__.pyi +7 -0
  81. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/scatter/selected/_marker.pyi +28 -0
  82. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/scatter/selected/_textfont.pyi +18 -0
  83. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/scatter/unselected/__init__.pyi +7 -0
  84. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/scatter/unselected/_marker.pyi +28 -0
  85. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/scatter/unselected/_textfont.pyi +18 -0
  86. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/scatter3d/__init__.pyi +46 -0
  87. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/scattercarpet/__init__.pyi +42 -0
  88. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/scattergeo/__init__.pyi +42 -0
  89. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/scattergl/__init__.pyi +46 -0
  90. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/scattermap/__init__.pyi +44 -0
  91. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/scattermapbox/__init__.pyi +44 -0
  92. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/scatterpolar/__init__.pyi +42 -0
  93. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/scatterpolargl/__init__.pyi +42 -0
  94. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/scattersmith/__init__.pyi +42 -0
  95. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/scatterternary/__init__.pyi +42 -0
  96. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/splom/__init__.pyi +44 -0
  97. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/streamtube/__init__.pyi +36 -0
  98. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/subplots.pyi +26 -0
  99. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/sunburst/__init__.pyi +42 -0
  100. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/surface/__init__.pyi +38 -0
  101. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/table/__init__.pyi +36 -0
  102. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/treemap/__init__.pyi +46 -0
  103. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/violin/__init__.pyi +46 -0
  104. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/volume/__init__.pyi +48 -0
  105. plotly_stubs-0.0.1/src/plotly-stubs/graph_objs/waterfall/__init__.pyi +48 -0
  106. plotly_stubs-0.0.1/src/plotly-stubs/io/__init__.pyi +42 -0
  107. plotly_stubs-0.0.1/src/plotly-stubs/offline/__init__.pyi +38 -0
  108. plotly_stubs-0.0.1/src/plotly-stubs/offline/_plotlyjs_version.pyi +1 -0
  109. plotly_stubs-0.0.1/src/plotly-stubs/py.typed +0 -0
  110. plotly_stubs-0.0.1/src/plotly-stubs/subplots.pyi +25 -0
  111. plotly_stubs-0.0.1/src/plotly-stubs/utils.pyi +46 -0
  112. plotly_stubs-0.0.1/tests/.gitignore +2 -0
  113. plotly_stubs-0.0.1/tests/__init__.py +0 -0
  114. plotly_stubs-0.0.1/tests/conftest.py +72 -0
  115. plotly_stubs-0.0.1/tests/test_dummy.py +12 -0
  116. plotly_stubs-0.0.1/tests/test_working_directory/.gitignore +1 -0
@@ -0,0 +1,13 @@
1
+ [paths]
2
+ source =
3
+ src/plotly-stubs
4
+ */site-packages/plotly-stubs
5
+
6
+ [run]
7
+ source = plotly-stubs
8
+ branch = True
9
+
10
+ [report]
11
+ fail_under = 0.0
12
+ show_missing = True
13
+ skip_covered = True
@@ -0,0 +1,15 @@
1
+ # EditorConfig is awesome: https://EditorConfig.org
2
+
3
+ # top-most EditorConfig file
4
+ root = true
5
+
6
+ [*]
7
+ indent_style = space
8
+ indent_size = 4
9
+ charset = utf-8
10
+ trim_trailing_whitespace = true
11
+ insert_final_newline = true
12
+
13
+ [*.{yml,yaml}]
14
+ indent_style = space
15
+ indent_size = 2
@@ -0,0 +1,160 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ pip-wheel-metadata/
24
+ share/python-wheels/
25
+ *.egg-info/
26
+ .installed.cfg
27
+ *.egg
28
+ MANIFEST
29
+
30
+ # PyInstaller
31
+ # Usually these files are written by a python script from a template
32
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
33
+ *.manifest
34
+ *.spec
35
+
36
+ # Installer logs
37
+ pip-log.txt
38
+ pip-delete-this-directory.txt
39
+
40
+ # Unit test / coverage reports
41
+ htmlcov/
42
+ .tox/
43
+ .nox/
44
+ .coverage
45
+ .coverage.*
46
+ .cache
47
+ nosetests.xml
48
+ coverage.xml
49
+ *.cover
50
+ *.py,cover
51
+ .hypothesis/
52
+ .pytest_cache/
53
+ cover/
54
+
55
+ # Translations
56
+ *.mo
57
+ *.pot
58
+
59
+ # Django stuff:
60
+ *.log
61
+ local_settings.py
62
+ db.sqlite3
63
+ db.sqlite3-journal
64
+
65
+ # Flask stuff:
66
+ instance/
67
+ .webassets-cache
68
+
69
+ # Scrapy stuff:
70
+ .scrapy
71
+
72
+ # Sphinx documentation
73
+ docs/_build/
74
+ _autosummary
75
+
76
+ # PyBuilder
77
+ .pybuilder/
78
+ target/
79
+
80
+ # Jupyter Notebook
81
+ .ipynb_checkpoints
82
+
83
+ # IPython
84
+ profile_default/
85
+ ipython_config.py
86
+
87
+ # pyenv
88
+ .python-version
89
+
90
+ # uv
91
+ # It is generally recommended to include `uv.lock` in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, `uv` might install dependencies in one environment that don't work in another.
94
+ # In such case, `uv.lock` should be added to `.gitignore`
95
+ uv.lock
96
+
97
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
98
+ __pypackages__/
99
+
100
+ # Celery stuff
101
+ celerybeat-schedule
102
+ celerybeat.pid
103
+
104
+ # SageMath parsed files
105
+ *.sage.py
106
+
107
+ # Environments
108
+ .env
109
+ .venv
110
+ env/
111
+ venv/
112
+ ENV/
113
+ env.bak/
114
+ venv.bak/
115
+
116
+ # Spyder project settings
117
+ .spyderproject
118
+ .spyproject
119
+
120
+ # Rope project settings
121
+ .ropeproject
122
+
123
+ # mkdocs documentation
124
+ /site
125
+
126
+ # mypy
127
+ .mypy_cache/
128
+ .dmypy.json
129
+ dmypy.json
130
+
131
+ # Pyre type checker
132
+ .pyre/
133
+
134
+ # pytype static type analyzer
135
+ .pytype/
136
+
137
+ # Cython debug symbols
138
+ cython_debug/
139
+
140
+ # Ruff
141
+ .ruff_cache
142
+
143
+ # PyCharm
144
+ .idea
145
+
146
+ # VS Code
147
+ .vscode/*
148
+ !.vscode/settings.json
149
+ !.vscode/tasks.json
150
+ !.vscode/launch.json
151
+ !.vscode/extensions.json
152
+ !.vscode/*.code-snippets
153
+
154
+ # Inside /demos folder: ignore temporary logs, db's and local data files
155
+ demos/**/*.log
156
+ demos/**/*.db
157
+ demos/**/*.nc
158
+
159
+ # Cmake generated files
160
+ CMakeUserPresets.json
@@ -0,0 +1,20 @@
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v5.0.0
4
+ hooks:
5
+ - id: mixed-line-ending
6
+ args: [--fix=auto]
7
+ - id: trailing-whitespace
8
+ - id: check-yaml
9
+ - id: check-toml
10
+ - id: check-merge-conflict
11
+ - repo: https://github.com/astral-sh/ruff-pre-commit
12
+ rev: v0.9.2
13
+ hooks:
14
+ - id: ruff-format
15
+ - id: ruff
16
+ # - repo: https://github.com/pre-commit/mirrors-mypy
17
+ # rev: v1.14.1
18
+ # hooks:
19
+ # - id: mypy
20
+ exclude: '(.venv|.*_cache)/.*'
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Claas Rostock
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,198 @@
1
+ Metadata-Version: 2.4
2
+ Name: plotly-stubs
3
+ Version: 0.0.1
4
+ Summary: example package short description.
5
+ Project-URL: Homepage, https://github.com/ClaasRostock/plotly-stubs
6
+ Project-URL: Documentation, https://ClaasRostock.github.io/plotly-stubs/README.html
7
+ Project-URL: Repository, https://github.com/ClaasRostock/plotly-stubs.git
8
+ Project-URL: Issues, https://github.com/ClaasRostock/plotly-stubs/issues
9
+ Project-URL: Changelog, https://github.com/ClaasRostock/plotly-stubs/blob/main/CHANGELOG.md
10
+ Author-email: Claas Rostock <claas.rostock@dnv.com>
11
+ Maintainer-email: Claas Rostock <claas.rostock@dnv.com>
12
+ License: MIT License
13
+
14
+ Copyright (c) 2025 Claas Rostock
15
+
16
+ Permission is hereby granted, free of charge, to any person obtaining a copy
17
+ of this software and associated documentation files (the "Software"), to deal
18
+ in the Software without restriction, including without limitation the rights
19
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
20
+ copies of the Software, and to permit persons to whom the Software is
21
+ furnished to do so, subject to the following conditions:
22
+
23
+ The above copyright notice and this permission notice shall be included in all
24
+ copies or substantial portions of the Software.
25
+
26
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
31
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
32
+ SOFTWARE.
33
+ License-File: LICENSE
34
+ Keywords: plotly,stubs,types
35
+ Classifier: Development Status :: 3 - Alpha
36
+ Classifier: Environment :: Console
37
+ Classifier: Intended Audience :: Developers
38
+ Classifier: Intended Audience :: Science/Research
39
+ Classifier: License :: OSI Approved :: MIT License
40
+ Classifier: Operating System :: Microsoft :: Windows
41
+ Classifier: Operating System :: POSIX :: Linux
42
+ Classifier: Programming Language :: Python :: 3.10
43
+ Classifier: Programming Language :: Python :: 3.11
44
+ Classifier: Programming Language :: Python :: 3.12
45
+ Classifier: Programming Language :: Python :: 3.13
46
+ Classifier: Topic :: Scientific/Engineering
47
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
48
+ Requires-Python: <3.14,>=3.10
49
+ Description-Content-Type: text/markdown
50
+
51
+ [![pypi](https://img.shields.io/pypi/v/plotly-stubs.svg?color=blue)](https://pypi.python.org/pypi/plotly-stubs)
52
+ [![versions](https://img.shields.io/pypi/pyversions/plotly-stubs.svg?color=blue)](https://pypi.python.org/pypi/plotly-stubs)
53
+ [![license](https://img.shields.io/pypi/l/plotly-stubs.svg)](https://github.com/ClaasRostock/plotly-stubs/blob/main/LICENSE)
54
+ ![ci](https://img.shields.io/github/actions/workflow/status/ClaasRostock/plotly-stubs/.github%2Fworkflows%2Fnightly_build.yml?label=ci)
55
+ [![docs](https://img.shields.io/github/actions/workflow/status/ClaasRostock/plotly-stubs/.github%2Fworkflows%2Fpush_to_release.yml?label=docs)][plotly_stubs_docs]
56
+
57
+ # plotly-stubs
58
+ plotly-stubs is a [stub-only package](https://typing.readthedocs.io/en/latest/spec/distributing.html#stub-only-packages) containing static type annotations for [plotly](https://plotly.com/python/).
59
+
60
+
61
+ ## Installation
62
+
63
+ ```sh
64
+ pip install plotly-stubs
65
+ ```
66
+
67
+ ## Documentation
68
+
69
+ See plotly-stubs's [documentation][plotly_stubs_docs].
70
+ > Note: Only very basic documentation as per now.
71
+
72
+
73
+ ## Development Setup
74
+
75
+ ### 1. Install uv
76
+ This project uses `uv` as package manager.
77
+ If you haven't already, install [uv](https://docs.astral.sh/uv), preferably using it's ["Standalone installer"](https://docs.astral.sh/uv/getting-started/installation/#__tabbed_1_2) method: <br>
78
+ ..on Windows:
79
+ ```sh
80
+ powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
81
+ ```
82
+ ..on MacOS and Linux:
83
+ ```sh
84
+ curl -LsSf https://astral.sh/uv/install.sh | sh
85
+ ```
86
+ (see [docs.astral.sh/uv](https://docs.astral.sh/uv/getting-started/installation/) for all / alternative installation methods.)
87
+
88
+ Once installed, you can update `uv` to its latest version, anytime, by running:
89
+ ```sh
90
+ uv self update
91
+ ```
92
+
93
+ ### 2. Install Python
94
+ This project requires Python 3.10 or later. <br>
95
+ If you don't already have a compatible version installed on your machine, the probably most comfortable way to install Python is through `uv`:
96
+ ```sh
97
+ uv python install
98
+ ```
99
+ This will install the latest stable version of Python into the uv Python directory, i.e. as a uv-managed version of Python.
100
+
101
+ Alternatively, and if you want a standalone version of Python on your machine, you can install Python either via `winget`:
102
+ ```sh
103
+ winget install --id Python.Python
104
+ ```
105
+ or you can download and install Python from the [python.org](https://www.python.org/downloads/) website.
106
+
107
+ ### 3. Clone the repository
108
+ Clone the plotly-stubs repository into your local development directory:
109
+ ```sh
110
+ git clone https://github.com/ClaasRostock/plotly-stubs path/to/your/dev/plotly-stubs
111
+ ```
112
+ Change into the project directory after cloning:
113
+ ```sh
114
+ cd plotly-stubs
115
+ ```
116
+
117
+ ### 4. Install dependencies
118
+ Run `uv sync` to create a virtual environment and install all project dependencies into it:
119
+ ```sh
120
+ uv sync
121
+ ```
122
+ > **Note**: Using `--no-dev` will omit installing development dependencies.
123
+
124
+ > **Note**: `uv` will create a new virtual environment called `.venv` in the project root directory when running
125
+ > `uv sync` the first time. Optionally, you can create your own virtual environment using e.g. `uv venv`, before running
126
+ > `uv sync`.
127
+
128
+ ### 5. (Optional) Activate the virtual environment
129
+ When using `uv`, there is in almost all cases no longer a need to manually activate the virtual environment. <br>
130
+ `uv` will find the `.venv` virtual environment in the working directory or any parent directory, and activate it on the fly whenever you run a command via `uv` inside your project folder structure:
131
+ ```sh
132
+ uv run <command>
133
+ ```
134
+
135
+ However, you still _can_ manually activate the virtual environment if needed.
136
+ When developing in an IDE, for instance, this can in some cases be necessary depending on your IDE settings.
137
+ To manually activate the virtual environment, run one of the "known" legacy commands: <br>
138
+ ..on Windows:
139
+ ```sh
140
+ .venv\Scripts\activate.bat
141
+ ```
142
+ ..on Linux:
143
+ ```sh
144
+ source .venv/bin/activate
145
+ ```
146
+
147
+ ### 6. Install pre-commit hooks
148
+ The `.pre-commit-config.yaml` file in the project root directory contains a configuration for pre-commit hooks.
149
+ To install the pre-commit hooks defined therein in your local git repository, run:
150
+ ```sh
151
+ uv run pre-commit install
152
+ ```
153
+
154
+ All pre-commit hooks configured in `.pre-commit-config.yaml` will now run each time you commit changes.
155
+
156
+ pre-commit can also manually be invoked, at anytime, using:
157
+ ```sh
158
+ uv run pre-commit run --all-files
159
+ ```
160
+
161
+ To skip the pre-commit validation on commits (e.g. when intentionally committing broken code), run:
162
+ ```sh
163
+ uv run git commit -m <MSG> --no-verify
164
+ ```
165
+
166
+ To update the hooks configured in `.pre-commit-config.yaml` to their newest versions, run:
167
+ ```sh
168
+ uv run pre-commit autoupdate
169
+ ```
170
+
171
+ ### 7. Test that the installation works
172
+ To test that the installation works, run pytest in the project root folder:
173
+ ```sh
174
+ uv run pytest
175
+ ```
176
+
177
+ ## Meta
178
+
179
+ Copyright (c) 2025 [Claas Rostock](https://github.com/ClaasRostock). All rights reserved.
180
+
181
+ Claas Rostock - [@LinkedIn](https://www.linkedin.com/in/claasrostock/?locale=en_US) - claas.rostock@dnv.com
182
+
183
+ Distributed under the MIT license. See [LICENSE](LICENSE.md) for more information.
184
+
185
+ [https://github.com/ClaasRostock/plotly-stubs](https://github.com/ClaasRostock/plotly-stubs)
186
+
187
+ ## Contributing
188
+
189
+ 1. Fork it (<https://github.com/ClaasRostock/plotly-stubs/fork>)
190
+ 2. Create an issue in your GitHub repo
191
+ 3. Create your branch based on the issue number and type (`git checkout -b issue-name`)
192
+ 4. Evaluate and stage the changes you want to commit (`git add -i`)
193
+ 5. Commit your changes (`git commit -am 'place a descriptive commit message here'`)
194
+ 6. Push to the branch (`git push origin issue-name`)
195
+ 7. Create a new Pull Request in GitHub
196
+
197
+ <!-- Markdown link & img dfn's -->
198
+ [plotly_stubs_docs]: https://ClaasRostock.github.io/plotly-stubs/README.html
@@ -0,0 +1,148 @@
1
+ [![pypi](https://img.shields.io/pypi/v/plotly-stubs.svg?color=blue)](https://pypi.python.org/pypi/plotly-stubs)
2
+ [![versions](https://img.shields.io/pypi/pyversions/plotly-stubs.svg?color=blue)](https://pypi.python.org/pypi/plotly-stubs)
3
+ [![license](https://img.shields.io/pypi/l/plotly-stubs.svg)](https://github.com/ClaasRostock/plotly-stubs/blob/main/LICENSE)
4
+ ![ci](https://img.shields.io/github/actions/workflow/status/ClaasRostock/plotly-stubs/.github%2Fworkflows%2Fnightly_build.yml?label=ci)
5
+ [![docs](https://img.shields.io/github/actions/workflow/status/ClaasRostock/plotly-stubs/.github%2Fworkflows%2Fpush_to_release.yml?label=docs)][plotly_stubs_docs]
6
+
7
+ # plotly-stubs
8
+ plotly-stubs is a [stub-only package](https://typing.readthedocs.io/en/latest/spec/distributing.html#stub-only-packages) containing static type annotations for [plotly](https://plotly.com/python/).
9
+
10
+
11
+ ## Installation
12
+
13
+ ```sh
14
+ pip install plotly-stubs
15
+ ```
16
+
17
+ ## Documentation
18
+
19
+ See plotly-stubs's [documentation][plotly_stubs_docs].
20
+ > Note: Only very basic documentation as per now.
21
+
22
+
23
+ ## Development Setup
24
+
25
+ ### 1. Install uv
26
+ This project uses `uv` as package manager.
27
+ If you haven't already, install [uv](https://docs.astral.sh/uv), preferably using it's ["Standalone installer"](https://docs.astral.sh/uv/getting-started/installation/#__tabbed_1_2) method: <br>
28
+ ..on Windows:
29
+ ```sh
30
+ powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
31
+ ```
32
+ ..on MacOS and Linux:
33
+ ```sh
34
+ curl -LsSf https://astral.sh/uv/install.sh | sh
35
+ ```
36
+ (see [docs.astral.sh/uv](https://docs.astral.sh/uv/getting-started/installation/) for all / alternative installation methods.)
37
+
38
+ Once installed, you can update `uv` to its latest version, anytime, by running:
39
+ ```sh
40
+ uv self update
41
+ ```
42
+
43
+ ### 2. Install Python
44
+ This project requires Python 3.10 or later. <br>
45
+ If you don't already have a compatible version installed on your machine, the probably most comfortable way to install Python is through `uv`:
46
+ ```sh
47
+ uv python install
48
+ ```
49
+ This will install the latest stable version of Python into the uv Python directory, i.e. as a uv-managed version of Python.
50
+
51
+ Alternatively, and if you want a standalone version of Python on your machine, you can install Python either via `winget`:
52
+ ```sh
53
+ winget install --id Python.Python
54
+ ```
55
+ or you can download and install Python from the [python.org](https://www.python.org/downloads/) website.
56
+
57
+ ### 3. Clone the repository
58
+ Clone the plotly-stubs repository into your local development directory:
59
+ ```sh
60
+ git clone https://github.com/ClaasRostock/plotly-stubs path/to/your/dev/plotly-stubs
61
+ ```
62
+ Change into the project directory after cloning:
63
+ ```sh
64
+ cd plotly-stubs
65
+ ```
66
+
67
+ ### 4. Install dependencies
68
+ Run `uv sync` to create a virtual environment and install all project dependencies into it:
69
+ ```sh
70
+ uv sync
71
+ ```
72
+ > **Note**: Using `--no-dev` will omit installing development dependencies.
73
+
74
+ > **Note**: `uv` will create a new virtual environment called `.venv` in the project root directory when running
75
+ > `uv sync` the first time. Optionally, you can create your own virtual environment using e.g. `uv venv`, before running
76
+ > `uv sync`.
77
+
78
+ ### 5. (Optional) Activate the virtual environment
79
+ When using `uv`, there is in almost all cases no longer a need to manually activate the virtual environment. <br>
80
+ `uv` will find the `.venv` virtual environment in the working directory or any parent directory, and activate it on the fly whenever you run a command via `uv` inside your project folder structure:
81
+ ```sh
82
+ uv run <command>
83
+ ```
84
+
85
+ However, you still _can_ manually activate the virtual environment if needed.
86
+ When developing in an IDE, for instance, this can in some cases be necessary depending on your IDE settings.
87
+ To manually activate the virtual environment, run one of the "known" legacy commands: <br>
88
+ ..on Windows:
89
+ ```sh
90
+ .venv\Scripts\activate.bat
91
+ ```
92
+ ..on Linux:
93
+ ```sh
94
+ source .venv/bin/activate
95
+ ```
96
+
97
+ ### 6. Install pre-commit hooks
98
+ The `.pre-commit-config.yaml` file in the project root directory contains a configuration for pre-commit hooks.
99
+ To install the pre-commit hooks defined therein in your local git repository, run:
100
+ ```sh
101
+ uv run pre-commit install
102
+ ```
103
+
104
+ All pre-commit hooks configured in `.pre-commit-config.yaml` will now run each time you commit changes.
105
+
106
+ pre-commit can also manually be invoked, at anytime, using:
107
+ ```sh
108
+ uv run pre-commit run --all-files
109
+ ```
110
+
111
+ To skip the pre-commit validation on commits (e.g. when intentionally committing broken code), run:
112
+ ```sh
113
+ uv run git commit -m <MSG> --no-verify
114
+ ```
115
+
116
+ To update the hooks configured in `.pre-commit-config.yaml` to their newest versions, run:
117
+ ```sh
118
+ uv run pre-commit autoupdate
119
+ ```
120
+
121
+ ### 7. Test that the installation works
122
+ To test that the installation works, run pytest in the project root folder:
123
+ ```sh
124
+ uv run pytest
125
+ ```
126
+
127
+ ## Meta
128
+
129
+ Copyright (c) 2025 [Claas Rostock](https://github.com/ClaasRostock). All rights reserved.
130
+
131
+ Claas Rostock - [@LinkedIn](https://www.linkedin.com/in/claasrostock/?locale=en_US) - claas.rostock@dnv.com
132
+
133
+ Distributed under the MIT license. See [LICENSE](LICENSE.md) for more information.
134
+
135
+ [https://github.com/ClaasRostock/plotly-stubs](https://github.com/ClaasRostock/plotly-stubs)
136
+
137
+ ## Contributing
138
+
139
+ 1. Fork it (<https://github.com/ClaasRostock/plotly-stubs/fork>)
140
+ 2. Create an issue in your GitHub repo
141
+ 3. Create your branch based on the issue number and type (`git checkout -b issue-name`)
142
+ 4. Evaluate and stage the changes you want to commit (`git add -i`)
143
+ 5. Commit your changes (`git commit -am 'place a descriptive commit message here'`)
144
+ 6. Push to the branch (`git push origin issue-name`)
145
+ 7. Create a new Pull Request in GitHub
146
+
147
+ <!-- Markdown link & img dfn's -->
148
+ [plotly_stubs_docs]: https://ClaasRostock.github.io/plotly-stubs/README.html