semvec/pypi-packages huggingface dataset:
draftin-a-flask 0.2.0
A simple Flask server that allows you to publish Pelican blags from http://draftin.com
License: BSD
Keywords: draft flask pelican blog publish

===============================
Draft in a Flask
===============================

.. image:: https://badge.fury.io/py/draftin_a_flask.png
    :target: http://badge.fury.io/py/draftin_a_flask

.. image:: https://travis-ci.org/waynew/draftin-a-flask.png?branch=master
        :target: https://travis-ci.org/waynew/draftin-a-flask

.. image:: https://pypip.in/d/draftin_a_flask/badge.png
        :target: https://crate.io/packages/draftin_a_flask?version=latest


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

.. _WebHooks: https://draftin.com/documents/69898?token=5fjKKlZ0-AeBzqj_RAftAGdzRzl9VBfBHj5wpSWm_gU)

* Free software: BSD license
* Documentation: http://draftin_a_flask.rtfd.org.

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.
mailtools 3.0.1
Tools for constructing and sending emails
License: BSD

Mailtools
#########

Writing a web application? Want to send some emails from it? Mailtools can
help!

 - Simple API for sending plain text messages, HTML and messages with
   attachments.

 - ``ThreadedMailer`` sends emails in the background and returns control
   to your application immediately, even when talking to slow remote servers.

 - Temporary sending failures are automatically retried.

 - Running your application in test mode? The ``RedirectMessages`` wrapper
   routes emails to a test address and not to live email addresses.

Usage
=====

Creating a simple SMTP mailer::


	from mailtools import SMTPMailer
        mailer = SMTPMailer('127.0.0.1')

This mailer will block until messages are sent and won't retry failures. Use
``ThreadedMailer`` to fix this::

        mailer = ThreadedMailer(SMTPMailer('127.0.0.1'))

A mailer with TLS/STARTTLS support::

        mailer = SMTPMailer('127.0.0.1', 465, transport_args={'security': 'TLS'})
        mailer = SMTPMailer('127.0.0.1', transport_args={'security': 'STARTTLS'})

Sending a plain text message::

        message = 'This is a plain text message'
        mailer.send_plain(
                'sender@example.com',
                ['recipient@example.com'],
                'hi',
                message
        )

Sending an HTML message::

        message = '<html><body>Look! HTML!</body></html>'
        mailer.send_html(
                'sender@example.com',
                ['recipient@example.com'],
                'hi',
                message
        )

Adding attachments::

        message = 'index.rst is attached to this message'
        mailer.send_plain(
                'sender@example.com',
                ['recipient@example.com'],
                'hi',
                message,
                attachments=['index.rst']
        )



CHANGELOG
##########

3.0.1 (released 2019-11-06)
===========================

* Fixed PyPI package metadata

3.0.0 (released 2019-11-06)
===========================

* Added Python 3 support
* Dropped Python 2 support

Version 2.1
===========

* Added a ThreadedMailer.shutdown method (thanks to Andrew Nelis for an
  initial implementation and advice on the design of this feature)

Version 2
===========

* Added TLS/STARTTLS support (thanks to w31rd0 for the implementation of this)

Version 1
===========

* Initial release