semvec/pypi-packages huggingface dataset:
twilio-thinQLCR 2.0.0
Twilio 6.x Wrapper Python Library For thinQ LCR integration.
License: MIT
Keywords: twilio thinq wrapper python

Twilio Wrapper Python Library For thinQ LCR integration
=========================================================================

**Note that you will need a valid LCR Account with thinQ before using the libraries. For more information please contact your thinQ Sales representative at http://www.thinq.com**
----------------------------------------------------------------------------------------------------------------

To use with version 6.X of Twilio's SDK, simply do:

    >>> from twilio_thinQLCR import TwilioWrapper
    >>> wrapper = TwilioWrapper(twilio_account_sid, twilio_auth_token, thinQ_id, thinQ_token)
    >>> # wrapper.call(to-number, from-number, twiML URL)
    >>> call = wrapper.call("12345678901", "18765432101", "http://example.com/twilio.xml")
    >>> print "Call sid: " + str(call.sid)
Potion-client 2.5.1
A client for APIs written in Flask-Potion
License: MIT

=============
Potion client
=============


.. image:: https://img.shields.io/travis/biosustain/potion-client/new-potion-client.svg?style=flat-square
    :target: https://travis-ci.org/biosustain/potion-client

.. image:: https://img.shields.io/coveralls/biosustain/potion-client/new-potion-client.svg?style=flat-square
    :target: https://coveralls.io/r/biosustain/potion-client

.. image:: https://img.shields.io/pypi/v/Potion-Client.svg?style=flat-square
    :target: https://pypi.python.org/pypi/Potion-Client

.. image:: https://img.shields.io/pypi/l/Potion-Client.svg?style=flat-square
    :target: https://pypi.python.org/pypi/Potion-Client

.. image:: https://badges.gitter.im/Join%20Chat.svg
   :alt: Join the chat at https://gitter.im/biosustain/potion
   :target: https://gitter.im/biosustain/potion?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge

Description
===========

This is a Python client for APIs written in `Flask-Potion <https://github.com/biosustain/potion>`_ (a powerful Flask extension for self-documenting JSON APIs).

The package uses `Requests <https://github.com/kennethreitz/requests>`_ to provide a super-simple interface to Potion APIs that
works with all common authentication methods. It generates classes for each of the resources in the API and automatically handles pagination
and resolving and serializing references. It also has some basic `IPython Notebook <http://ipython.org/notebook.html>`_ support.

Example
=======

.. code-block:: python

    from potion_client import Client
    from potion_client.auth import HTTPBearerAuth
    from potion_client.exceptions import ItemNotFound

    client = Client('http://localhost/api', auth=HTTPBearerAuth('79054025255fb1a26e4bc422aef54eb4'))

    u123 = client.User(123)

    chomp = client.Animal()
    chomp.owner = u123
    chomp.name = "Chomp"
    chomp.species = "hamster"
    chomp.save()

    pets = client.Animal.instances(where={"owner": u123}, sort={"created_at": True})

    print("{} has {} pet(s)".format(u123.first_name, len(pets))

    for pet in pets:
        if pet is not chomp:
            pet.add_friend(chomp)
            print("{} is now friends with Chomp".format(pet.name)))

    try:
        foo = client.User.first(where={"username": "foo"})
    except ItemNotFound:
        print("User 'foo' does not exist!")
    else:
        chomp.update(owner=foo)
        print("Chomp has been sold to {}".format(foo.name))

    chomp.destroy()
    print("RIP, Chomp. You lived a happy life.")

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

To install ``potion-client``, run:

::

    pip install potion-client




Authors
=======

Potion-client was written by `João Cardoso <https://github.com/joaocardoso>`_ and `Lars Schöning <https://github.com/lyschoening>`_.
safelogging 0.1.0
Extensions to the standard python logging framework
License: MIT
Keywords: python safe logging syslog

safelogging: Extensions to the standard python logging framework
================================================================

A simple python library that adds some additional logging functionality on top
of the standard python logging library that could be useful for python
applications running as background services in a UNIX system.

One of the main functionalities it provides is a ``ResilientSysLogHandler``
class that is a drop-in replacement of ``logging.handlers.SysLogHandler`` and
is able to gracefully handle any connection issues to the syslog server while
falling back to file stream logging to avoid any loss of messages.
tcping 0.1.1rc1
command line for tcp ping
License: MIT
Keywords: python tcp ping

tcping
======

一个类似于 ping 的系统工具， 检测在连接 tcp 时候的延迟，
比较正确是反应出网络的延迟情况，毕竟 tcp 用途比较广。

虽然和 icmp 的 ping 原理不同，ping 命令也能很大程度上反映出网络的延迟，
但是该矫情还是要矫情一把的。

Usage
-----

::

    pip install tcping

::

    ➜  ~ tcping api.github.com
    Connected to api.github.com[:80]: seq=1 time=236.44 ms
    Connected to api.github.com[:80]: seq=2 time=237.99 ms
    Connected to api.github.com[:80]: seq=3 time=248.88 ms
    Connected to api.github.com[:80]: seq=4 time=233.51 ms
    Connected to api.github.com[:80]: seq=5 time=249.23 ms
    Connected to api.github.com[:80]: seq=6 time=249.77 ms
    Connected to api.github.com[:80]: seq=7 time=235.82 ms
    Connected to api.github.com[:80]: seq=8 time=242.30 ms
    Connected to api.github.com[:80]: seq=9 time=248.26 ms
    Connected to api.github.com[:80]: seq=10 time=251.77 ms

    --- api.github.com[:80] tcping statistics ---
    10 connections, 10 successed, 0 failed, 100.00% success rate
    minimum = 233.51ms, maximum = 251.77ms, average = 243.40ms

呵呵，GFW，66666

::

    ➜  ~ tcping --help
    Usage: tcping [OPTIONS] HOST

    Options:
      -p, --port INTEGER      Tcp port
      -c, --count INTEGER     Try connections counts
      -t, --timeout FLOAT     Timeout seconds
      --report / --no-report  Show report to replace statistics
      --help  

其中这个 ``--report`` 可以生成一个 ascii 的 table，好看一点吧。。。

::

    ➜  ~ tcping api.github.com -c 3 --report
    Connected to api.github.com[:80]: seq=1 time=237.79 ms
    Connected to api.github.com[:80]: seq=2 time=237.72 ms
    Connected to api.github.com[:80]: seq=3 time=258.53 ms

    +----------------+------+-----------+--------+--------------+----------+----------+----------+
    |      Host      | Port | Successed | Failed | Success Rate | Minimum  | Maximum  | Average  |
    +----------------+------+-----------+--------+--------------+----------+----------+----------+
    | api.github.com |  80  |     3     |   0    |   100.00%    | 237.72ms | 258.53ms | 244.68ms |
    +----------------+------+-----------+--------+--------------+----------+----------+----------+

END
---

其实写这个主要是为了测试搭建翻墙 VPS 的 tcp 延迟。。。
pymongorm 0.0.3
a package use orm to operate mongo
License: MIT
Keywords: mongo python orm

### mongorm
一个简单的基于pymongo的orm

### 使用示例


```python
from mongorm import MongoModel
from field import CharField, IntField
class User(MongoModel):

    class Meta:
        # 设置mongo的数据库名称
        dbname = "mongoorm"
        # 设置集合名词
        collection = "test"
    user = CharField(is_must=True, default="xxx")
    age = IntField(is_must=True)

if __name__ == "__main__":
    # 下面两种方法均可以插入一条记录
    User.objects.create(user="wupengxin", age=10)
    print User(user="usertest", age=12).create()
```