starcms 0.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
starcms-0.0.1/PKG-INFO ADDED
@@ -0,0 +1,34 @@
1
+ Metadata-Version: 2.3
2
+ Name: starcms
3
+ Version: 0.0.1
4
+ Summary: Code-first CMS for Python: define Pydantic models, get an admin UI and content API, mounted into your FastAPI or FastHTML app.
5
+ Author: Adam Seifert-Page
6
+ Requires-Python: >=3.11
7
+ Description-Content-Type: text/markdown
8
+
9
+ # starcms
10
+
11
+ A code-first CMS for Python. Define your content models as Pydantic classes and
12
+ get a generated admin UI and content API, mounted into your existing FastAPI or
13
+ FastHTML app.
14
+
15
+ > **Status: early development.** This release reserves the package name while
16
+ > v0.1 is being built. Follow along at
17
+ > [github.com/admsftpge/starcms](https://github.com/admsftpge/starcms).
18
+
19
+ ```python
20
+ from fastapi import FastAPI
21
+ from pydantic import BaseModel
22
+ from starcms import StarCMS
23
+
24
+ class BlogPost(BaseModel):
25
+ title: str
26
+ body: str
27
+ published: bool
28
+
29
+ app = FastAPI()
30
+ cms = StarCMS(db="sqlite:///content.db", models=[BlogPost])
31
+ cms.mount(app, admin="/admin", api="/api/cms")
32
+ ```
33
+
34
+ *(API sketch — subject to change before v0.1.)*
@@ -0,0 +1,26 @@
1
+ # starcms
2
+
3
+ A code-first CMS for Python. Define your content models as Pydantic classes and
4
+ get a generated admin UI and content API, mounted into your existing FastAPI or
5
+ FastHTML app.
6
+
7
+ > **Status: early development.** This release reserves the package name while
8
+ > v0.1 is being built. Follow along at
9
+ > [github.com/admsftpge/starcms](https://github.com/admsftpge/starcms).
10
+
11
+ ```python
12
+ from fastapi import FastAPI
13
+ from pydantic import BaseModel
14
+ from starcms import StarCMS
15
+
16
+ class BlogPost(BaseModel):
17
+ title: str
18
+ body: str
19
+ published: bool
20
+
21
+ app = FastAPI()
22
+ cms = StarCMS(db="sqlite:///content.db", models=[BlogPost])
23
+ cms.mount(app, admin="/admin", api="/api/cms")
24
+ ```
25
+
26
+ *(API sketch — subject to change before v0.1.)*
@@ -0,0 +1,14 @@
1
+ [project]
2
+ name = "starcms"
3
+ version = "0.0.1"
4
+ description = "Code-first CMS for Python: define Pydantic models, get an admin UI and content API, mounted into your FastAPI or FastHTML app."
5
+ readme = "README.md"
6
+ authors = [
7
+ { name = "Adam Seifert-Page" }
8
+ ]
9
+ requires-python = ">=3.11"
10
+ dependencies = []
11
+
12
+ [build-system]
13
+ requires = ["uv_build>=0.11.19,<0.12.0"]
14
+ build-backend = "uv_build"
@@ -0,0 +1,2 @@
1
+ def hello() -> str:
2
+ return "Hello from starcms!"
File without changes