semvec/pypi-packages huggingface dataset:
django-scrapy-douban 1.1.2
A simple Django app to collect and display movie's short comments from douban.com.
Keywords: sample django and scrapy project

====
douban
====
douban is a django app to collect movie's short comments in douban.com.

Quick start
-----------

1. Add "douban" to your INSTALLED_APPS setting like this::

        INSTALLED_APPS = (
                ...
                'douban',
        )

2. Set database configuration in your INSTALLED_APPS setting like this::

        'default': {
                'ENGINE': 'django.db.backends.mysql',
                'NAME': '', # database name
                'USER': '', # username
                'PASSWORD': '', # password
                'HOST': '127.0.0.1',
                'PORT': '3306', # default listen port
                'OPTIONS': {
                        'init_command': "SET sql_mode='STRICT_TRANS_TABLES'",
                        # the default charset used by django to connect db is 'utf-8'
                        # change to 'utf8mb4' is recommended, otherwise some data like emoji faces cannot save
                        'charset': 'utf8mb4',
                },
        }        

3. Include the polls URLconf in your project urls.py like this::

        from django.urls import include
        from django.conf.urls import url

        url(r'^douban/', include('douban.urls'))

4. Run `python3 manage.py makemigrations douban` and `python3 manage.py migrate` to create the douban models.

5. Visit http://127.0.0.1:8000/douban/ to participate it.
friend 0.2.1
Python utility library

Friend
======

.. image:: https://travis-ci.org/cloudboss/friend.svg?branch=master
    :target: https://travis-ci.org/cloudboss/friend

What is Friend?
---------------

Friend is all of those of utilities you keep reimplementing across your Python projects, that all got together and decided to live in harmony.

Maybe you just parsed some YAML that contained some configuration in `"snake_case" <https://en.wikipedia.org/wiki/Snake_case>`_, and you want to pass this configuration to a `boto3 <http://boto3.readthedocs.io/>`_ function which takes the same values but in `"PascalCase" <https://en.wikipedia.org/wiki/PascalCase>`_. Then you might find ``snake_to_pascal_obj`` or one of its variants to come in handy.

::

   with open('conf.yml') as f:
       conf = yaml.load(f)

   ec2 = boto3.resource('ec2')
   ec2.create_instances(
       ImageId='ami-12345678',
       BlockDeviceMappings=snake_to_pascal_obj(conf['block_device_mappings']),
       ....
   )

Or you need to add a retry to that script that keeps breaking your Jenkins job because the corporate proxy fails about 5% of the time. Sure, you can add a ``try/except`` and wrap it in a ``for`` loop, but putting the ``retryable`` decorator on top of that problematic function will do that for you in one configurable line.

::

   @retryable(times=5)
   def flaky_function():
       status = requests.get('https://service.corp/v2/status').json()
       if 'error' in status:
           send_important_email(status['error'])

Read the full documentation at `http://friend.readthedocs.io <http://friend.readthedocs.io/>`_.
soccer 0.0.2
A soccer data framework

soccer
======

.. image:: https://img.shields.io/pypi/v/soccer.svg
    :target: https://pypi.python.org/pypi/soccer
    :alt: Latest PyPI version

.. image:: https://travis-ci.org/hhllcks/soccer.png
   :target: https://travis-ci.org/hhllcks/soccer
   :alt: Latest Travis CI build status

A soccer data framework

Usage
-----

Installation
------------
pip install soccer

Requirements
^^^^^^^^^^^^

Compatibility
-------------

Licence
-------
GNU General Public License v3.0

Authors
-------

`soccer` was written by `Hendrik Hilleckes <hhllcks@gmail.com>`_.
100bot 1.0.1
Spice up your Slack-life with emojis!

# 100Bot

This is a son-of-[IoBot](https://github.com/adahn6/Io) project, taking the best
things about Io and turning them into a monster.

A picture is worth 1000 words:

![Screenshot of example conversation](example.png)

100Bot is powered by the Watson Tone Analyzer service. Each message is carefully
parsed for emotional significance and response, so that the perfectly
appropriate reaction emoji can be chosen.

## Running 100Bot

The bot requires three very specific parameters:
 - A Watson Tone Analyzer `username` credential
 - A Watson Tone Analyzer `password` credential
 - A Slack Integration Token for a bot

### Running with docker-compose

The easiest way to get 100bot up and running with dependencies is by using the docker service file included: `docker-compose.yml`. Modify the supplied `.env-sample` to provide credentials for the Watson Tone Analyzer and a Slack bot. Then build and start the service with:

```shell
docker-compose up -d
```


### Running natively with python

Pip modules `slackclient` and `requests` must be installed. Use virtualenv to make your life easier. Passing of credentials can be done with argparse:

```shell
python3 100bot.py \
 --bx-username "user" \
 --bx-password "verysecret" \
 --slack-token "xoob-137138657231-2ReKEpxlvWwe6vDBripOs7sR"

```

but can also be done with environment variables:

```shell
export BLUEMIX_USERNAME=user
export BLUEMIX_PASSWORD=verysecret
export SLACK_TOKEN="xoob-137138657231-2ReKEpxlvWwe6vDBripOs7sR"
python3 100bot.py

```

(yes, these are all fake credentials don't try them...)