From e9b427ac4c48331f7074f84a1c2fe88330233865 Mon Sep 17 00:00:00 2001 From: Daniil Fajnberg Date: Fri, 12 Nov 2021 17:04:51 +0100 Subject: [PATCH] made functions available for import directly from package level; minor addition to gitignore --- .gitignore | 4 ++++ src/stocksymbolscraper/__init__.py | 1 + src/stocksymbolscraper/__main__.py | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 7a3a3f1..96ed22a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,6 @@ +# Virtual environment /.venv/ +# PyCharm: /.idea/ +# Distribution / packaging: +*.egg-info/ \ No newline at end of file diff --git a/src/stocksymbolscraper/__init__.py b/src/stocksymbolscraper/__init__.py index e69de29..4ed563b 100644 --- a/src/stocksymbolscraper/__init__.py +++ b/src/stocksymbolscraper/__init__.py @@ -0,0 +1 @@ +from .scrape import * diff --git a/src/stocksymbolscraper/__main__.py b/src/stocksymbolscraper/__main__.py index bdfa942..9512037 100644 --- a/src/stocksymbolscraper/__main__.py +++ b/src/stocksymbolscraper/__main__.py @@ -5,7 +5,7 @@ import csv from argparse import ArgumentParser from pathlib import Path -from .scrape import get_all_data, log +from . import get_all_data, log def main() -> None: