sardine-cms-admin
The Sardine CMS admin panel: an authenticated FastAPI application serving both
the admin API and the server-rendered UI (ADR-0013). It drives cms-core,
cms-validation and cms-build through their public APIs — storage comes
from create_storage(url), so every supported engine works unchanged.
pip install sardine-cms-admin
SARDINE_STORAGE_URL="sqlite:///content.db" uvicorn --factory cms_admin.app:create_app
The panel itself is multilingual (ADR-0022): each editor picks their language in the user menu (PT-PT, ES, FR and DE ship alongside English), with the browser's language as the fallback.
There are no default credentials — create the first account with the CLI,
then sign in at /login:
cms admin create-user editor-in-chief -p my-project --role admin
The UI is built on AdminLTE 4 (MIT, vendored verbatim with its license —
ADR-0017) and implemented exactly as its reference pages do: Source Sans 3
(OFL), Bootstrap Icons (MIT) and the theme's own behavior scripts
(AdminLTE, Bootstrap bundle, OverlayScrollbars — ADR-0020) all ship as
local files; the admin serves everything itself, no CDN, no inline
scripts. The dashboard shows
content by workflow status, the translation coverage matrix and a live
validation report. Articles and pages are edited in the browser: EN source
plus a side-by-side editor per translation, with state indicators from the
checksum model and a preview rendered by the builder's own Markdown
renderer (raw HTML disabled). The media library uploads with server-side
validation (MIME sniffed from bytes, size limit, parsed image dimensions),
manages mandatory EN + translatable alt text, and refuses to delete assets
that articles or sections still reference. The workflow moves content through
draft → review → published → archived with each transition owned by a rung
of the role ladder; publishing runs the validation gate. The Publishing
panel previews into /preview/ and builds/exports the project output with
target extras, with every run recorded on the dashboard.
Configuration is environment-only (no config files with secrets):
| Variable | Meaning | Default |
|---|---|---|
SARDINE_STORAGE_URL |
Storage URL for create_storage |
sqlite:///content.db |
SARDINE_ADMIN_SESSION_HOURS |
Session lifetime in hours | 12 |
SARDINE_ADMIN_COOKIE_SECURE |
Set 0 only for plain-http local dev |
1 |
SARDINE_MEDIA_DIR |
Media upload directory (the project's) | media |
SARDINE_ADMIN_UPLOAD_MAX_MB |
Upload size limit in MB | 10 |
SARDINE_PROJECT_DIR |
Project directory (sardine.toml) |
. |
SARDINE_ADMIN_PUBLISH_GATE |
Set 0 to publish despite validation errors |
1 |
The full admin guide — configuration, roles, workflow, publishing, security model — is docs/ADMIN_GUIDE.md (anti-drift-checked). Milestone 3 status and the phased plan live in docs/PLAN.md.
Sardine CMS
- Live demo: https://sardine.ph7x.com (admin demo at /admin/)
- Repository: https://github.com/ph7x-Systems/sardine-cms
- Documentation: https://github.com/ph7x-Systems/sardine-cms/wiki
- License: Apache-2.0
Metadata
Release files for sardine-cms-admin 0.8.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 | Provenance | Actions |
|---|---|---|---|---|
| sardine_cms_admin-0.8.0.tar.gz | 726.2 kB | With provenance | Details for sardine_cms_admin-0.8.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sardine_cms_admin-0.8.0-py3-none-any.whl | Python 3 | none | any | Details for sardine_cms_admin-0.8.0-py3-none-any.whl |
Total release size: 1.5 MB
Release files / sardine_cms_admin-0.8.0.tar.gz
| Download URL | sardine_cms_admin-0.8.0.tar.gz |
|---|---|
| Size | 726.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0cac0aa4cdb3d6f542942eb4a0807816489027931a47f1e296249d72b0a188c4
|
|
BLAKE2b-256 checksum How to use checksums |
350ddc9b8bfc9776f5406b4c06f521ef2d0361f766839319bd0b99d083f8dbe6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 23, 2026.
Transparency logRelease files / sardine_cms_admin-0.8.0-py3-none-any.whl
| Download URL | sardine_cms_admin-0.8.0-py3-none-any.whl |
|---|---|
| Size | 781.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aad6de04ce5e0a08f5d943924a32cf5bc4ae35d191b1ba617996022c9ae8bb42
|
|
BLAKE2b-256 checksum How to use checksums |
eb9d3be2d0cd0c1b1c244a1a15ba93d18f747746add1d14976d3525b3bfdda7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 23, 2026.
Transparency logSecurity for sardine-cms-admin 0.8.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for sardine_cms_admin-0.8.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 23, 2026.
Transparency logA 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.