Scimple
Utils scimplifying Matplotlib, Apache Kafka, Apache PySpark
Goal
Gain time on repetitive things
Features
from scimple import kafka, Plot
Plot square function as scimply as :
Plot().add(x=range(-10, 10), y=lambda i, x: x[i]**2)
Start a kafka server and talk on it as scimply as :
kafka.start_server()
kafka.talk(topic="about_cats", message="cats_are_cute")
Create a PySpark Streaming dstream listening on a Kafka topic as scimply as :
dstream = kafka.create_dstream(topic="about_cats")
Test it
- run
pip install scimple
- Run your favorite notebook
- Test
./notebook_example.ipynb
Some outputs from the notebook: