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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for doozerify-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c0ddcdace2efa60238c20ed7b178fd1d9f35a7b477a921ac970cb70374f30ff6
MD5 a9bacd3ece67835f82ea042fc3a3e483
BLAKE2b-256 949ec8707ed7336f0d4de5dd2124cfc2ab90ddee7f4870f6647196c814f6f482

See more details on using hashes here.

File details

Details for the file doozerify-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for doozerify-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 32f43439479d55070122271299c50991171eb3e06c40ddd490168efa8609efc3
MD5 53769ada82f60a74f2d881df8b99d7bf
BLAKE2b-256 7a57a0bdfaceb2b809801973ae4615256214d2c47bb440438d3d0317c04fc2fd

See more details on using hashes here.

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