Skip to main content

Shape CMS

Shape CMS is a composable content management system that plugs into your Python project giving you full freedom in building sites. It comes with an admin panel that builds itself based on the data models you create while leaving everything else up to you.

Shape CMS leverages the Flask framework under-the-hood, so you also get the full power of Flask when building apps with Shape CMS.

Note: There's no stable release yet, so documentation is subject to change, and I would not recommend running it in production.

Installation

pip install shapecms

Example app

A minimal example looks like this:

from shapecms import ShapeCMS
from shapecms import PageView


class HomeView(PageView):
    def get(self):
        return "Hello, world."


shape = ShapeCMS(__name__, "sqlite:///demo.db")
shape.add_url("/", HomeView, "home")


def create_app():
    instance = shape.start()
    instance.secret_key = "super-secret-key"

    return instance

The admin panel is automatically available at the /admin path. If it's your first time going to the admin panel, it will guide you through a set-up process.

Note however that until you add any Content Shapes the admin panel will be empty as it will have no info on how to construct itself.

Adding Content Shapes

To be written.

Release files for shapecms 0.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shapecms 0.0.11
File Size Uploaded
shapecms-0.0.11.tar.gz 22.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for shapecms 0.0.11
File Interpreter ABI Platform
shapecms-0.0.11-py3-none-any.whl Python 3 none any Details

Total release size: 53.1 kB

Release files / shapecms-0.0.11.tar.gz

Download URL shapecms-0.0.11.tar.gz
Size 22.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ba1724a910f777110a882266fcb9691ac98d93a38c72321f7531a42974ed7fa9
BLAKE2b-256 checksum
How to use checksums
1a1ce5b8be7519b1b4d569247c2109e1571b615045197459ec50db2a1d65dfee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / shapecms-0.0.11-py3-none-any.whl

Download URL shapecms-0.0.11-py3-none-any.whl
Size 30.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3448b45149a5aadfaaa85ab0df9e97a26c228689fe1464ea9fc30a393b498a27
BLAKE2b-256 checksum
How to use checksums
6e22f33c27c1810d3001b20ca790f088428fa9673dc62293115bef66efabebbb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

0.0.11 This release

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page