Skip to main content

Draft in a Flask

https://badge.fury.io/py/draftin_a_flask.png https://travis-ci.org/waynew/draftin-a-flask.png?branch=master https://pypip.in/d/draftin_a_flask/badge.png

A simple Flask server that allows you to publish Pelican blogs from http://draftin.com using WebHooks

Usage

$ 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 http://0.0.0.0:5678/
* 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.

History

0.2.0 (2019-11-06)

  • Updated dependency versions

0.1.0 (2014-01-13)

  • First release on PyPI.

Metadata

Release files for draftin-a-flask 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for draftin-a-flask 0.2.0
File Interpreter ABI Platform
draftin_a_flask-0.2.0-py3-none-any.whl Python 3 none any Details
draftin_a_flask-0.2.0-py2-none-any.whl Python 2 none any Details

Total release size: 11.4 kB

Release files / draftin_a_flask-0.2.0-py3-none-any.whl

Download URL draftin_a_flask-0.2.0-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
91cd705a1baf81931bd243b2c4fb23e8488a3b6dc5ec0d33f036e16f2ccb3e37
BLAKE2b-256 checksum
How to use checksums
6be29b2d9dea5997ddcaba3e3e9ed3090dcdbca86a4ce5e07f6576964355a8c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.1

Release files / draftin_a_flask-0.2.0-py2-none-any.whl

Download URL draftin_a_flask-0.2.0-py2-none-any.whl
Size 6.0 kB
Tags Python 2
SHA-256 checksum
How to use checksums
a8fd72007e8048477e50f24c12fe2bcedb10ef3a3803cfc76a0ae803183288db
BLAKE2b-256 checksum
How to use checksums
a413d2398f239b87ca1a9384750f382c273a59b2b7565fb787cb290e56a7126f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.1

Security for draftin-a-flask 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page