Skip to main content

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-plugin 0.3.9

Included assets:

  • built JS bundles from dist/
  • sitelen-layer-plugin.css
  • sitelen-pona-font.css
  • bundled sitelen seli kiwen asuki font 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-plugin behavior 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.css
  • assets/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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sitelen_layer_static-0.1.0.tar.gz (785.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sitelen_layer_static-0.1.0-py3-none-any.whl (786.9 kB view details)

Uploaded Python 3

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

Hashes for sitelen_layer_static-0.1.0.tar.gz
Algorithm Hash digest
SHA256 08e64f044401aa9b130c7c191dab50b39bc346c09939dcbfc3ed0478753d5e1a
MD5 663d15af239f239967a70674da77c98c
BLAKE2b-256 f17bf4b014931032d941386ff2c7477add90d722e0b761eaa2d122503e484654

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sitelen_layer_static-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sitelen_layer_static-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 183caee9a3eef7866ef9551cae718b3cc67a964308b0aa164e617e11e84656a3
MD5 65f0bdbc703baf5ff739ea5945701b9c
BLAKE2b-256 cab20e75e9ccd6122b05046c20053890f98e507f7152fd441302b1c276b9d6ee

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page