semvec/pypi-packages huggingface dataset:
afilnet 1.0.1
This package is an easy way to use send sms, email and voice(texto-to-speech) using Afilnet services
License: MIT
Keywords: afilnet sms email voice message phone call notification cloud marketing service

Afilnet Cloud Marketing
=======================

This package is designed to be an easy way to use Afilnet API services. You can send SMS, email and voice notifications using your Afilnet account.

You only need an Afilnet account with enought credits.
If you do not have an account, you can `create it <http://afilnet.us/client/register.php/>`_ in a few minutes.


Installation
------------
You can use pip to install this package.
Go to your terminal and run: pip install afilnet


Easy to use
~~~~~~~~~~~

You only need to call the module ``urls.py`` + service:

.. code-block:: python

    res = afilnet.sendSMS("MyAfilnetUsername", "MyAfilnetPassword", "To", "This is a test message", "From")


Then you will receive the result in json.


Available Services
------------------
There are 4 channels availables:
- General
- SMS
- Email
- Voice

This library use the structure:

.. code-block:: python

    res = afilnet.service(params)

General has two services:
- getBalance (Get balance of your account)
- isUser (Return if user is valid or not) *This service return a boolean*

SMS, Email and Voice have the same services:
- send (Send to a single user)
- sendFromTemplate (Send to a single user using a template)
- sendToGroup (Send to a defined group)
- sendToGroupFromTemplate (Send to a defined group using a template)
- getDeliveryStatus (Get delivery status of a message)

## SMS
~~~~~~
- sendSms(username, password, to, message, sender, scheduledatetime="")
- sendSmsFromTemplate(username, password, to, idTemplate, params, scheduledatetime="")
- sendSmsToGroup(username, password, sender, countryCode, idGroup, msg, scheduledatetime="")
- sendSmsToGroupFromTemplate(username, password, countryCode, idGroup, idTemplate, scheduledatetime="")

## Email
~~~~~~~~
- sendEmail(username, password, subject, to, message, scheduledatetime=""):
- sendEmailFromTemplate(username, password, to, idTemplate, params, scheduledatetime="")
- sendEmailToGroup(username, password, subject, idGroup, msg, scheduledatetime="")
- sendEmailToGroupFromTemplate(username, password, idGroup, idTemplate, scheduledatetime="")

## Voice
~~~~~~~~
- sendVoice(username, password, to, message, lang="", scheduledatetime="")
- sendVoiceFromTemplate(username, password, to, idTemplate, params, scheduledatetime="")
- sendVoiceToGroup(username, password, countryCode, idGroup, msg, scheduledatetime="")
- sendVoiceToGroupFromTemplate(username, password, countryCode, idGroup, idTemplate, scheduledatetime="")

## User
~~~~~~~
- getBalance(username, password)
- isUser(username, password)
Flask_LDAP_View 0.3
A library to restrict your flask pages by LDAP groups
License: MIT
Keywords: Flask,LDAP,Security

# Flask LDAP View
A library to restrict your flask pages by LDAP groups

