Skip to content

Instantly share code, notes, and snippets.

@2tony2
Created May 22, 2024 07:45
Show Gist options
  • Select an option

  • Save 2tony2/40c94ca7a20c21180d3db6001e1fc815 to your computer and use it in GitHub Desktop.

Select an option

Save 2tony2/40c94ca7a20c21180d3db6001e1fc815 to your computer and use it in GitHub Desktop.
class DataPipeline:
def __init__(self, name: str, batch_size: int):
self.name = name
self.batch_size = batch_size
self.status = "inactive"
pipeline = DataPipeline(name="ETL Pipeline", batch_size=500)
print(vars(pipeline))
# Output: {'name': 'ETL Pipeline', 'batch_size': 500, 'status': 'inactive'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment