Skip to main content

AtomicPress is a static blog generator for python developers.

Project description

AtomicPress is a static blog generator for python developers that don’t want the Wordpress security hassle. It is built in Flask and takes advantage of it’s awesome eco-system such as Flask-Freeze, Flask-Admin, Flask-Migrations, Flask-SQLAlchemy, to mention a few. It utilizes SQLite for its database needs.


  • Posts, Pages, Categories, Tags and Authors (like WordPress).

  • Markdown rendering

  • Theme support

  • Import from Wordpress

  • Gist integration

  • A simple admin interface

  • Build you own extensions

  • Sync your generated blog with either FTP or to Amazon S3

Why not Pelican/Jekyll/Octopress/Hyde?

  1. AtomicPress is built in Python.

  2. It is built upon Flask, which is easy to extend.

  3. It’s built to make Wordpress import simple.


AtomicPress can easily be installed through pip.

pip install atomicpress

Getting started

To install AtomicPress you’ll need python 2.7, virtualenv and pip.

If you want a quickstart, just copy the example base-example, cd and type make init and you are ready to go.


  • SQLALCHEMY_DATABASE_URI: Path to your sqlite database.

  • DEBUG: Show errors, should be deactivated for live environments.

  • SECRET_KEY: Session key for signing.

  • STATIC_URL: Path to the static content, default: /static/

  • UPLOADS_URL: Path to the uploads folder, defult /uploads/

  • THEME: The theme you want to run, default is atomicpress.themes.minimal.

  • GIST_BACKEND_RENDERING: If you want to render a <noscript></noscript> that contains the gist content as pure text. Default is False

  • EXTENSIONS: A array with the extensions you want to run.


  • AWS_ACCESS_KEY_ID: Access key id to aws.

  • AWS_ACCESS_KEY: Access key to aws.

  • AWS_REGION: The region your bucket is places (optional).

  • S3_BUCKET: The bucket you want to deploy to.

  • S3_DESTINATION: The path within the bucket you want to deploy to.


  • FTP_HOST: Hostname to your ftp account.

  • FTP_USERNAME: Ftp username.

  • FTP_PASSWORD: Ftp password.



AtomicPress uses Flask-Admin to show a admin interface, you can access it by running runserver with the argument -a. Per default is located at http://localhost:5000/admin/.


AtomicPress ships with the theme minimal per default, if you would like to make your own, just specify the path in your settings file.


To make your own, just look at the theme minimal that ships with AtomicPress.


AtomicPress comes with a couple of filters you can use in the post content area.


Render a basic code snippet.

[code]var a = 1;[/code]
>>> <pre class="code">var a = 1;</pre>


Embeds a more advanced code snippet through a github gist to content.

[gist id="asdasd"]


Embed image path with the [image] filter.

<img src="[image id="myimage.jpg"]" />
>>> <img src="/uploads/myimage.jpg" />

If you only want the uploads path, you can use the [uploads] filter.

<img src="[uploads]myimage.jpg" />
>>> <img src="/uploads/myimage.jpg" />



Create database

Creates the database and stores it according to the SQLALCHEMY_DATABASE_UR path.

python create_db

Remove database

Removes the sqlite database file.

python drop_db


-r Remove the sqlite file when done.
-f Do now show the agreement promp.

Updating from a older version

Upgrading from a older version? Run this to make sure the schema is up to date.

python upgrade -d=atomicpress/migrations/

Prefill db with initial data

Adds initial data to the database, perfect when you want to try out AtomicPress.

python prefill fill



Creates a lightweight http server running the web application.

python runserver


-a Activate the admin area (do not do this in a production anvironment)
-t Show debug toolbar.
-d Show debug messages.

Note: Although untested, it is possible to run AtomicPress as a standard wsgi application.


AtomicPress uses wpparser to import data from wordpress export files. Just specify the path to your database export and you are ready to go.

python importer import_blog -f=./data/blog.wordpress.2014-09-25.xml


-f Path to wordpress export file.


Create a static package of you blog, that are ready to be deployed.

python exporter export



Send the exported static files to a AWS S3 bucket.

python s3 sync


Send the files a your ftp account.

python ftp sync


Toggle extensions

AtomicPress uses a pluggale extension system, similar to django’s INSTALLED_APPS. To disable a plugin, define a property in your settings file and just define the ones you need.

    # "atomicpress.ext.importer",

Activating you own is also simple, like this extension called catpictures:


Create extension

To create a extension, create a module with a function called setup. Thats all you need.


Want to contribute? Awesome. Just send a pull request.


AtomicPress is released under the MIT License.

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

atomicpress-1.0.10.tar.gz (36.6 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page