Skip to main content

Code-first CMS for Python: define Pydantic models, get an admin UI and content API, mounted into your FastAPI or FastHTML app.

Project description

starcms

A code-first CMS for Python. Define your content models as Pydantic classes and get a generated admin UI and content API, mounted into your existing FastAPI or FastHTML app.

Status: early development. This release reserves the package name while v0.1 is being built. Follow along at github.com/admsftpge/starcms.

from fastapi import FastAPI
from pydantic import BaseModel
from starcms import StarCMS

class BlogPost(BaseModel):
    title: str
    body: str
    published: bool

app = FastAPI()
cms = StarCMS(db="sqlite:///content.db", models=[BlogPost])
cms.mount(app, admin="/admin", api="/api/cms")

(API sketch — subject to change before v0.1.)

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

starcms-0.0.1.tar.gz (1.0 kB view details)

Uploaded Source

Built Distribution

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

starcms-0.0.1-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

Details for the file starcms-0.0.1.tar.gz.

File metadata

  • Download URL: starcms-0.0.1.tar.gz
  • Upload date:
  • Size: 1.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for starcms-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f09ab3357bc57909c20db7a174b4fd268dfdfcd56c7bb1c2cd9ac087c7203043
MD5 8ec0e00bbdd01037eeb54c3377e3d714
BLAKE2b-256 bbc691f3f6dd215d6cb8154352ba0dadac78da47c1a808e17c1d9c7eb5c97509

See more details on using hashes here.

File details

Details for the file starcms-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: starcms-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 1.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for starcms-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e04e873d16f3c6e74a367a56f8f6e0a52f8965debb827e8640d08210d3c0a45e
MD5 92f56245a6f10598c5b8dcce3512bed8
BLAKE2b-256 62dad269990de66f2a5b71ee638acd30629c20884cc9b791e65e27c29a1e6f06

See more details on using hashes here.

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