semvec/pypi-packages huggingface dataset:
pykismet3 0.1.1
A Python 3 module for the Akismet spam comment-spam-detection web service.
License: MIT

pykismet3
=========

A Python 3 Akismet client library.

## Supported API

The Following Akismet API Calls are currently supported:
* Comment Check
* Submit Ham
* Submit Spam

## Unsupported API

The following Akismet API Calls are not yet supported:
* Key Verification

## Installation

1. Signup for Akismet and get yourself an API key at http://akismet.com/plans/

2. Install this library:

    pip install pykismet3

3. Make some calls to Akismet (see example below to get started)

## Example

Import and instantiate Pykismet.

    from pykismet3 import Akismet
    import os

    a = Akismet(blog_url="http://your.blog/url",
                user_agent="My Awesome Web App/0.0.1")

    a.api_key="YOUR_AKISMET_API_KEY"

### Comment Check

    a.check({'user_ip': os.environ['REMOTE_ADDR'],
             'user_agent': os.environ['HTTP_USER_AGENT'],
             'referrer': os.environ.get('HTTP_REFERER', 'unknown'),
             'comment_content': 'I LIEK YOUR WEB SITE',
             'comment_author': 'Comment Author',
             'is_test': 1,
    })

### Submit Ham

    a.submit_ham({'user_ip': os.environ['REMOTE_ADDR'],
                  'user_agent': os.environ['HTTP_USER_AGENT'],
                  'referrer': os.environ.get('HTTP_REFERER', 'unknown'),
                  'comment_content': 'I LIEK YOUR WEB SITE',
                  'comment_author': 'Comment Author',
                  'is_test': 1,
    })

### Submit Spam

    a.submit_spam({'user_ip': os.environ['REMOTE_ADDR'],
                   'user_agent': os.environ['HTTP_USER_AGENT'],
                   'referrer': os.environ.get('HTTP_REFERER', 'unknown'),
                   'comment_content': 'I LIEK YOUR WEB SITE',
                   'comment_author': 'Comment Author',
                   'is_test': 1,
    })

## Documentation

The examples above show you pretty much everything you need to know.

For a full list of supported parameters for each API call, see http://akismet.com/development/api/

The code is only ~150 lines long anyway, so just look at '''pykismet.py''' if you aren't sure about something.

## Bugs

Patches to fix bugs and implement missing features welcome! Please make a pull request.
socialoauth 0.3.3
Python Package For SNS sites with OAuth2 support
License: MIT
Keywords: social,oauth,oauth2

A Package For SNS Sites With OAuth2 Support.

Author: Wang Chao

Author_email: yueyoum@gmail.com


Supported the following sites (and the list are growing):

*   renren      (人人)
*   tencent     (腾讯)
*   douban      (豆瓣)
*   sina        (新浪微博)
*   netease     (网易微博)
*   sohu        (搜狐微博)
*   baidu       (百度)
*   kaixin001   (开心网)
*   taobao      (淘宝网)



Usage:

See doc.md & example

github: https://github.com/yueyoum/social-oauth
simplemail 1.0
An easy way to send emails in Python
License: MIT

# simplemail

## Overview
**simplemail** is an easy way to send emails in Python. It will use a sendmail binary which is almost always available and ready to go.

## Dependencies
- Python 2.6 or 2.7

## Sample usecase
The code has docstrings which explains how to use the library. But here's the sample usecase I just made up for showing you the benefits and simplicity of using it.

Let's assume that you have a general announcement which you would like to send out to your mailing list. The message itself is common for every member of your list, but you want to greet every person by his or her name in the beginning of your message.

So you have a list of your customer in a dictionary.

    from simplemail import Simplemail

    mailinglist = {"Bob": "bob@domain.tld",
                   "Alice": "alice@domain.tld"}

Let's fire the default settings for all our emails.

    message = Simplemail(sender="Maillist Owner <postmaster@domain.tld>",
                         subject="Monthly announcement")

Next you are going to write a default message body for everyone.

    body = "We are proudly to present our new feature."

Let's compose a personal greeting for every member of your list and fire an email.

    for person in mailinglist.keys():
        gr = "Hello, %s\n\n%s" % (person, body)
        message.send(recipient=mailinglist[person], body=gr)

Now you have a personal greeting for all of your subscribers.

## HTML emails
You can add an optional HTML-view of your email with the html variable. E.g.:

    from simplemail import Simplemail

    body = "Hi!"
    html = "<strong>Hi!</strong>"

    message = Simplemail(sender="You <your@mail>", recipient=["your@mail"], subject="html test")
    message.send(body=body, html=html)

## Logging handler
There is a special logging handler which utilizes the simplemail library. Here's a code sample:

    import logging
    from simplemail import Simplemail
    from simplemail.handlers import SimplemailLogger

    # Initializing Simplemail
    mail = Simplemail(sender="Application Error <errors@domain.tld>",
                      recipient=["you@domain.tld"])

    # Initializing logger
    logger = logging.getLogger()
    logger.setLevel(logging.DEBUG)
    logger.propagate = False
    # Sending SimplemailLogger the Simplemail object, application name
    # and the treshold
    sl = SimplemailLogger(mail, __name__, logging.WARNING)
    logger.addHandler(sl)

    # Writing to the log
    logger.warn("test")

The handler's constructor expects three arguments. One is mandatory: **mailobject** is the Simplemail object itself, which needs to be initialized before. Two others are optional: **app** contains your application name, which will be mentioned in the mail subject; and **level** which is the treshold at which the handler will be triggered.

## Downloads
This library is available at [PyPi](http://pypi.python.org/pypi/simplemail).