semvec/pypi-packages huggingface dataset:
networkzero 1.0b1
Making networking simple for teachers
License: MIT
Keywords: networking education

NetworkZero
===========

.. image:: https://travis-ci.org/tjguk/networkzero.svg?branch=master
    :target: https://travis-ci.org/tjguk/networkzero

Make it easy for learning groups to use simple networking in Python

* Docs: http://networkzero.readthedocs.org/en/latest/

* Development: https://github.com/tjguk/networkzero

* Tests: to run the tests, run tox. All tests are run on Travis (Linux & Apple)
  and Appveyor (Windows)

API
---

address below refers to an IP:Port string eg "192.0.2.5:4567"

Discovery
~~~~~~~~~

* address = advertise(name, address=None)

* address = discover(name, wait_for_s=FOREVER)

* [(name, address), ...] = discover_all()

* [(name, address), ...] = discover_group(group_name, separator="/")

Messaging
~~~~~~~~~

* reply = send_message_to(address, message, wait_for_reply_s=FOREVER)

* message = wait_for_message_from(address, [wait_for_s=FOREVER])

* send_reply_to(address, reply)

* send_news_to(address, news)

* wait_for_news_from(address[, pattern=EVERYTHING][, wait_for_s=FOREVER])

Typical Usage
-------------

On computer (or process) A:

.. code-block:: python

    import networkzero as nw0

    address = nw0.advertise("hello")
    while True:
        name = nw0.wait_for_message_from(address)
        nw0.send_reply_to(address, "Hello, %s" % name)

On computer (or process) B and C and D...:

.. code-block:: python

    import networkzero as nw0

    server = nw0.discover("hello")
    reply = nw0.send_message_to(server, "World")
    print(reply)
    reply = nw0.send_message_to(server, "Tim")
    print(reply)
github_pushbullet 0.1.1
Push github notifications to pushbullet.
License: MIT
Keywords: github notification push pushbullet

Github Pushbullet
=====================

.. image:: https://img.shields.io/pypi/v/github_pushbullet.svg
    :target: https://pypi.python.org/pypi/github_pushbullet

.. image:: https://img.shields.io/pypi/dm/github_pushbullet.svg
    :target: https://pypi.python.org/pypi/github_pushbullet

Push github notifications to pushbullet.


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

.. code-block:: bash

    $ pip install github_pushbullet


Simple Example
---------------
.. code-block:: python

    from github_pushbullet import (
      GithubAccount,
      GithubPushbullet,
    )
    
    account = GithubAccount("username", "password")
    gp = GithubPushbullet(account, "access_token")
    gp.run()    # infinite loop

`See more examples.
<https://github.com/taeguk/github_pushbullet/tree/master/examples>`_


Contributing
-----------------
Welcome! I'm waiting contributors!
django-query-execfile 0.6
A Django module for execute custom sql query in a .sql file
License: MIT
Keywords: django,query,sql,execute,file

# django-query-execfile
**Django module for execute sql query in a file**

Full documentation for the project is available at []

---

**Note**:


---

# Overview

django-query-execfile is a simple library for execute .sql query file.
Especially


# Requirements

* Python (2.7.x )
* Django (1.5+ )

# Installation

Install using `pip`...

```shell
pip install django-query-execfile
```


# Usage & Example

This is content of a .sql file

```sql
#sum_customerPayment_amount_rate_exchanged_group_by_day
SELECT
  DATE(customerPayment.created)                       AS created,
  SUM(transaction.amount * transaction.exchange_rate) AS amount_exchanged
FROM shop_module_customerpayment customerPayment
  LEFT JOIN shop_module_transaction transaction ON transaction.id = customerPayment.transaction_id
WHERE (customerPayment.created BETWEEN %(from_date)s AND %(to_date)s)
GROUP BY DATE(customerPayment.created);
```


Usage example

```python
from models import Order
from query_execfile import sql_execfile, raw_queryfile

result = sql_execfile('../datagrip/payment_transaction_stats.sql'),
    params={'from_date': .., 'to_date': ..},
    mapResultToDict=True,
    includeDescription=True
)
print result

rawQuerySet = raw_queryfile(Order, '../datagrip/order_rawquery.sql')
for order in rawQuerySet:
    doSomeThingWith(order)
```

**mapResultToDict=True** will map results to a dict with key = first comment above the query.
So you can write multiple query in a single file and execute these query at once.

**includeDescription=True** will add a extra row at first as column header using description from the query.
In this case is _AS created_ and _AS amount_exchanged_


**Result return of that example:**

```json
{"sum_customerPayment_amount_rate_exchanged_group_by_day": [
[
    "created",
    "amount_exchanged"
],
[
    "2016-03-01",
    4933000.0
],
[
    "2016-03-02",
    7144000.0
],
...
...
...
[
    "2016-03-10",
    2110000.0
]
],}
```


# Documentation & Support