Skip to main content

A composable content management system

Project description

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.

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

shapecms-0.0.11.tar.gz (22.7 kB view details)

Uploaded Source

Built Distribution

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

shapecms-0.0.11-py3-none-any.whl (30.4 kB view details)

Uploaded Python 3

File details

Details for the file shapecms-0.0.11.tar.gz.

File metadata

  • Download URL: shapecms-0.0.11.tar.gz
  • Upload date:
  • Size: 22.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for shapecms-0.0.11.tar.gz
Algorithm Hash digest
SHA256 ba1724a910f777110a882266fcb9691ac98d93a38c72321f7531a42974ed7fa9
MD5 e194a6da0764d4ff8703bd06ecfb1478
BLAKE2b-256 1a1ce5b8be7519b1b4d569247c2109e1571b615045197459ec50db2a1d65dfee

See more details on using hashes here.

File details

Details for the file shapecms-0.0.11-py3-none-any.whl.

File metadata

  • Download URL: shapecms-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 30.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for shapecms-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 3448b45149a5aadfaaa85ab0df9e97a26c228689fe1464ea9fc30a393b498a27
MD5 f52f78598aac29c9c24b496dfe3aea9b
BLAKE2b-256 6e22f33c27c1810d3001b20ca790f088428fa9673dc62293115bef66efabebbb

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