Skip to content

Blocks Catalog

Below is a list of Blocks available for registration in prefect-twitter.

To register blocks in this module to view and edit them on Prefect Cloud, first install the required packages, then

prefect block register -m prefect_twitter
Note, to use the load method on Blocks, you must already have a block document saved through code or saved through the UI.

Credentials Module


Block used to manage Twitter authentication with tweepy. See Authentication Tokens section of the Keys and Tokens tab of your app, under the Twitter Developer Portal Projects & Apps page at

To load the TwitterCredentials:

from prefect import flow
from prefect_twitter.credentials import TwitterCredentials

def my_flow():
    my_block = TwitterCredentials.load("MY_BLOCK_NAME")

For additional examples, check out the Credentials Module under Examples Catalog.