refactor: restructure project into src layout with proper packaging

Split monolithic transcribe.py into focused modules under
src/cohere_transcribe/ (model, vad, stream, cli), move tests into
tests/, add hatchling build system and CLI entry point, remove
unused shell.nix and main.py.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-30 00:45:56 +08:00
parent cbea62b2a9
commit 8d517b3ea8
11 changed files with 225 additions and 223 deletions
+12 -2
View File
@@ -1,7 +1,7 @@
[project]
name = "cohere"
name = "cohere-transcribe"
version = "0.1.0"
description = "Add your description here"
description = "Live speech transcription using Cohere ASR"
readme = "README.md"
requires-python = ">=3.14"
dependencies = [
@@ -15,3 +15,13 @@ dependencies = [
"torch>=2.12.0",
"transformers>=5.9.0",
]
[project.scripts]
cohere-transcribe = "cohere_transcribe.cli:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.backends"
[tool.hatch.build.targets.wheel]
packages = ["src/cohere_transcribe"]