A tool to aid the transition from Henson to Doozer
Project description
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
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!
import doozerify
doozerify.install()
doozerify.install_fallback()
from doozer import Application
from doozer_henson_only import Extension
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file doozerify-0.2.0.tar.gz
.
File metadata
- Download URL: doozerify-0.2.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0ddcdace2efa60238c20ed7b178fd1d9f35a7b477a921ac970cb70374f30ff6 |
|
MD5 | a9bacd3ece67835f82ea042fc3a3e483 |
|
BLAKE2b-256 | 949ec8707ed7336f0d4de5dd2124cfc2ab90ddee7f4870f6647196c814f6f482 |
File details
Details for the file doozerify-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: doozerify-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32f43439479d55070122271299c50991171eb3e06c40ddd490168efa8609efc3 |
|
MD5 | 53769ada82f60a74f2d881df8b99d7bf |
|
BLAKE2b-256 | 7a57a0bdfaceb2b809801973ae4615256214d2c47bb440438d3d0317c04fc2fd |