doozerify-0.2.0
توضیحات
A tool to aid the transition from Henson to Doozer
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX |
| نام فایل | doozerify-0.2.0 |
| نام | doozerify |
| نسخه کتابخانه | 0.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Andy Dirnberger |
| ایمیل نویسنده | andy@dirnberger.me |
| آدرس صفحه اصلی | https://gitlab.com/dirn/doozerify |
| آدرس اینترنتی | https://pypi.org/project/doozerify/ |
| مجوز | MIT |
#########
doozerify
#########
Are you a Henson_ user? Are you looking to take advantage of unreleased
features? Have you discovered Doozer_ and are curious to try it but are
concerned about missing extensions or the work involved in updating your
imports?
If you've answered "yes" to these questions then ``doozerify`` is for you.
``doozerify`` is a module that you can install that will make ``import`` look
for Doozer equivalents for all of your Henson imports, falling back to the
Henson version if no equivalent is found.
Installation
############
$ pip3 install doozerify
Usage
#####
Place the following code at the beginning of the entry point to your
application::
import doozerify
doozerify.install()
Example
=======
.. code::
import doozerify
doozerify.install()
from henson import Application
class Consumer(object):
async def read(self):
return {}
async def callback(app, message):
return message
app = Application('doozerified', callback=callback, consumer=consumer)
app.run()
But wait, there's more!
=======================
What if you already use Doozer_ but want to use an extension that's only
available for Henson_? ``doozerify`` lets you do that, too!
.. code::
import doozerify
doozerify.install()
doozerify.install_fallback()
from doozer import Application
from doozer_henson_only import Extension
.. _Doozer: https://doozer.readthedocs.io
.. _Henson: https://henson.readthedocs.io
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl doozerify-0.2.0:
pip install doozerify-0.2.0.whl
نصب پکیج tar.gz doozerify-0.2.0:
pip install doozerify-0.2.0.tar.gz