spaday-calcite
Typed Calcite Design System components and browser assets for spaday.
Usage
from spaday import element
from spaday.backends.starlette import serve
from spaday_calcite import CalciteButton, CalciteNotice, package
page = element(
"main",
CalciteNotice(open=True, kind="success").child_in("title", "Ready"),
CalciteButton("Open map", icon_start="map"),
)
app = serve(page, packages=[package], title="Calcite app")
Install the package with pip install spaday-calcite. Assets are loaded only when the exported package descriptor is passed to serve.
Catalog coverage
Wrappers are generated from the Custom Elements Manifest published with @esri/calcite-components 5.1.2. The catalog covers its 104 public, declaratively usable elements. The upstream manifest also exposes calcite-date-picker-day and calcite-date-picker-month; these are undocumented private calendar renderers that require internal controller context and cannot be authored as standalone custom elements, so they are deliberately excluded.
Coverage is enforced at two layers:
- Python tests require the exact tags in
gallery.page.to_node()to match the generated wrapper catalog. - Playwright loads that Python page through Pyodide and requires every resulting host to be registered and hydrated with a shadow root.
The browser harness does not synthesize substitute components.
Browser examples
Both run Python locally through Pyodide; no install or server is required.
Run the examples locally
python -m pip install -e ".[examples]"
python -m spaday_calcite.example
python -m spaday_calcite.gallery
Open http://127.0.0.1:8026 for the field operations workspace or http://127.0.0.1:8027 for the complete component gallery.
Metadata
Release files for spaday-calcite 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| spaday_calcite-0.1.0.tar.gz | 1.4 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spaday_calcite-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.8 MB
Release files / spaday_calcite-0.1.0.tar.gz
| Download URL | spaday_calcite-0.1.0.tar.gz |
|---|---|
| Size | 1.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15e91e7b2a79780bc62e100bf3b0f3385248fad3d4e7c3a2c16aa6cffeaa8d0b
|
|
BLAKE2b-256 checksum How to use checksums |
3fdb4149f0728deaa1db91808be2a2ac80d45ec3de7a2494c40363282083a3a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|
Release files / spaday_calcite-0.1.0-py3-none-any.whl
| Download URL | spaday_calcite-0.1.0-py3-none-any.whl |
|---|---|
| Size | 1.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ea7633eabdae0ac91e7cd8e1f48dfc99748ba17b0641e3021f3173200cbec9f4
|
|
BLAKE2b-256 checksum How to use checksums |
94fca3d045d69f1e7b7d9a778e2dd2f9cc08070853fbf5a96f675fbe8488c759
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|