A more full example that includes Flask-Login can be found [here](https://github.com/sonance207/Flask_LDAP_View/blob/master/examples/example_Flask_LDAP_View.py).


## Installation

Install the extension with the following command:

```sh
$ pip install Flask_LDAP_View
```


## Usage

We start the  Flask LDAP View by instantiating it and telling it about our Flask app:

```python
from flask import Flask, g, redirect, session
from Flask_LDAP_View import LDAP_VIEW


app = Flask(__name__)

ldap = LDAP_VIEW(app)
```

Next we have to import our LDAP configuration 

```python
#Service account to search ldap tree
app.config['LDAP_HOST'] = 'ldap://127.0.0.1:389/'
app.config['LDAP_BASE_DN'] = 'OU=Admins,OU=Users,DC=exampleDC,DC=local'
app.config['LDAP_USERNAME'] = 'CN=User,OU=Admins,OU=Users,DC=exampleDC,DC=local'
app.config['LDAP_PASSWORD'] = 'password'

#Splash page to appear when user access a unauthorized resource
app.config['LDAP_UNAUTHORIZED_REDIRECT'] = '/unauthorized'
```

After that we will add our before request,views, and login
```python

@app.before_request
def before_request():
    try:
        g.user_memberof = session['user_memberof']
    except:
        session['user_memberof'] = None
        g.user_memberof = session['user_memberof']
        

@app.route('/')
def index():
    return 'Successfully logged in!'
    
@app.route('/unauthorized')
def unauthorized():
    return 'You are unauthorized to access this page'
    

def login():
    if current_user.is_authenticated:
        return redirect(url_for('index'))
    if request.method == 'POST':
        username = request.form['user']
        passwd = request.form['passwd']
        g.user_memberof = ldap.bind_user(username, passwd)
        if type(g.user_memberof) == ValueError:
            flash(g.user_memberof.message)
            return redirect('/login')
        session['user_memberof'] = g.user_memberof
        flash('You have successfully logged in')
        return redirect('/')
    else:
        redirect('/login')
    return """<form action="" method="post">
                user: <input name="user"><br>
                password:<input type="password" name="passwd"><br>
                <input type="submit" value="Submit"></form>"""

```

Now we're ready to define our views. In this example we are restricting access to the 
QA group
 
```python
@app.route('/group')
@ldap.group_required(['QA'])
def group():
    return 'You have been granted access to the Group restricted page '
```

You keep even use Flask-Login alongside with it.

```python
@app.route('/group')
@login_required
@ldap.group_required(['QA'])
def group():
    return 'You have been granted access to the Group restricted page '
```

A more full example that includes Flask-Login can be found [here](https://github.com/sonance207/Flask_LDAP_View/blob/master/examples/example_Flask_LDAP_View.py).
gg-start 0.0.5
Plugin for gg for starting branches
License: MIT

========
gg-start
========

.. image:: https://travis-ci.org/peterbe/gg-start.svg?branch=master
    :target: https://travis-ci.org/peterbe/gg-start

.. image:: https://badge.fury.io/py/gg-start.svg
    :target: https://pypi.python.org/pypi/gg-start

A plugin for `gg <https://github.com/peterbe/gg>`_ for starting new branches.


Installation
============

This is a plugin that depends on `gg <https://github.com/peterbe/gg>`_
which gets automatically
installed if it's not already available::

    pip install gg-start

How to develop
==============

To work on this, first run::

    pip install -U --editable .

That installs the package ``gg`` and its dependencies. It also
installs the executable ``gg``. So now you should be able to run::

    gg start --help


Version History
===============

0.1
  * Proof of concept
gg-commit 0.0.1
Plugin for gg for committing branches
License: MIT

=========
gg-commit
=========

.. image:: https://travis-ci.org/peterbe/gg-commit.svg?branch=master
    :target: https://travis-ci.org/peterbe/gg-commit

.. image:: https://badge.fury.io/py/gg-commit.svg
    :target: https://pypi.python.org/pypi/gg-commit

A plugin for `gg <https://github.com/peterbe/gg>`_ for committing branches.


Installation
============

This is a plugin that depends on `gg <https://github.com/peterbe/gg>`_
which gets automatically
installed if it's not already available::

    pip install gg-commit

This plugin is ideally useful in conjunction with `gg-start
<https://github.com/peterbe/gg-start>`_ which helps you create new
branches.

How to develop
==============

To work on this, first run::

    pip install -U --editable .

That installs the package ``gg`` and its dependencies. It also
installs the executable ``gg``. So now you should be able to run::

    gg commit --help


Version History
===============

0.1
  * Proof of concept
metzoo-python-lib 0.0.19
Python Database Library for Metzoo
License: MIT
Keywords: metzoo monitoring metric

Database library needed by 2 different projects to work togheter:

  * metzoo-python-reader: this reads data from different sources and save that data into a database using this library.
  * metzoo-python-writer: this consumes the data saved in the database using this library and then send that data to metzoo.
filewire 0.0.10
Easily send and receive files over LAN
License: MIT
Keywords: lan share send receive file

********
filewire
********

Easily send and receive files over LAN.

============
Installation
============

.. code-block:: bash

    $ pip3 install firewire

or from local filesystem:

.. code-block:: bash

    $ python3 setup.py install

=====
Usage
=====

Sending file from working directory:

.. code-block:: bash

    $ filewire send IP FILENAME

Receiving file to working directory:

.. code-block:: bash

    $ filewire recv

See also ``filewire --help``.

=======
License
=======

Please see `LICENSE <https://github.com/zxey/filewire/blob/master/LICENSE>`_.