Skip to main content

A simple Flask server that allows you to publish Pelican blags from

Project description

A simple Flask server that allows you to publish Pelican blogs from using WebHooks


$ pip install draftin_a_flask
$ env DIF_CONTENT=/path/to/content \
DIF_OUTPUT=/path/to/output \
DIF_PELICAN=/path/to/pelican_binary draftican
Listening at endpoint QRFky1tR0KqHGM3cJoitwEi8tTpknaNnMpNHHiTIm8
* Running on
* Restarting with reloader
Listening at endpoint QRFky1tR0KqHGM3cJoitwEi8tTpknaNnMpNHHiTIm8

(Yes, it displays the print twice :-\ I’m sure there’s a way to get around it. If it bothers you too much, I accept pull requests!)

Setup your WebHook from within Draft, and now you can write your blog posts in Draft and easily publish.

Future Features

  • Automatic uploads using rsync/ssh/file copy
  • Settings provided in a file
  • Improved error handling (e.g. missing title, etc.)

Known Bugs

  • If you’re missing important fields (like title and date) it probably will skip publishing that doc.


0.2.0 (2019-11-06)

  • Updated dependency versions

0.1.0 (2014-01-13)

  • First release on PyPI.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for draftin-a-flask, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size draftin_a_flask-0.2.0-py2-none-any.whl (6.0 kB) File type Wheel Python version py2 Upload date Hashes View hashes
Filename, size draftin_a_flask-0.2.0-py3-none-any.whl (5.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page