From 59d21835b65c88993ee86b90eacc8b32b3878528 Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 4 Jul 2024 12:34:53 -0400 Subject: [PATCH] Move CLI files into new subdir cli/, rename cli_data_acquisition.py -> cli/main.py and custom_types.py -> cli/custom_argument_types.py (#39) --- pyproject.toml | 2 +- .../{custom_types.py => cli/custom_argument_types.py} | 0 .../{cli_data_acquisition.py => cli/main.py} | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename src/tiktok_research_api_helper/{custom_types.py => cli/custom_argument_types.py} (100%) rename src/tiktok_research_api_helper/{cli_data_acquisition.py => cli/main.py} (99%) diff --git a/pyproject.toml b/pyproject.toml index 409a6b4..f128197 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,7 +42,7 @@ Homepage = "https://github.com/CybersecurityForDemocracy/tiktok-library" Issues = "https://github.com/CybersecurityForDemocracy/tiktok-library/issues" [project.scripts] -tiktok-lib = "tiktok_research_api_helper.cli_data_acquisition:APP" +tiktok-lib = "tiktok_research_api_helper.cli.main:APP" #TODO: Add Sphinx documentation auto-generation # Libs: sphinx, sphinx-autoapi diff --git a/src/tiktok_research_api_helper/custom_types.py b/src/tiktok_research_api_helper/cli/custom_argument_types.py similarity index 100% rename from src/tiktok_research_api_helper/custom_types.py rename to src/tiktok_research_api_helper/cli/custom_argument_types.py diff --git a/src/tiktok_research_api_helper/cli_data_acquisition.py b/src/tiktok_research_api_helper/cli/main.py similarity index 99% rename from src/tiktok_research_api_helper/cli_data_acquisition.py rename to src/tiktok_research_api_helper/cli/main.py index 1503d1e..ca5a8b3 100644 --- a/src/tiktok_research_api_helper/cli_data_acquisition.py +++ b/src/tiktok_research_api_helper/cli/main.py @@ -17,7 +17,7 @@ ApiRateLimitWaitStrategy, TikTokApiClient, ) -from tiktok_research_api_helper.custom_types import ( +from tiktok_research_api_helper.cli.custom_argument_types import ( ApiCredentialsFileType, ApiRateLimitWaitStrategyType, CrawlTagType,