From 184de8576fddb708cf33ea29a5909b0a5de826ed Mon Sep 17 00:00:00 2001 From: qhga Date: Thu, 4 Aug 2022 13:22:49 +0200 Subject: [PATCH] init --- README.md | 3 +++ src/__init__.py | 2 ++ src/__main__.py | 4 ++++ src/databases.py | 3 +++ src/dbs/__init__.py | 0 src/dbs/db.py | 3 +++ src/test_queueing_model.py | 6 ++++++ 7 files changed, 21 insertions(+) create mode 100644 README.md create mode 100644 src/__init__.py create mode 100644 src/__main__.py create mode 100644 src/databases.py create mode 100644 src/dbs/__init__.py create mode 100644 src/dbs/db.py create mode 100644 src/test_queueing_model.py diff --git a/README.md b/README.md new file mode 100644 index 0000000..85b90f1 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# HOWTO + +Run like this: `python -m src` \ No newline at end of file diff --git a/src/__init__.py b/src/__init__.py new file mode 100644 index 0000000..67f7fe9 --- /dev/null +++ b/src/__init__.py @@ -0,0 +1,2 @@ + +print("INIT") \ No newline at end of file diff --git a/src/__main__.py b/src/__main__.py new file mode 100644 index 0000000..80dc13e --- /dev/null +++ b/src/__main__.py @@ -0,0 +1,4 @@ +from .test_queueing_model import doSmth + +print("MAIN") +doSmth() # Funktionsimport diff --git a/src/databases.py b/src/databases.py new file mode 100644 index 0000000..272168d --- /dev/null +++ b/src/databases.py @@ -0,0 +1,3 @@ +class PostgresDB: + def __init__(self): + print("POSTGRES") \ No newline at end of file diff --git a/src/dbs/__init__.py b/src/dbs/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/dbs/db.py b/src/dbs/db.py new file mode 100644 index 0000000..0666e82 --- /dev/null +++ b/src/dbs/db.py @@ -0,0 +1,3 @@ +class DB: + def __init__(self): + print("DB") \ No newline at end of file diff --git a/src/test_queueing_model.py b/src/test_queueing_model.py new file mode 100644 index 0000000..d52d564 --- /dev/null +++ b/src/test_queueing_model.py @@ -0,0 +1,6 @@ +from .databases import PostgresDB +from .dbs.db import DB + +def doSmth(): + p = PostgresDB() + d = DB() \ No newline at end of file