App Templates
Custom python connector example
Get updates on Upcoming App Templates and Blogs
·Published Invalid Date·Updated Invalid Date·0 min read
Custom python connector example
⚠️ Twitter has turned off its free tier streaming API.
The purpose of this example is to show how to implement custom python connector.
The sample script is a simple Pathway pipeline that turns a stream of tweets into a Pathway table and writes the stream of changes to an output.csv file. Twitter API was used as an example, but any data stream can be fed into Pathway using this method.
How to launch this example:
- Install Pathway package using method described here
https://pathway.com/developers/documentation/introduction/installation-and-first-steps/ pip install -r requirements.txtto install additional dependencies.export TWITTER_API_TOKEN=<BEARER_TOKEN>to provide bearer token obtained from Twitter developer portal.python twitter_connector_example.pyto run sample code.- Press
CTRL+Cto stop the script.
Power your RAG and ETL pipelines with Live Data