From 1d62009c4f6043c53df39a88ae56df69752a012a Mon Sep 17 00:00:00 2001 From: msramalho <19508417+msramalho@users.noreply.github.com> Date: Wed, 23 Feb 2022 16:24:59 +0100 Subject: [PATCH] creates utils module and moves gworkseet there --- README.md | 4 ++-- auto_archive.py | 2 +- utils/__init__.py | 2 ++ gworksheet.py => utils/gworksheet.py | 0 4 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 utils/__init__.py rename gworksheet.py => utils/gworksheet.py (100%) diff --git a/README.md b/README.md index 3d7f751..7910e30 100644 --- a/README.md +++ b/README.md @@ -72,8 +72,8 @@ To make it easier to set up new auto-archiver sheets, the auto-auto-archiver wil Code is split into functional concepts: 1. [Archivers](archivers/) - receive a URL that they try to archive 2. [Storages](storages/) - they deal with where the archived files go -3. utilities - 1. [GWorksheet](gworksheet.py) - facilitates some of the reading/writing tasks for a Google Worksheet +3. [Utilities](utils/) + 1. [GWorksheet](utils/gworksheet.py) - facilitates some of the reading/writing tasks for a Google Worksheet ### Current Archivers ```mermaid diff --git a/auto_archive.py b/auto_archive.py index cb70c58..ba05310 100644 --- a/auto_archive.py +++ b/auto_archive.py @@ -8,7 +8,7 @@ from dotenv import load_dotenv import archivers from storages import S3Storage, S3Config -from gworksheet import GWorksheet +from utils import GWorksheet load_dotenv() diff --git a/utils/__init__.py b/utils/__init__.py new file mode 100644 index 0000000..482e144 --- /dev/null +++ b/utils/__init__.py @@ -0,0 +1,2 @@ +# we need to explicitly expose the available imports here +from .gworksheet import GWorksheet \ No newline at end of file diff --git a/gworksheet.py b/utils/gworksheet.py similarity index 100% rename from gworksheet.py rename to utils/gworksheet.py