Skip to content

Commit

Permalink
cleaned up run_app
Browse files Browse the repository at this point in the history
  • Loading branch information
Voyz committed Aug 18, 2020
1 parent 6186f11 commit 275ef41
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/runners/run_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from databay import Link
from databay.inlets.file_inlet import FileInlet, FileInletMode
from databay.planners import APSPlanner, SchedulePlanner
# from databay.inlets.AlphavantageInlet import AlphavantageInlet
from databay.inlets import HttpInlet
from databay.outlets import CsvOutlet
from databay.outlets import MongoOutlet
Expand All @@ -22,7 +21,7 @@ def run(self):
# planner = APSPlanner()
planner = SchedulePlanner(refresh_interval=0.5)

# alphavantage_inlet = AlphavantageInlet(key='9TZBJ8V9EMEES2WN', symbol='TSLA', interval='1min', metadata={'MONGODB_COLLECTION': 'alpha_prices'})

http_inlet = HttpInlet('https://jsonplaceholder.typicode.com/todos/1', metadata={CsvOutlet.FILE_MODE:'a'})
file_inlet = FileInlet('output_03.csv', read_mode=FileInletMode.LINE)
http_inlet2 = HttpInlet('https://postman-echo.com/get?foo1=bar1&foo2=bar2', metadata={'MONGODB_COLLECTION': 'test_collection2', 'csv_file': 'output_02.csv'})
Expand Down

0 comments on commit 275ef41

Please sign in to comment.