https://prefect.io logo
#prefect-community
Title
# prefect-community
s

Senthil M.K.

01/17/2023, 11:43 PM
Hello, what's the status on the prefect-twilio project? Has not been any activity for the past 7 months...and PYPI does not have a package which can be installed via pip
n

Nate

01/18/2023, 12:56 AM
Hi @Senthil M.K. It looks like we only ever generated the boilerplate for that collection. However there is a
TwilioNotificationBlock
available currently in the core library that you can use in your flows or an automation. What functionality were you hoping to find in
prefect-twilio
?
s

Senthil M.K.

01/18/2023, 2:59 AM
Hello @Nate Not sure. I remember prefect 1.x having a bunch of tasks for sending texts and other functions using Twilio API...But that has not been migrated to Prefect 2.0? Is that a product direction by choice?
n

Nate

01/18/2023, 3:10 AM
it looks like there was a way in v1 to send emails as well maybe? not so familiar with those v1 tasks, however the
TwilioSMS
block can send SMS messages (to one or many phone numbers) so in the UI you can go to Blocks > Create > TwilioSMS > fill out fields to create a block e.g. one called
your-block-name
Copy code
from prefect.blocks.notifications import TwilioSMS

twilio_webhook_block = TwilioSMS.load("your-block-name")

twilio_webhook_block.notify("Hello from Prefect!")
if there are other things you'd like to see from a
prefect-twilio
collection, feel free to open an issue and we can implement it as time allows
s

Senthil M.K.

01/18/2023, 3:49 AM
No. I can implement the tasks myself with Prefect 2.0 constructs. I was wondering if the focus was not to support the "`prefect-twilio`" as a pip dependency moving forward. I know the underlying design has changed (Blocks and Collections) and I am getting up to speed on those aspects...
n

Nate

01/18/2023, 3:57 AM
ah I see. we haven’t published / supported prefect-twilio thus far in 2.0 we try to get to everything in demand as soon as possible given bandwidth, but as far as i know we haven’t had any specific requests on twilio (outside of supporting SMS in core) so we haven’t built out that collection
s

Senthil M.K.

01/18/2023, 3:58 AM
makes sense. thanks
👍 1
2 Views