pydanny / dj-webhooks

Django + Webhooks made Easy
BSD 3-Clause "New" or "Revised" License
87 stars 21 forks source link

Webhooks.senders makes python complain #6

Closed Jzarecta closed 8 years ago

Jzarecta commented 8 years ago

I tried the usage example but couldnt get the senders submodule from webhooks:

from webhooks import webhook
from webhooks.senders import targeted

@webhook(sender_callable=targeted.sender)
def basic(url, wife, husband):
    return {"husband": husband, "wife": wife}

basic(url="http://httpbin.org/post", "Danny", "Audrey")```

responde the following error:

from webhooks import webhook from webhooks.senders import targeted Traceback (most recent call last): File "", line 1, in ImportError: No module named senders

pydanny commented 8 years ago

Use Thorn: https://medium.com/robinhood-engineering/thorn-easy-webhooks-for-python-82a78e170bdb#.u0ic1nzfg

Jzarecta commented 8 years ago

Actually it seems I was on the django module and not on the standalone one the pip package doesnt include the senders folder from here: https://github.com/pydanny/webhooks/tree/master/webhooks/senders

Is probably a packaging bug: https://pypi.python.org/pypi/webhooks/0.3.0

pydanny commented 8 years ago

@Jzarecta Much as I like this package, without a project or a backer that uses it I don't have the bandwidth to maintain it. Hence why I recommended Thorn by @ask.