ciao-0.1.0
توضیحات
Michael Corleone says ...
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | ciao-0.1.0 |
| نام | ciao |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | mikey |
| ایمیل نویسنده | mikey@corleone.it |
| آدرس صفحه اصلی | https://github.com/bninja/ciao |
| آدرس اینترنتی | https://pypi.org/project/ciao/ |
| مجوز | BSD |
====
coid
====
.. image:: https://travis-ci.org/bninja/coid.png
:target: https://travis-ci.org/bninja/coid
.. image:: https://coveralls.io/repos/bninja/ciao/badge.png
:target: https://coveralls.io/r/bninja/ciao
Simple resource throttling. Get it:
.. code:: bash
$ pip install coid
use it e.g. like:
.. code:: python
import datetime
import ciao
import sqlalchemy as sa
db_engine = sa.create_engine('postgres://mikey:corleone@localhost/study')
db_throttle = ciao.Throttle(
duration=datetime.timedelta(seconds=30),
exc=(
sa.exc.OperationalError,
sa.exc.DisconnectionError,
sa.exc.InvalidRequestError,
sa.exc.InterfaceError,
sa.exc.DatabaseError,
sa.exc.DBAPIError,
),
)
if not db_throttle:
with db_throttle:
db_engine.execute('SELECT * FROM slippers WHERE name = "mine"')
نحوه نصب
نصب پکیج whl ciao-0.1.0:
pip install ciao-0.1.0.whl
نصب پکیج tar.gz ciao-0.1.0:
pip install ciao-0.1.0.tar.gz