From f5cae5fd2188a2913b734de40507d6f40d7143c7 Mon Sep 17 00:00:00 2001 From: "Poornachandra.A.N" Date: Sat, 27 Dec 2025 22:53:28 +0530 Subject: [PATCH 1/6] update version --- packages.txt | 6 ------ poetry.lock | 2 +- pyproject.toml | 2 +- src/features/greeting.py | 1 - 4 files changed, 2 insertions(+), 9 deletions(-) delete mode 100644 packages.txt diff --git a/packages.txt b/packages.txt deleted file mode 100644 index a52e261..0000000 --- a/packages.txt +++ /dev/null @@ -1,6 +0,0 @@ -libgl1-mesa-glx -libglib2.0-0 -ffmpeg -tesseract-ocr -libsm6 -libxext6 diff --git a/poetry.lock b/poetry.lock index 49f42eb..f74b406 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 2.1.4 and should not be changed by hand. +# This file is automatically @generated by Poetry 2.2.1 and should not be changed by hand. [[package]] name = "altair" diff --git a/pyproject.toml b/pyproject.toml index b4afef9..4189c5c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "sample" -version = "0.0.3" +version = "0.0.4" description = "A package template for Recursive zero." authors = [{ name = "sample", email = "recursivezero@outlook.com" }] license = "MIT" diff --git a/src/features/greeting.py b/src/features/greeting.py index 41c8b18..f580f9a 100644 --- a/src/features/greeting.py +++ b/src/features/greeting.py @@ -5,7 +5,6 @@ DEFAULT_GREETING ) from utils.helper import normalize_name -from utils.faq import faq_page def greet(): From 5edaade3d93f7d836564a3086a9d7658e7032e39 Mon Sep 17 00:00:00 2001 From: "Poornachandra.A.N" Date: Sat, 27 Dec 2025 23:05:19 +0530 Subject: [PATCH 2/6] change key words --- .vscode/dictionaries/project-words.txt | 2 +- src/api/fast_api.py | 2 +- src/sample/__main__.py | 20 ++++++++++---------- src/sample/cli.py | 8 ++++---- templates/share.html | 12 ++++++------ 5 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.vscode/dictionaries/project-words.txt b/.vscode/dictionaries/project-words.txt index d8170c7..0b04dde 100755 --- a/.vscode/dictionaries/project-words.txt +++ b/.vscode/dictionaries/project-words.txt @@ -83,7 +83,7 @@ stefanzweifel streamlit Succesfully sucess -Threadzip +Sample tobytes torchvision txtl diff --git a/src/api/fast_api.py b/src/api/fast_api.py index 8dd2c16..0d56f34 100644 --- a/src/api/fast_api.py +++ b/src/api/fast_api.py @@ -7,7 +7,7 @@ app = FastAPI( title="sample API", - description="API endpoints for Threadzip with rate limiting", + description="API endpoints for Sample with rate limiting", version=__version__, redoc_url="/redoc", swagger_ui_parameters={ diff --git a/src/sample/__main__.py b/src/sample/__main__.py index 5209a5f..c8ff3c2 100644 --- a/src/sample/__main__.py +++ b/src/sample/__main__.py @@ -11,10 +11,10 @@ @click.group(invoke_without_command=True) -@click.option("--version", is_flag=True, help="Show the Threadzip version and exit.") +@click.option("--version", is_flag=True, help="Show the Sample version and exit.") @click.pass_context def cli(ctx, version): - """Threadzip command-line tools.""" + """Sample command-line tools.""" if version: click.echo(__version__) ctx.exit() @@ -22,13 +22,13 @@ def cli(ctx, version): @cli.command() def dev(): - """Run the Threadzip Streamlit app.""" + """Run the Sample Streamlit app.""" main() @cli.command() def api(): - """Run the Threadzip FastAPI backend.""" + """Run the Sample FastAPI backend.""" from api.fast_api import start start() @@ -38,16 +38,16 @@ def main(): """ Entrypoint for the Streamlit 'dev' app. """ - print("🏷️ Threadzip version:", __version__) + print("🏷️ Sample version:", __version__) logging.info("Starting sample dev script...") # Paths - threadzip_dir = Path(__file__).resolve().parent - dev_root = threadzip_dir.parent # src/ - wheel_root = threadzip_dir.parent # same in wheel + Sample_dir = Path(__file__).resolve().parent + dev_root = Sample_dir.parent # src/ + wheel_root = Sample_dir.parent # same in wheel # Add correct root to sys.path - if "site-packages" in str(threadzip_dir): # running from wheel + if "site-packages" in str(Sample_dir): # running from wheel if str(wheel_root) not in sys.path: sys.path.append(str(wheel_root)) logging.info(f"Added wheel root to sys.path: {wheel_root}") @@ -57,7 +57,7 @@ def main(): logging.info(f"Added dev src root to sys.path: {dev_root}") # Locate streamlit_app.py - streamlit_app_path = threadzip_dir / "streamlit_app.py" + streamlit_app_path = Sample_dir / "streamlit_app.py" logging.info(f"Streamlit app path: {streamlit_app_path}") if not streamlit_app_path.exists(): diff --git a/src/sample/cli.py b/src/sample/cli.py index 0d7f854..93d1a1f 100644 --- a/src/sample/cli.py +++ b/src/sample/cli.py @@ -3,10 +3,10 @@ @click.group(invoke_without_command=True) -@click.option("--version", is_flag=True, help="Show the Threadzip version and exit.") +@click.option("--version", is_flag=True, help="Show the Sample version and exit.") @click.pass_context def cli(ctx, version): - """Threadzip command-line tools.""" + """Sample command-line tools.""" if version: click.echo(__version__) ctx.exit() @@ -14,7 +14,7 @@ def cli(ctx, version): @cli.command() def dev(): - """Run the Threadzip Streamlit app.""" + """Run the Sample Streamlit app.""" from sample.__main__ import main main() @@ -22,7 +22,7 @@ def dev(): @cli.command() def api(): - """Run the Threadzip FastAPI backend.""" + """Run the Sample FastAPI backend.""" from api.fast_api import start start() diff --git a/templates/share.html b/templates/share.html index eb22471..a6014fc 100644 --- a/templates/share.html +++ b/templates/share.html @@ -6,16 +6,16 @@ - + - + - + - - Threadzip Lab - AI Fabric Analysis + + Sample Lab - AI Fabric Analysis