semvec/pypi-packages huggingface dataset:
dlvr 0.2
email sending for humans
License: MIT

=====
dlvr
=====

Email sending for humans

Installation
------------

with pip as easy as: ::

    $ pip install dlvr

or checkout the latest version from github: ::

    $ git clone https://github.com/bmaeser/dlvr.git
    $ cd dlvr
    $ python setup.py install

Quickstart
------------------

open a connection to a server: ::

    >>> from dlvr import SMTPServer
    >>> s = SMTPServer()

create a email: ::

    >>> from dlvr import Message
    >>> m = Message('bob@example.com', ['alice@gmail.com', 'support@example.com'],
            'testsubject', 'testbody')

send the email: ::

    >>> s.connect()
    >>> s.send(m)
    >>> s.disconnect()



Full example 
------------------

::

    from dlvr import SMTPServer, Message

    server = SMTPServer(host="smtp.googlemail.com", port='587',
        auth_user='MYUSERNAME', auth_pass='MYPASSWOR', tls=True)

    ## host (optional): defaults to localhost
    ## port (optional): defaults to 25
    ## auth_user (optional): your usernamer
    ## auth_pass (optional): your passwort
    ## tls (optional): encrypt the session defaults to False

    text = 'here is you link: http://www.google.com'
    subject = 'the link you asked for'

    html = """\
    <html>
        <head></head>
        <body>
            <p>Hi!<br>
            Here is the <a href="http://www.google.com">link to google</a> you wanted.
            </p>
        </body>
    </html>
    """

    message = Message('bob@example.com', ['alice@gmail.com', 'support@example.com'],
        subject, text, alternatives=[(html, 'text/html')])

    ## constructor arguments:

    ## from_email: required, the senders email
    ## to: required, a list of recipients
    ## subject: required, the emails subject
    ## text_message (optional): the text representation of the email body
    ## cc (optional): a list of the carbon-copy recipients
    ## bcc (optional): a list of blind-carbon-copy recipients
    ## attachments (optional): a list of attachments, and the mimetype to use eg:
    ##      attachments = [('/tmp/image.jpg', 'image/jpeg'), ('/tmp/song.mp3', 'audio/mpeg3')]
    ## alternatives (optional): a list of alternative representation of the email body
    ##      and the mimetype to use
    ## charset (optional): the charset/encoding to use for text_message, defaults to utf-8

    ## message functions:

    # attach_alternative(content, 'mimetype')
    # where mimetype is optional und defaults to 'text/html'

    # attach_file('/path/to/file', 'mimetype')
    # where mimetype is opional and is guessed if not provided

    server.connect()
    server.send(message)
    ## send another message with the same open connection ...
    server.disconnect()

    ## or shorthand if you only send one message:
    server.send_email(message)

Contribute
------------------

pull-request please and/or create a issue on github
django-gitcms 0.4
Django Git CMS: A django based git-backed content management system
License: MIT

=======
Git CMS
=======
Git Based Content Management
----------------------------

This is a simple way to allow git to store information related to a website.

USAGE
-----

I assume that you know django. If not, check the django website.

Edit the files in example-website. The format of the files should be pretty
obvious. If not, check the corresponding load.py file (e.g., for
example-website/pages/ check gitcms/pages/load.py).

WHAT'S NEW
----------

**Version 0.3.6**
- Add RSS for blog app
- Add disqus integration for blog app

BACKGROUND
----------

I came to this after having spent a semester maintaining a simple course
website by using restructured text and sphinx to build a website. It was very
easy to use a text editor and reST and after a bit of setting up, I had written
a script so that, after each edit, I could publish by calling ``publish.sh``. I
almost converted my website to this system, but I hesitated because of the
limitations of only having text.

This is similar to the couple of gitwiki projects that are around the web, but
with the major difference that it can use *any time of content*. For example, I
want to maintain a list of upcoming conferences as a text file and have it
served on a webpage, as an online calendar, &c.
twitterspawn 0.2.0
Asynchronous, concurrent requests to the Twitter REST API, that respect Twitter's rate limits, using gevent and requests.
License: MIT
Keywords: requests,python-requests,gevent,twitterspawn

# Twitterspawn

Asynchronous, concurrent requests to the Twitter REST API, that respect Twitter's rate limits, using [gevent](http://www.gevent.org/) and [requests](http://docs.python-requests.org/).

See [example.py](https://github.com/swinton/twitterspawn/blob/develop/example.py) for a working example.

## Usage
Basically:

```python
import twitterspawn

# Define callback (can define 1 per request)
def callback(response, worker):
    print "Got", response, "from", worker

# Add requests + callbacks
twitterspawn.add_request("https://api.twitter.com/1/users/show.json", 
                         dict(params=dict(screen_name="steveWINton")),
                         callback)
twitterspawn.add_request("https://api.twitter.com/1/users/show.json", 
                         dict(params=dict(screen_name="twitter")),
                         callback)
twitterspawn.add_request("https://api.twitter.com/1/users/show.json", 
                         dict(params=dict(screen_name="catbinlady")),
                         callback)

# Add workers
twitterspawn.add_worker(access_token="YOUR_FIRST_ACCESS_TOKEN", 
                        access_token_secret="YOUR_FIRST_ACCESS_TOKEN_SECRET", 
                        consumer_key="YOUR_CONSUMER_KEY", 
                        consumer_secret="YOUR_CONSUMER_SECRET")
twitterspawn.add_worker(access_token="YOUR_NEXT_ACCESS_TOKEN", 
                        access_token_secret="YOUR_NEXT_ACCESS_TOKEN_SECRET", 
                        consumer_key="YOUR_CONSUMER_KEY", 
                        consumer_secret="YOUR_CONSUMER_SECRET")
# ...add as many more workers as required...
twitterspawn.add_worker(access_token="YOUR_LAST_ACCESS_TOKEN", 
                        access_token_secret="YOUR_LAST_ACCESS_TOKEN_SECRET", 
                        consumer_key="YOUR_CONSUMER_KEY", 
                        consumer_secret="YOUR_CONSUMER_SECRET")

# Go!
twitterspawn.go()
```

See also [example.py](https://github.com/swinton/twitterspawn/blob/develop/example.py) for a working example.

## Installation
Simply:

    $ pip install twitterspawn

## Contact

@[steveWINton](https://twitter.com/steveWINton).
js 1.0
Root directory for Fanstatic packages
License: MIT

js
**

Introduction
============

This library packages `Root directory for Fanstatic packages`_ for `fanstatic`_.

.. _`fanstatic`: http://fanstatic.org
.. _`Root directory for Fanstatic packages`: https://github.com/MiCHiLU/js

This requires integration between your web framework and ``fanstatic``,
and making sure that the original resources (shipped in the ``resources``
directory in ``js``) are published to some URL.


How to use?
===========


You can import ``js``::

  >>> import js


CHANGES
*******

1.0 (unreleased)
===============================

- Initial release.