starcms 0.0.1__py3-none-any.whl

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/__init__.py ADDED
@@ -0,0 +1,2 @@
1
+ def hello() -> str:
2
+ return "Hello from starcms!"
starcms/py.typed ADDED
File without changes
@@ -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,5 @@
1
+ starcms/__init__.py,sha256=Hwrqv59xVqFvzZdmPc7yUH6tht_3i48v_GDDftWXQps,53
2
+ starcms/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ starcms-0.0.1.dist-info/WHEEL,sha256=wXwAVsgVaOZ_pwDFqQm5Rd6PID-Fc74nkLc8X8gHiDo,81
4
+ starcms-0.0.1.dist-info/METADATA,sha256=Jz8VaS5RyugFFheQ8fWkzigXdHVhCbmocn4sjANP8RQ,1007
5
+ starcms-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: uv 0.11.19
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any