From 1992771eb69ea9edbcda1f97bac165583120d40c Mon Sep 17 00:00:00 2001 From: Mark Parker Date: Thu, 14 Sep 2023 11:50:09 +0200 Subject: [PATCH] rebranding --- .github/workflows/test.yml | 2 +- README.md | 8 +++++--- majordom-va.service | 17 ----------------- pyproject.toml | 12 ++++++------ .../IO/GCloudSpeechSynthesizer.py | 0 .../IO/SileroSpeechSynthesizer.py | 0 .../IO/VoskSpeechRecognizer.py | 0 {majordom_va => stark}/IO/protocols.py | 0 .../VICore/CommandsFlow/Command.py | 0 .../VICore/CommandsFlow/CommandsContext.py | 0 .../VICore/CommandsFlow/CommandsManager.py | 0 .../VICore/CommandsFlow/Threads.py | 0 .../VICore/CommandsFlow/__init__.py | 0 .../VICore/VIObjects/VINumber.py | 0 .../VICore/VIObjects/VIObject.py | 0 .../VICore/VIObjects/VIString.py | 0 .../VICore/VIObjects/VITime.py | 0 .../VICore/VIObjects/VITimeInterval.py | 0 .../VICore/VIObjects/VIWord.py | 0 .../VICore/VIObjects/__init__.py | 0 {majordom_va => stark}/VICore/__init__.py | 0 .../VICore/patterns/Pattern.py | 0 .../VICore/patterns/__init__.py | 0 .../VICore/patterns/expressions.py | 0 {majordom_va => stark}/VoiceAssistant/Mode.py | 0 .../VoiceAssistant/VoiceAssistant.py | 0 .../VoiceAssistant/__init__.py | 0 {majordom_va => stark}/__init__.py | 0 {majordom_va => stark}/__main__.py | 0 {majordom_va => stark}/config.py | 0 .../examples/keyboard_hotkey.py | 10 +++++----- {majordom_va => stark}/features/__init__.py | 0 .../features/legacy/Media/MediaPlayer.py | 0 .../features/legacy/Media/TorrentPlayer.py | 0 .../features/legacy/Media/YoutubePlayer.py | 0 .../features/legacy/Media/__init__.py | 0 .../features/legacy/Media/playfilm.py | 0 {majordom_va => stark}/features/legacy/QA/QA.py | 0 .../features/legacy/Raspi/Raspi.py | 0 .../features/legacy/Raspi/__init__.py | 0 .../features/legacy/Raspi/gitpull.py | 0 .../features/legacy/Raspi/tv.py | 0 .../features/legacy/SmallTalk/SmallTalk.py | 0 .../features/legacy/SmallTalk/__init__.py | 0 .../features/legacy/SmallTalk/ctime.py | 0 .../features/legacy/SmallTalk/hello.py | 0 .../features/legacy/Zieit/Zieit.py | 0 .../features/legacy/Zieit/__init__.py | 0 .../features/legacy/Zieit/myshedule.py | 0 {majordom_va => stark}/features/smalltalk.py | 0 {majordom_va => stark}/general/classproperty.py | 0 {majordom_va => stark}/general/dependencies.py | 0 52 files changed, 17 insertions(+), 32 deletions(-) delete mode 100644 majordom-va.service rename {majordom_va => stark}/IO/GCloudSpeechSynthesizer.py (100%) rename {majordom_va => stark}/IO/SileroSpeechSynthesizer.py (100%) rename {majordom_va => stark}/IO/VoskSpeechRecognizer.py (100%) rename {majordom_va => stark}/IO/protocols.py (100%) rename {majordom_va => stark}/VICore/CommandsFlow/Command.py (100%) rename {majordom_va => stark}/VICore/CommandsFlow/CommandsContext.py (100%) rename {majordom_va => stark}/VICore/CommandsFlow/CommandsManager.py (100%) rename {majordom_va => stark}/VICore/CommandsFlow/Threads.py (100%) rename {majordom_va => stark}/VICore/CommandsFlow/__init__.py (100%) rename {majordom_va => stark}/VICore/VIObjects/VINumber.py (100%) rename {majordom_va => stark}/VICore/VIObjects/VIObject.py (100%) rename {majordom_va => stark}/VICore/VIObjects/VIString.py (100%) rename {majordom_va => stark}/VICore/VIObjects/VITime.py (100%) rename {majordom_va => stark}/VICore/VIObjects/VITimeInterval.py (100%) rename {majordom_va => stark}/VICore/VIObjects/VIWord.py (100%) rename {majordom_va => stark}/VICore/VIObjects/__init__.py (100%) rename {majordom_va => stark}/VICore/__init__.py (100%) rename {majordom_va => stark}/VICore/patterns/Pattern.py (100%) rename {majordom_va => stark}/VICore/patterns/__init__.py (100%) rename {majordom_va => stark}/VICore/patterns/expressions.py (100%) rename {majordom_va => stark}/VoiceAssistant/Mode.py (100%) rename {majordom_va => stark}/VoiceAssistant/VoiceAssistant.py (100%) rename {majordom_va => stark}/VoiceAssistant/__init__.py (100%) rename {majordom_va => stark}/__init__.py (100%) rename {majordom_va => stark}/__main__.py (100%) rename {majordom_va => stark}/config.py (100%) rename {majordom_va => stark}/examples/keyboard_hotkey.py (77%) rename {majordom_va => stark}/features/__init__.py (100%) rename {majordom_va => stark}/features/legacy/Media/MediaPlayer.py (100%) rename {majordom_va => stark}/features/legacy/Media/TorrentPlayer.py (100%) rename {majordom_va => stark}/features/legacy/Media/YoutubePlayer.py (100%) rename {majordom_va => stark}/features/legacy/Media/__init__.py (100%) rename {majordom_va => stark}/features/legacy/Media/playfilm.py (100%) rename {majordom_va => stark}/features/legacy/QA/QA.py (100%) rename {majordom_va => stark}/features/legacy/Raspi/Raspi.py (100%) rename {majordom_va => stark}/features/legacy/Raspi/__init__.py (100%) rename {majordom_va => stark}/features/legacy/Raspi/gitpull.py (100%) rename {majordom_va => stark}/features/legacy/Raspi/tv.py (100%) rename {majordom_va => stark}/features/legacy/SmallTalk/SmallTalk.py (100%) rename {majordom_va => stark}/features/legacy/SmallTalk/__init__.py (100%) rename {majordom_va => stark}/features/legacy/SmallTalk/ctime.py (100%) rename {majordom_va => stark}/features/legacy/SmallTalk/hello.py (100%) rename {majordom_va => stark}/features/legacy/Zieit/Zieit.py (100%) rename {majordom_va => stark}/features/legacy/Zieit/__init__.py (100%) rename {majordom_va => stark}/features/legacy/Zieit/myshedule.py (100%) rename {majordom_va => stark}/features/smalltalk.py (100%) rename {majordom_va => stark}/general/classproperty.py (100%) rename {majordom_va => stark}/general/dependencies.py (100%) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 385df30..46ec942 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,4 +30,4 @@ jobs: with: to: ${{ secrets.TG_CHAT_ID }} token: ${{ secrets.TG_BOT_TOKEN }} - message: ❌ MajorDom-VA tests failed on branch ${{ github.ref }} \ No newline at end of file + message: ❌ S.T.A.R.K. push tests failed on branch ${{ github.ref }} diff --git a/README.md b/README.md index 3280582..e2279c8 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ -# MajorDom VA +# S.T.A.R.K. -## Features: +**Speech and Text Algorithmic Recognition Kit** -- \ No newline at end of file +Modern, advanced, and fast framework for creating natural language (especially voice) interfaces. Like [FastAPI](https://fastapi.tiangolo.com/), but with speech instead of http. + +Check [docs](https://markparker5.github.io/stark) for more information. diff --git a/majordom-va.service b/majordom-va.service deleted file mode 100644 index 242d9fb..0000000 --- a/majordom-va.service +++ /dev/null @@ -1,17 +0,0 @@ -[Unit] -Description=MajorDom VA -After=network.target -StartLimitIntervalSec=0 - -[Service] -Type=simple -Restart=always -RestartSec=1 -User=admin -WorkingDirectory=/home/admin/MajorDom-VA/ -ExecStart=python3.10 main.py -StandardOutput=append:/home/admin/logs/majordom-va.log -Environment=PYTHONUNBUFFERED=1 - -[Install] -WantedBy=multi-user.target diff --git a/pyproject.toml b/pyproject.toml index dd70e1e..ccf2bf0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,11 +1,11 @@ [tool.poetry] -name = "majordom-va" +name = "stark" version = "0.1.0" description = "" authors = ["MarkParker5 "] license = "CC BY-NC-ND 4.0" readme = "README.md" -packages = [{include = "majordom_va"}] +packages = [{include = "stark"}] [tool.poetry.dependencies] python = "^3.10" @@ -34,13 +34,13 @@ build-backend = "poetry.core.masonry.api" [tool.pytest.ini_options] pythonpath = [ - "majordom_va", + "stark", ] [tool.mypy] ignore_missing_imports = true exclude = [ - "majordom_va/features/legacy", - "majordom_va/VICore/VIObjects/VITime.*", - "majordom_va/VICore/VIObjects/VINumber.*", + "stark/features/legacy", + "stark/VICore/VIObjects/VITime.*", + "stark/VICore/VIObjects/VINumber.*", ] diff --git a/majordom_va/IO/GCloudSpeechSynthesizer.py b/stark/IO/GCloudSpeechSynthesizer.py similarity index 100% rename from majordom_va/IO/GCloudSpeechSynthesizer.py rename to stark/IO/GCloudSpeechSynthesizer.py diff --git a/majordom_va/IO/SileroSpeechSynthesizer.py b/stark/IO/SileroSpeechSynthesizer.py similarity index 100% rename from majordom_va/IO/SileroSpeechSynthesizer.py rename to stark/IO/SileroSpeechSynthesizer.py diff --git a/majordom_va/IO/VoskSpeechRecognizer.py b/stark/IO/VoskSpeechRecognizer.py similarity index 100% rename from majordom_va/IO/VoskSpeechRecognizer.py rename to stark/IO/VoskSpeechRecognizer.py diff --git a/majordom_va/IO/protocols.py b/stark/IO/protocols.py similarity index 100% rename from majordom_va/IO/protocols.py rename to stark/IO/protocols.py diff --git a/majordom_va/VICore/CommandsFlow/Command.py b/stark/VICore/CommandsFlow/Command.py similarity index 100% rename from majordom_va/VICore/CommandsFlow/Command.py rename to stark/VICore/CommandsFlow/Command.py diff --git a/majordom_va/VICore/CommandsFlow/CommandsContext.py b/stark/VICore/CommandsFlow/CommandsContext.py similarity index 100% rename from majordom_va/VICore/CommandsFlow/CommandsContext.py rename to stark/VICore/CommandsFlow/CommandsContext.py diff --git a/majordom_va/VICore/CommandsFlow/CommandsManager.py b/stark/VICore/CommandsFlow/CommandsManager.py similarity index 100% rename from majordom_va/VICore/CommandsFlow/CommandsManager.py rename to stark/VICore/CommandsFlow/CommandsManager.py diff --git a/majordom_va/VICore/CommandsFlow/Threads.py b/stark/VICore/CommandsFlow/Threads.py similarity index 100% rename from majordom_va/VICore/CommandsFlow/Threads.py rename to stark/VICore/CommandsFlow/Threads.py diff --git a/majordom_va/VICore/CommandsFlow/__init__.py b/stark/VICore/CommandsFlow/__init__.py similarity index 100% rename from majordom_va/VICore/CommandsFlow/__init__.py rename to stark/VICore/CommandsFlow/__init__.py diff --git a/majordom_va/VICore/VIObjects/VINumber.py b/stark/VICore/VIObjects/VINumber.py similarity index 100% rename from majordom_va/VICore/VIObjects/VINumber.py rename to stark/VICore/VIObjects/VINumber.py diff --git a/majordom_va/VICore/VIObjects/VIObject.py b/stark/VICore/VIObjects/VIObject.py similarity index 100% rename from majordom_va/VICore/VIObjects/VIObject.py rename to stark/VICore/VIObjects/VIObject.py diff --git a/majordom_va/VICore/VIObjects/VIString.py b/stark/VICore/VIObjects/VIString.py similarity index 100% rename from majordom_va/VICore/VIObjects/VIString.py rename to stark/VICore/VIObjects/VIString.py diff --git a/majordom_va/VICore/VIObjects/VITime.py b/stark/VICore/VIObjects/VITime.py similarity index 100% rename from majordom_va/VICore/VIObjects/VITime.py rename to stark/VICore/VIObjects/VITime.py diff --git a/majordom_va/VICore/VIObjects/VITimeInterval.py b/stark/VICore/VIObjects/VITimeInterval.py similarity index 100% rename from majordom_va/VICore/VIObjects/VITimeInterval.py rename to stark/VICore/VIObjects/VITimeInterval.py diff --git a/majordom_va/VICore/VIObjects/VIWord.py b/stark/VICore/VIObjects/VIWord.py similarity index 100% rename from majordom_va/VICore/VIObjects/VIWord.py rename to stark/VICore/VIObjects/VIWord.py diff --git a/majordom_va/VICore/VIObjects/__init__.py b/stark/VICore/VIObjects/__init__.py similarity index 100% rename from majordom_va/VICore/VIObjects/__init__.py rename to stark/VICore/VIObjects/__init__.py diff --git a/majordom_va/VICore/__init__.py b/stark/VICore/__init__.py similarity index 100% rename from majordom_va/VICore/__init__.py rename to stark/VICore/__init__.py diff --git a/majordom_va/VICore/patterns/Pattern.py b/stark/VICore/patterns/Pattern.py similarity index 100% rename from majordom_va/VICore/patterns/Pattern.py rename to stark/VICore/patterns/Pattern.py diff --git a/majordom_va/VICore/patterns/__init__.py b/stark/VICore/patterns/__init__.py similarity index 100% rename from majordom_va/VICore/patterns/__init__.py rename to stark/VICore/patterns/__init__.py diff --git a/majordom_va/VICore/patterns/expressions.py b/stark/VICore/patterns/expressions.py similarity index 100% rename from majordom_va/VICore/patterns/expressions.py rename to stark/VICore/patterns/expressions.py diff --git a/majordom_va/VoiceAssistant/Mode.py b/stark/VoiceAssistant/Mode.py similarity index 100% rename from majordom_va/VoiceAssistant/Mode.py rename to stark/VoiceAssistant/Mode.py diff --git a/majordom_va/VoiceAssistant/VoiceAssistant.py b/stark/VoiceAssistant/VoiceAssistant.py similarity index 100% rename from majordom_va/VoiceAssistant/VoiceAssistant.py rename to stark/VoiceAssistant/VoiceAssistant.py diff --git a/majordom_va/VoiceAssistant/__init__.py b/stark/VoiceAssistant/__init__.py similarity index 100% rename from majordom_va/VoiceAssistant/__init__.py rename to stark/VoiceAssistant/__init__.py diff --git a/majordom_va/__init__.py b/stark/__init__.py similarity index 100% rename from majordom_va/__init__.py rename to stark/__init__.py diff --git a/majordom_va/__main__.py b/stark/__main__.py similarity index 100% rename from majordom_va/__main__.py rename to stark/__main__.py diff --git a/majordom_va/config.py b/stark/config.py similarity index 100% rename from majordom_va/config.py rename to stark/config.py diff --git a/majordom_va/examples/keyboard_hotkey.py b/stark/examples/keyboard_hotkey.py similarity index 77% rename from majordom_va/examples/keyboard_hotkey.py rename to stark/examples/keyboard_hotkey.py index e882687..8116c34 100644 --- a/majordom_va/examples/keyboard_hotkey.py +++ b/stark/examples/keyboard_hotkey.py @@ -1,11 +1,11 @@ import os from pynput.keyboard import Key, Listener -from majordom_va.VICore import CommandsContext -from majordom_va.VoiceAssistant import VoiceAssistant, Mode -from majordom_va.IO.VoskSpeechRecognizer import VoskSpeechRecognizer -from majordom_va.IO.SileroSpeechSynthesizer import SileroSpeechSynthesizer -from majordom_va.features import default +from stark.VICore import CommandsContext +from stark.VoiceAssistant import VoiceAssistant, Mode +from stark.IO.VoskSpeechRecognizer import VoskSpeechRecognizer +from stark.IO.SileroSpeechSynthesizer import SileroSpeechSynthesizer +from stark.features import default cm = CommandsContext(commands_manager = default) diff --git a/majordom_va/features/__init__.py b/stark/features/__init__.py similarity index 100% rename from majordom_va/features/__init__.py rename to stark/features/__init__.py diff --git a/majordom_va/features/legacy/Media/MediaPlayer.py b/stark/features/legacy/Media/MediaPlayer.py similarity index 100% rename from majordom_va/features/legacy/Media/MediaPlayer.py rename to stark/features/legacy/Media/MediaPlayer.py diff --git a/majordom_va/features/legacy/Media/TorrentPlayer.py b/stark/features/legacy/Media/TorrentPlayer.py similarity index 100% rename from majordom_va/features/legacy/Media/TorrentPlayer.py rename to stark/features/legacy/Media/TorrentPlayer.py diff --git a/majordom_va/features/legacy/Media/YoutubePlayer.py b/stark/features/legacy/Media/YoutubePlayer.py similarity index 100% rename from majordom_va/features/legacy/Media/YoutubePlayer.py rename to stark/features/legacy/Media/YoutubePlayer.py diff --git a/majordom_va/features/legacy/Media/__init__.py b/stark/features/legacy/Media/__init__.py similarity index 100% rename from majordom_va/features/legacy/Media/__init__.py rename to stark/features/legacy/Media/__init__.py diff --git a/majordom_va/features/legacy/Media/playfilm.py b/stark/features/legacy/Media/playfilm.py similarity index 100% rename from majordom_va/features/legacy/Media/playfilm.py rename to stark/features/legacy/Media/playfilm.py diff --git a/majordom_va/features/legacy/QA/QA.py b/stark/features/legacy/QA/QA.py similarity index 100% rename from majordom_va/features/legacy/QA/QA.py rename to stark/features/legacy/QA/QA.py diff --git a/majordom_va/features/legacy/Raspi/Raspi.py b/stark/features/legacy/Raspi/Raspi.py similarity index 100% rename from majordom_va/features/legacy/Raspi/Raspi.py rename to stark/features/legacy/Raspi/Raspi.py diff --git a/majordom_va/features/legacy/Raspi/__init__.py b/stark/features/legacy/Raspi/__init__.py similarity index 100% rename from majordom_va/features/legacy/Raspi/__init__.py rename to stark/features/legacy/Raspi/__init__.py diff --git a/majordom_va/features/legacy/Raspi/gitpull.py b/stark/features/legacy/Raspi/gitpull.py similarity index 100% rename from majordom_va/features/legacy/Raspi/gitpull.py rename to stark/features/legacy/Raspi/gitpull.py diff --git a/majordom_va/features/legacy/Raspi/tv.py b/stark/features/legacy/Raspi/tv.py similarity index 100% rename from majordom_va/features/legacy/Raspi/tv.py rename to stark/features/legacy/Raspi/tv.py diff --git a/majordom_va/features/legacy/SmallTalk/SmallTalk.py b/stark/features/legacy/SmallTalk/SmallTalk.py similarity index 100% rename from majordom_va/features/legacy/SmallTalk/SmallTalk.py rename to stark/features/legacy/SmallTalk/SmallTalk.py diff --git a/majordom_va/features/legacy/SmallTalk/__init__.py b/stark/features/legacy/SmallTalk/__init__.py similarity index 100% rename from majordom_va/features/legacy/SmallTalk/__init__.py rename to stark/features/legacy/SmallTalk/__init__.py diff --git a/majordom_va/features/legacy/SmallTalk/ctime.py b/stark/features/legacy/SmallTalk/ctime.py similarity index 100% rename from majordom_va/features/legacy/SmallTalk/ctime.py rename to stark/features/legacy/SmallTalk/ctime.py diff --git a/majordom_va/features/legacy/SmallTalk/hello.py b/stark/features/legacy/SmallTalk/hello.py similarity index 100% rename from majordom_va/features/legacy/SmallTalk/hello.py rename to stark/features/legacy/SmallTalk/hello.py diff --git a/majordom_va/features/legacy/Zieit/Zieit.py b/stark/features/legacy/Zieit/Zieit.py similarity index 100% rename from majordom_va/features/legacy/Zieit/Zieit.py rename to stark/features/legacy/Zieit/Zieit.py diff --git a/majordom_va/features/legacy/Zieit/__init__.py b/stark/features/legacy/Zieit/__init__.py similarity index 100% rename from majordom_va/features/legacy/Zieit/__init__.py rename to stark/features/legacy/Zieit/__init__.py diff --git a/majordom_va/features/legacy/Zieit/myshedule.py b/stark/features/legacy/Zieit/myshedule.py similarity index 100% rename from majordom_va/features/legacy/Zieit/myshedule.py rename to stark/features/legacy/Zieit/myshedule.py diff --git a/majordom_va/features/smalltalk.py b/stark/features/smalltalk.py similarity index 100% rename from majordom_va/features/smalltalk.py rename to stark/features/smalltalk.py diff --git a/majordom_va/general/classproperty.py b/stark/general/classproperty.py similarity index 100% rename from majordom_va/general/classproperty.py rename to stark/general/classproperty.py diff --git a/majordom_va/general/dependencies.py b/stark/general/dependencies.py similarity index 100% rename from majordom_va/general/dependencies.py rename to stark/general/dependencies.py