Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

doozerify-0.2.0.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

doozerify-0.2.0-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page