storybook-csf
Write Storybook stories in Python - Typings for Storybook's Component Story Format (CSF) v3.
The types defined in this package allow you to write Storybook's CSF format in your Python projects. See included types here.
NOTE: The types defined in this package are a JSON-compatible subset of CSF. Fields that require JS-specific types are not included.
from storybook_csf import ComponentAnnotations, ProjectAnnotations, StoryAnnotations
# This will be typed
data: ComponentAnnotations = {
"title": "Component",
"parameters": {
"options": { "component": "my_widget" }
},
# `stories` field is specific to Storybook for Server
# See https://github.com/storybookjs/storybook/tree/next/code/frameworks/server-webpack5
"stories": [
{
"name": "Default",
"parameters": {
"server": { "id": "path/of/your/story" }
}
}
]
}
Installation
pip install storybook-csf
Release notes
Read the Release Notes to see the latest features and fixes.
Development
Tests
To run tests, use:
pytest
Metadata
Release files for storybook-csf 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| storybook_csf-1.0.1.tar.gz | 6.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| storybook_csf-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.3 kB
Release files / storybook_csf-1.0.1.tar.gz
| Download URL | storybook_csf-1.0.1.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
988b42da9d0675ab926bb7c202397dc3a36087daad0a6e726f1cafb84b190d70
|
|
BLAKE2b-256 checksum How to use checksums |
7e8798ae47726d7abe39254b6f8ff1fa4203483d6d95016e4a3d99cb7098c4c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / storybook_csf-1.0.1-py3-none-any.whl
| Download URL | storybook_csf-1.0.1-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b3beac0d22bcef9cd72ba8f941db59906ff8b33ead6f3eca4a96a475a76e7a9d
|
|
BLAKE2b-256 checksum How to use checksums |
2eada10c031b2978644791a94fb019d6c9e7d594b24ba585ff398aad8df4bd5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for storybook-csf 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.