Flask Logo

Flask blog engine

ButterCMS is an API-based Flask blog engine that integrates with Flask in minutes. With ButterCMS it's possible to launch the perfect company blog in Flask.

Easily add a blog to your Flask app

Add the ButterCMS Python client to your Flask app:

pip install buttercms-python

Then test out some API calls in your application code:

from butter_cms import ButterCMS

client = ButterCMS('api_token_b22ab734')

// Get blog posts
print client.posts.all({'page_size': 10, 'page': 1})

Blog API Response

  "meta": {
    "count": 1,
    "next_page": null,
    "previous_page": null
  "data": [
      "url": "http://www.example.com/blog/this-is-a-blog-post",
      "created": "2015-06-12T13:59:32.441289Z",
      "published": "2015-06-12T00:00:00Z",
      "author": {
        "first_name": "API",
        "last_name": "Test",
        "email": "apitest@buttercms.com",
        "slug": "api-test",
        "bio": "This is my bio.",
        "title": "API",
        "linkedin_url": "https://www.linkedin.com/in/API",
        "facebook_url": "https://www.facebook.com/API",
        "pinterest_url": "https://www.pinterest.com/API",
        "instagram_url": "https://www.instagram.com/API",
        "twitter_handle": "buttercmsapi",
        "profile_image": "https://buttercms.com/api.png"
      "categories": [
          "name": "test category",
          "slug": "test-category"
      "tags": [
          "name": "test tag",
          "slug": "test-tag"
      "featured_image": null,
      "slug": "this-is-a-blog-post",
      "title": "This is a blog post",
      "body": "This is a blog post to test the API.",
      "summary": "This is a blog post to test the API.",
      "seo_title": "This is a blog post",
      "meta_description": "This is a blog post to test the API.",
      "status": "published"

Check out our example code for building a Flask blog with Butter. Adding Butter with our Flask blueprint is as simple as this:

# In app.py
from flask import Flask
from buttercms.blog_blueprint import blog

app = Flask(__name__)

app.register_blueprint(blog, url_prefix='/blog')

About Flask

Flask is a lightweight Python web framework based on Werkzeug and Jinja 2. Applications that use the Flask framework include Pinterest and LinkedIn.

Blog Engine for these technologies and more

Ruby, Rails, Node.js, Python, ASP.NET, C#, Flask, Django, Go, PHP, React, Phoenix, Elixir

Get started now

Sign up with Google Sign up with Github