semvec/pypi-packages huggingface dataset:
postbox 0.1
It makes sending emails easier with Python.
License: MIT

Postbox
=======

It makes sending mail easier. The main features:

1. It allows you specify SMTP headers by keyword arguments.
2. Support interactive prompt for username or password.
3. Support optional `with` statement.

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

You can install it via PyPI,

::

    sudo pip install postbox

or download it manually.

Examples
--------

It is an example which sends a mail from Python Shell.

::

    >>> from postbox import Postbox, Gmail

    >>> gmail = Postbox(host='smtp.google.com:587') # or gmail = Gmail()
    username? mosky.bot@gmail.com
    password? 

    >>>     gmail.send(
    ...             to = ['mosky.tw@gmail.com', 'mosky.liu@pinkoi.com'],
    ...             bcc = 'mosky@ubuntu-tw.org',
    ...             subject = 'Test from Python Shell',
    ...             body = 'It is used postbox to send. :)'
    ...     )
    ... 

    >>> gmail.close()
    >>>

You can find more examples `here
<https://github.com/moskytw/postbox/tree/master/examples>`_.

Documentation
-------------

The ``Postbox`` or ``Gmail`` accepts the following keyword arguments:

1. ``host``: the hostname of your SMTP server. ex. 'smtp.google.com' or
   'smtp.google.com:587'
2. ``port``: the port number of your SMTP server.
3. ``user``: the username.
4. ``password``: the password.
5. ``tls``: use tls or not.
6. ``prompt_user``: prompt string if you don't specified ``user``.
7. ``prompt_password``: prompt string if you don't specified ``password``.
8. ``debuglevel``: the debuglevel.
9. ``dry_run``: don't send the mail out.

The all keyword arguments to ``send`` will be translated into SMTP headers,
except the ``body`` is the body of this mail. If you don't specify ``from_``, it
takes the username as default. The iterable but not string will be joined to a
string by comma.
dnsimple-zoneimport 0.1.1
A script that allows you to import a Bind zone file into your DNSimple account.
License: MIT
Keywords: dnsimple dns "zone files" bind import api

DNSimple Zone File Importer
===========================

This script allows you to import a Bind zone file into your DNSimple account.


Installing
----------

To install current version using pip, issue::

    $ sudo pip install dnsimple-zoneimport


Usage
-----

``dnsimple_zoneimport --help``::

    DNSimple Zone File Importer.

    Usage:
        dnsimple_zoneimport -e <email> -t <api-token> <zonefile>
        dnsimple_zoneimport -h | --help
        dnsimple_zoneimport -v | --version

    Options:
        -e            DNSimple email address.
        -t            DNSimple API token (see https://dnsimple.com/account).
        -h --help     Show this screen.
        -v --version  Show version.


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

If you have checked out the source code, start the script with ::

    python -m dnsimple_zoneimport.importer


Testing
-------

To test, the pytest library is required::

    $ pip install pytest

Then run the tests::

    $ py.test


Sourcecode
----------

The sourcecode is available on Github: https://github.com/wbrp/dnsimple-zoneimport


Coding Guidelines
-----------------

PEP8 via `flake8 <https://pypi.python.org/pypi/flake8>`_ with max-line-width set
to 99 and E126-E128 ignored.


Versioning
----------

This project uses `Semantic Versioning <http://semver.org/>`_.


License
-------

The code is licensed under the MIT license. See `LICENSE` file for more details.
essential-paxos 2.0
Paxos algorithm implementation suitable for practical and educational use
License: MIT

Essential Paxos provides basic implementations of the Paxos algorithm. The
distinguishing characteristic of this implementation, as compared to other
freely available and open-source implementations, is that this library is
independent of application domains and networking infrastructures. Whereas most
Paxos implementations are deeply and inextricably embedded within
application-specific logic, this implementation focuses on encapsulating the
Paxos algorithm within opaque and easily re-usable classes.

This library provides an algorithmically correct Paxos implementation that may
be used for educational purposes in addition to direct use in networked
applications. This implementation is specifically designed to facilitate
understanding of both the essential Paxos algorithm as well as the practical
considerations that must be taken into account for real-world use.