Type stubs for plotly.
Project description
plotly-stubs
plotly-stubs is a stub-only package containing static type annotations for plotly.
Installation
pip install plotly-stubs
Usage
See plotly-stubs's documentation.
Note: Only very basic documentation as per now.
Development Setup
1. Install uv
This project uses uv as package manager.
If you haven't already, install uv, preferably using it's "Standalone installer" method:
..on Windows:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
..on MacOS and Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
(see docs.astral.sh/uv for all / alternative installation methods.)
Once installed, you can update uv to its latest version, anytime, by running:
uv self update
2. Clone the repository
Clone the plotly-stubs repository into your local development directory:
git clone https://github.com/ClaasRostock/plotly-stubs path/to/your/dev/plotly-stubs
Change into the project directory after cloning:
cd plotly-stubs
3. Install dependencies
Run uv sync -U to create a virtual environment and install all project dependencies into it:
uv sync -U
Note: Using
--no-devwill omit installing development dependencies.
Explanation: The
-Uoption stands for--update. It forcesuvto fetch and install the latest versions of all dependencies, ensuring that your environment is up-to-date.
Note:
uvwill create a new virtual environment called.venvin the project root directory when runninguv sync -Uthe first time. Optionally, you can create your own virtual environment using e.g.uv venv, before runninguv sync -U.
4. (Optional) Activate the virtual environment
When using uv, there is in almost all cases no longer a need to manually activate the virtual environment.
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:
uv run <command>
However, you still can manually activate the virtual environment if needed.
When developing in an IDE, for instance, this can in some cases be necessary depending on your IDE settings.
To manually activate the virtual environment, run one of the "known" legacy commands:
..on Windows:
.venv\Scripts\activate.bat
..on Linux:
source .venv/bin/activate
5. Install pre-commit hooks
The .pre-commit-config.yaml file in the project root directory contains a configuration for pre-commit hooks.
To install the pre-commit hooks defined therein in your local git repository, run:
uv run pre-commit install
All pre-commit hooks configured in .pre-commit-config.yaml will now run each time you commit changes.
pre-commit can also manually be invoked, at anytime, using:
uv run pre-commit run --all-files
To skip the pre-commit validation on commits (e.g. when intentionally committing broken code), run:
uv run git commit -m <MSG> --no-verify
To update the hooks configured in .pre-commit-config.yaml to their newest versions, run:
uv run pre-commit autoupdate
6. Test that the installation works
To test that the installation works, run pytest in the project root folder:
uv run pytest
Meta
Copyright (c) 2026 Claas Rostock. All rights reserved.
Claas Rostock - @LinkedIn - claas.rostock@dnv.com
Distributed under the MIT license. See LICENSE for more information.
https://github.com/ClaasRostock/plotly-stubs
Contributing
- Fork it (https://github.com/ClaasRostock/plotly-stubs/fork)
- Create an issue in your GitHub repo
- Create your branch based on the issue number and type (
git checkout -b issue-name) - Evaluate and stage the changes you want to commit (
git add -i) - Commit your changes (
git commit -am 'place a descriptive commit message here') - Push to the branch (
git push origin issue-name) - Create a new Pull Request in GitHub
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file plotly_stubs-0.1.3.tar.gz.
File metadata
- Download URL: plotly_stubs-0.1.3.tar.gz
- Upload date:
- Size: 169.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
258b40a9099459cf526c587be12c7098376a144fb6c9de4442363a7d30fb118b
|
|
| MD5 |
f061c9a340f349b67d66a471c65ea489
|
|
| BLAKE2b-256 |
f981d5c11003990432c57e5e12b22a7f4388691ec67deeb5c8a13b0e775870bd
|
Provenance
The following attestation bundles were made for plotly_stubs-0.1.3.tar.gz:
Publisher:
publish_release.yml on ClaasRostock/plotly-stubs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
plotly_stubs-0.1.3.tar.gz -
Subject digest:
258b40a9099459cf526c587be12c7098376a144fb6c9de4442363a7d30fb118b - Sigstore transparency entry: 1279127917
- Sigstore integration time:
-
Permalink:
ClaasRostock/plotly-stubs@02f6ed059e15f7227dae141f4a6bdcfba21e1dd3 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/ClaasRostock
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_release.yml@02f6ed059e15f7227dae141f4a6bdcfba21e1dd3 -
Trigger Event:
push
-
Statement type:
File details
Details for the file plotly_stubs-0.1.3-py3-none-any.whl.
File metadata
- Download URL: plotly_stubs-0.1.3-py3-none-any.whl
- Upload date:
- Size: 106.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfc69c2777e10236a56fa715d0155727f80086ca5f67d36bc65ba18569b3e761
|
|
| MD5 |
3a19662ee3e65384f24544081d0d4087
|
|
| BLAKE2b-256 |
ba70dbd075a1d475b7e253f48a808cc1670f574a808ee1b13f42650bb355eee0
|
Provenance
The following attestation bundles were made for plotly_stubs-0.1.3-py3-none-any.whl:
Publisher:
publish_release.yml on ClaasRostock/plotly-stubs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
plotly_stubs-0.1.3-py3-none-any.whl -
Subject digest:
dfc69c2777e10236a56fa715d0155727f80086ca5f67d36bc65ba18569b3e761 - Sigstore transparency entry: 1279127918
- Sigstore integration time:
-
Permalink:
ClaasRostock/plotly-stubs@02f6ed059e15f7227dae141f4a6bdcfba21e1dd3 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/ClaasRostock
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_release.yml@02f6ed059e15f7227dae141f4a6bdcfba21e1dd3 -
Trigger Event:
push
-
Statement type: