Skip to content

Commit ee422aa

Browse files
committed
fix: imported logger and version number
1 parent 50bd3b1 commit ee422aa

File tree

5 files changed

+5
-15
lines changed

5 files changed

+5
-15
lines changed

curator/data_pipeline/download.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import logging
21
from datetime import datetime
32

43
from aiomultiprocess import Pool
@@ -23,11 +22,9 @@
2322
from db_tools.queries import lookup_multi_ticker_ids
2423
from db_tools.utils import OptionTicker
2524

26-
from curator.proj_constants import POLYGON_BASE_URL
25+
from curator.proj_constants import POLYGON_BASE_URL, log
2726
from curator.utils import pool_kwarg_config
2827

29-
log = logging.getLogger(__name__)
30-
3128
planned_exceptions = (
3229
InvalidArgs,
3330
ProjClientConnectionError,

curator/data_pipeline/orchestrator.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import logging
21
from datetime import datetime
32

43
from data_pipeline.download import (
@@ -21,7 +20,7 @@
2120
from db_tools.utils import generate_o_ticker_lookup, pull_tickers_from_db
2221
from pandas import DataFrame
2322

24-
log = logging.getLogger(__name__)
23+
from curator.proj_constants import log
2524

2625

2726
async def import_all(tickers: list, start_date: datetime, end_date: datetime, months_hist: int):

curator/data_pipeline/path_runner.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import logging
21
import os
32
from abc import ABC, abstractmethod
43
from datetime import datetime
@@ -15,7 +14,7 @@
1514
)
1615
from db_tools.utils import OptionTicker
1716

18-
from curator.proj_constants import BASE_DOWNLOAD_PATH, POSTGRES_BATCH_MAX, logger_setup
17+
from curator.proj_constants import BASE_DOWNLOAD_PATH, POSTGRES_BATCH_MAX, log
1918
from curator.utils import (
2019
clean_o_ticker,
2120
months_ago,
@@ -24,8 +23,6 @@
2423
timestamp_to_datetime,
2524
)
2625

27-
log = logging.getLogger(__name__)
28-
2926

3027
class PathRunner(ABC):
3128
"""Base class for runner that will traverse the directory structure and retrieve/clean raw data.

curator/data_pipeline/polygon_utils.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import asyncio
2-
import logging
32
import os
43
from abc import ABC, abstractmethod
54
from datetime import date, datetime
@@ -18,7 +17,7 @@
1817
from dateutil.relativedelta import relativedelta
1918
from db_tools.utils import OptionTicker
2019

21-
from curator.proj_constants import BASE_DOWNLOAD_PATH, POLYGON_API_KEY, POLYGON_BASE_URL
20+
from curator.proj_constants import BASE_DOWNLOAD_PATH, POLYGON_API_KEY, POLYGON_BASE_URL, log
2221
from curator.utils import (
2322
extract_underlying_from_o_ticker,
2423
first_weekday_of_month,
@@ -29,8 +28,6 @@
2928
write_api_data_to_file,
3029
)
3130

32-
log = logging.getLogger(__name__)
33-
3431

3532
class Timespans(Enum):
3633
second = "second"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "curator"
3-
version = "0.1.0"
3+
version = "1.0.4"
44
description = "Package for curating historical market data from Polygon.io to backfill into a postgres database"
55
authors = ["Jody Hirschi <jody@heylittlejohn.com>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)