Sling + Python π
Examples of using Sling with Python
Installation
Using the Replication class
Replication classimport yaml
from sling import Replication
# From a YAML file
replication = Replication(file_path="path/to/replication.yaml")
replication.run()
# Or load into object
with open('path/to/replication.yaml') as file:
config = yaml.load(file, Loader=yaml.FullLoader)
replication = Replication(**config)
replication.run()Build a replication dynamically
Using the Sling Class
Sling ClassBasic Usage with run() method
run() methodInput Streaming - Python Data to Target
Output Streaming with stream()
stream()High-Performance Streaming with stream_arrow()
stream_arrow()Round-trip Examples
Using the Pipeline class
Pipeline classLast updated
Was this helpful?