semvec/pypi-packages huggingface dataset:
sendgrid-django 4.2.0
SendGrid Backend for Django
License: MIT

SendGrid-django
===============

.. image:: https://travis-ci.org/elbuo8/sendgrid-django.svg?branch=master
   :target: https://travis-ci.org/elbuo8/sendgrid-django
   :alt: Travis CI
.. image:: https://codecov.io/github/elbuo8/sendgrid-django/coverage.svg?branch=master
   :target: https://codecov.io/github/elbuo8/sendgrid-django
   :alt: codecov.io

Simple django backend to send email using SendGrid's Web API.

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

Install the backend from PyPI:

.. code:: bash

    pip install sendgrid-django

Add the following to your project's **settings.py**:

.. code:: python

    EMAIL_BACKEND = "sgbackend.SendGridBackend"
    SENDGRID_API_KEY = "Your SendGrid API Key"

**Done!**

Example
-------

.. code:: python


    from django.core.mail import send_mail
    from django.core.mail import EmailMultiAlternatives

    send_mail("Your Subject", "This is a simple text email body.",
      "Yamil Asusta <hello@yamilasusta.com>", ["yamil@sendgrid.com"])

    # or
    mail = EmailMultiAlternatives(
      subject="Your Subject",
      body="This is a simple text email body.",
      from_email="Yamil Asusta <hello@yamilasusta.com>",
      to=["yamil@sendgrid.com"],
      headers={"Reply-To": "support@sendgrid.com"}
    )
    # Add template
    mail.template_id = 'YOUR TEMPLATE ID FROM SENDGRID ADMIN'

    # Replace substitutions in sendgrid template
    mail.substitutions = {'%username%': 'elbuo8'}

    # Attach file
    with open('somefilename.pdf', 'rb') as file:
        mail.attachments = [
            ('somefilename.pdf', file.read(), 'application/pdf')
        ]

    # Add categories
    mail.categories = [
        'work',
        'urgent',
    ]

    mail.attach_alternative(
        "<p>This is a simple HTML email body</p>", "text/html"
    )

    mail.send()

To create an instance of a SendGridBackend with an API key other than that provided in settings, pass `api_key` to the constructor

.. code::python

    from sgbackend import SendGridBackend
    from django.core.mail import send_mail

    connection = SendGridBackend(api_key='your key')

    send_mail(<subject etc>, connection=connection)


License
-------
MIT


Enjoy :)


Development
-----------

Install dependencies::
    `pip install -r requirements-dev.txt`

Run the tests with coverage::
    `pytest --cov=sgbackend`

If you see the error "No module named sgbackend", run::
    `pip install -e .`
unitstyle 1.0.1
Adds various style choices to unittest output
License: MIT
Keywords: test testing unittest unitstyle console development

unitstyle
=========

``unitstyle`` is a python module that adds several output format options
for Python's standard ``unittest`` library (unittest2). Specifically, it
adds many of the output options offered by
`mocha <https://mochajs.org/#reporters>`__, a javascript unit testing
framework. This package was created to port those outputs to Python.

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

``unitstyle`` is available on PyPI. You should be able to install it
with ``pip install unitstyle``.

Usage
-----

The ``unitstyle`` package provides itself as a ``unittest`` TestRunner,
and should be used as such.

simple example:

.. code:: python


    import unittest
    import unitstyle

    suite = unittest.TestLoader().discover()
    unitstyle.TestRunner().run(suite)

Supported arguments to ``unitstyle``'s TestRunner are:

Output Formats
--------------

-  `list <https://mochajs.org/#list>`__
-  `dots <https://mochajs.org/#dot-matrix>`__
-  `jsstream <https://mochajs.org/#json-stream>`__ - a JSON stream
-  `JSON <https://mochajs.org/#json>`__
-  `progress <https://mochajs.org/#progress>`__ (bar)
-  `min <https://mochajs.org/#min>`__
-  `tap <https://mochajs.org/#tap>`__ - the `Test Anything
   Protocol <http://en.wikipedia.org/wiki/Test_Anything_Protocol>`__
-  `spec <https://mochajs.org/#spec>`__

Feel free to open an issue to request more, or pull requests!

License
-------

This project and code is licensed under the MIT License. See the
``LICENSE`` file for more.

Copyright (c) 2015 Dan Panzarella
bilibili-voice 0.2.0.4
bilibili-voice is a native audio player for BiliBili video in command line mode
License: MIT
Keywords: music,bilibili,cli,voice

Welcome to BiliBili Voice
=================================

Introduction
--------------
bilibili-voice is a native audio player for bilibili video in command line mode. You will be able to easily listen to your favorite bilibili's nice original music and fun dummies like this locally.

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

Specific installation instructions, you can refer to my
more detailed README.md in Github_

.. _Github: https://github.com/gogoforit/bilibili-voice

Usage
----------

run
~~~~
..  code-block:: bash

    $ bilibilivoice

process
~~~~~~~~

..  figure:: https://storage6.cuntuku.com/2017/12/15/KlmRE.gif
 
Issues
----------

Any questions are welcome
Issues_

.. _Issues: https://github.com/gogoforit/bilibili-voice/issues
    
Docs
--------

You can find detailed developer documentation here_

..  _here: http://bilibili-voice.readthedocs.io/zh/latest/

Fork/Pull requests
--------------------

Welcome developers to join, unfinished function I have been described in TODO_

.. _TODO: https://github.com/gogoforit/bilibili-voice#todo