From 52b483674c2a6ffa8d192ff1b599be1ac1ecc82a Mon Sep 17 00:00:00 2001 From: retoor Date: Thu, 2 Jan 2025 17:21:56 +0100 Subject: [PATCH] Initial commit. --- Makefile | 4 ++-- README.md | 4 ++-- setup.cfg | 10 ++++++---- src/{boeh => metriki}/__init__.py | 0 src/{boeh => metriki}/__main__.py | 0 src/metriki/app.py | 0 src/{boeh => metriki}/env.py | 0 7 files changed, 10 insertions(+), 8 deletions(-) rename src/{boeh => metriki}/__init__.py (100%) rename src/{boeh => metriki}/__main__.py (100%) create mode 100644 src/metriki/app.py rename src/{boeh => metriki}/env.py (100%) diff --git a/Makefile b/Makefile index 6f44c5b..64dec34 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ BIN = ./.venv/bin/ PYTHON = ./.venv/bin/python PIP = ./.venv/bin/pip -APP_NAME=boeh +APP_NAME=metriki all: install build @@ -24,5 +24,5 @@ build: $(PYTHON) -m build run: - $(BIN)$(APP_NAME) --port=3028 + $(BIN)$(APP_NAME).serve --port=4000 diff --git a/README.md b/README.md index b665fb1..ee00fee 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Boeh +# Metriki ## Description -Matrix bot written in Python that says boeh everytime that Joe talks. He knows why. \ No newline at end of file +System for advanced metrics. diff --git a/setup.cfg b/setup.cfg index 42a92f3..62bcc95 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,7 +1,7 @@ [metadata] -name = boeh +name = metriki version = 1.0.0 -description = Service that says boeh when Joe talks. +description = Web metrics author = retoor author_email = retoor@molodetz.nl license = MIT @@ -15,11 +15,13 @@ package_dir = python_requires = >=3.7 install_requires = app @ git+https://retoor.molodetz.nl/retoor/app - matrix-nio + requests [options.packages.find] where = src [options.entry_points] console_scripts = - boeh = boeh.__main__:main + metrici.serve = metriki.__main__:main + metrici.stats = metriki.stats:main + diff --git a/src/boeh/__init__.py b/src/metriki/__init__.py similarity index 100% rename from src/boeh/__init__.py rename to src/metriki/__init__.py diff --git a/src/boeh/__main__.py b/src/metriki/__main__.py similarity index 100% rename from src/boeh/__main__.py rename to src/metriki/__main__.py diff --git a/src/metriki/app.py b/src/metriki/app.py new file mode 100644 index 0000000..e69de29 diff --git a/src/boeh/env.py b/src/metriki/env.py similarity index 100% rename from src/boeh/env.py rename to src/metriki/env.py