AtomicPress is a static blog generator for python developers.
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).
Import from Wordpress
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?
AtomicPress is built in Python.
It is built upon Flask, which is easy to extend.
It’s built to make Wordpress import simple.
AtomicPress can easily be installed through pip.
pip install atomicpress
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.
FTP_DESTINATION: Ftp sup
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.
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" />
Creates the database and stores it according to the SQLALCHEMY_DATABASE_UR path.
python mange.py create_db
Removes the sqlite database file.
python mange.py 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 manage.py upgrade -d=atomicpress/migrations/
Prefill db with initial data
Adds initial data to the database, perfect when you want to try out AtomicPress.
python manage.py prefill fill
Creates a lightweight http server running the web application.
python manage.py 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 manage.py 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 manage.py exporter export
Send the exported static files to a AWS S3 bucket.
python manage.py s3 sync
Send the files a your ftp account.
python manage.py ftp sync
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.
EXTENSIONS = ( # "atomicpress.ext.importer", "atomicpress.ext.exporter", "atomicpress.ext.ftp", "atomicpress.ext.s3", "atomicpress.ext.prefill", )
Activating you own is also simple, like this extension called catpictures:
EXTENSIONS = ( "atomicpress.ext.importer", "atomicpress.ext.exporter", "atomicpress.ext.ftp", "atomicpress.ext.s3", "atomicpress.ext.prefill", "catpictures", )
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.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.