Python static-asset integration package for sitelen-layer-plugin.
Project description
sitelen-layer-static
Python static-asset integration package for sitelen-layer-plugin.
This package is not a Python reimplementation of the plugin. It packages the built frontend assets so Python web apps can ship them from local static files instead of relying on npm at deploy time.
Bundled upstream artifact:
sitelen-layer-plugin0.3.9
Included assets:
- built JS bundles from
dist/ sitelen-layer-plugin.csssitelen-pona-font.css- bundled
sitelen seli kiwen asukifont files and OFL notice
Install
pip install sitelen-layer-static
Recommended when:
- your app is Django, Flask, FastAPI, or another Python web stack;
- you want vendored local static assets instead of npm at runtime;
- you still want upstream
sitelen-layer-pluginbehavior and built artifacts.
Basic usage
from sitelen_layer_static import asset_path, stylesheet_tags, script_tags
css = stylesheet_tags("/static/vendor/sitelen-layer")
js = script_tags("/static/vendor/sitelen-layer")
print(asset_path("dist/sitelen-layer-plugin.js"))
Copy assets into your static tree
from pathlib import Path
from sitelen_layer_static import copy_assets
copy_assets(Path("static/vendor/sitelen-layer"))
This writes:
dist/*sitelen-pona-font.cssassets/fonts/*
HTML tags
from sitelen_layer_static import html_tags
print(html_tags("/static/vendor/sitelen-layer"))
Example output:
<link rel="stylesheet" href="/static/vendor/sitelen-layer/dist/sitelen-layer-plugin.css">
<link rel="stylesheet" href="/static/vendor/sitelen-layer/sitelen-pona-font.css">
<script type="module" src="/static/vendor/sitelen-layer/dist/sitelen-layer-plugin.js"></script>
Notes
- This package does not install npm dependencies.
- It does not expose the plugin API to Python code.
- It is intended for Django, Flask, FastAPI, static site generators, or CI pipelines that want vendored assets.
- Upstream frontend package version bundled here:
0.3.9
License
Package code is MIT.
Bundled font assets include sitelen seli kiwen asuki under SIL Open Font License 1.1. See:
assets/fonts/OFL-sitelen-seli-kiwen.txt
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 sitelen_layer_static-0.1.0.tar.gz.
File metadata
- Download URL: sitelen_layer_static-0.1.0.tar.gz
- Upload date:
- Size: 785.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08e64f044401aa9b130c7c191dab50b39bc346c09939dcbfc3ed0478753d5e1a
|
|
| MD5 |
663d15af239f239967a70674da77c98c
|
|
| BLAKE2b-256 |
f17bf4b014931032d941386ff2c7477add90d722e0b761eaa2d122503e484654
|
Provenance
The following attestation bundles were made for sitelen_layer_static-0.1.0.tar.gz:
Publisher:
python-static-publish.yml on markoblogo/sitelen-layer-plugin
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sitelen_layer_static-0.1.0.tar.gz -
Subject digest:
08e64f044401aa9b130c7c191dab50b39bc346c09939dcbfc3ed0478753d5e1a - Sigstore transparency entry: 1808830968
- Sigstore integration time:
-
Permalink:
markoblogo/sitelen-layer-plugin@76ad7a19d8a35f69e19ec4adaa088f1b46c30b41 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/markoblogo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-static-publish.yml@76ad7a19d8a35f69e19ec4adaa088f1b46c30b41 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file sitelen_layer_static-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sitelen_layer_static-0.1.0-py3-none-any.whl
- Upload date:
- Size: 786.9 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 |
183caee9a3eef7866ef9551cae718b3cc67a964308b0aa164e617e11e84656a3
|
|
| MD5 |
65f0bdbc703baf5ff739ea5945701b9c
|
|
| BLAKE2b-256 |
cab20e75e9ccd6122b05046c20053890f98e507f7152fd441302b1c276b9d6ee
|
Provenance
The following attestation bundles were made for sitelen_layer_static-0.1.0-py3-none-any.whl:
Publisher:
python-static-publish.yml on markoblogo/sitelen-layer-plugin
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sitelen_layer_static-0.1.0-py3-none-any.whl -
Subject digest:
183caee9a3eef7866ef9551cae718b3cc67a964308b0aa164e617e11e84656a3 - Sigstore transparency entry: 1808830971
- Sigstore integration time:
-
Permalink:
markoblogo/sitelen-layer-plugin@76ad7a19d8a35f69e19ec4adaa088f1b46c30b41 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/markoblogo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-static-publish.yml@76ad7a19d8a35f69e19ec4adaa088f1b46c30b41 -
Trigger Event:
workflow_dispatch
-
Statement type: