From a9fab4f085c1c349d34d542a0660a2edce059d64 Mon Sep 17 00:00:00 2001 From: WorldTeacher <41587052+WorldTeacher@users.noreply.github.com> Date: Thu, 25 Jan 2024 14:52:31 +0100 Subject: [PATCH] first commit to get order back --- .gitignore | 224 +++++++++++++++++++++++++++++++++++++++++++++++ LICENSE | 20 +---- README.md | 5 +- config.yaml | 79 +++++++++++++++++ main.py | 8 ++ requirements.txt | Bin 0 -> 1598 bytes 6 files changed, 318 insertions(+), 18 deletions(-) create mode 100644 .gitignore create mode 100644 config.yaml create mode 100644 main.py create mode 100644 requirements.txt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c0621c1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,224 @@ +# ---> Python +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ +cover/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +.pybuilder/ +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +# For a library or package, you might want to ignore these files since the code is +# intended to run in multiple environments; otherwise, check them in: +# .python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# poetry +# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. +# This is especially recommended for binary packages to ensure reproducibility, and is more +# commonly ignored for libraries. +# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control +#poetry.lock + +# pdm +# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. +#pdm.lock +# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it +# in version control. +# https://pdm.fming.dev/#use-with-ide +.pdm.toml + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm +__pypackages__/ + +# Celery stuff +celerybeat-schedule +celerybeat.pid + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +# pytype static type analyzer +.pytype/ + +# Cython debug symbols +cython_debug/ + +# PyCharm +# JetBrains specific template is maintained in a separate JetBrains.gitignore that can +# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore +# and can be added to the global gitignore or merged into this file. For a more nuclear +# option (not recommended) you can uncomment the following to ignore the entire idea folder. +#.idea/ + +# ---> Qt +# C++ objects and libs +*.slo +*.lo +*.o +*.a +*.la +*.lai +*.so +*.so.* +*.dll +*.dylib + +# Qt-es +object_script.*.Release +object_script.*.Debug +*_plugin_import.cpp +/.qmake.cache +/.qmake.stash +*.pro.user +*.pro.user.* +*.qbs.user +*.qbs.user.* +*.moc +moc_*.cpp +moc_*.h +qrc_*.cpp +ui_*.h +*.qmlc +*.jsc +Makefile* +*build-* +*.qm +*.prl + +# Qt unit tests +target_wrapper.* + +# QtCreator +*.autosave + +# QtCreator Qml +*.qmlproject.user +*.qmlproject.user.* + +# QtCreator CMake +CMakeLists.txt.user* + +# QtCreator 4.8< compilation database +compile_commands.json + +# QtCreator local machine specific files for imported projects +*creator.user* + +*_qmlcache.qrc + + +.history +depend +output/output/LOGtoJSON.exe + +.pytest_cache \ No newline at end of file diff --git a/LICENSE b/LICENSE index 33f39c8..2071b23 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,9 @@ MIT License -Copyright (c) 2024 WorldTeacher +Copyright (c) -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md index 1a3d6ea..27a67a7 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ -# SemesterapparatsManager -A software created to manage media +# Semesterapparate + +this repo will be used to create a GUI application to manage the semesterapparate of the PH Freiburg. \ No newline at end of file diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..0814e23 --- /dev/null +++ b/config.yaml @@ -0,0 +1,79 @@ +default_apps: true +save_path: C:\Users\aky547\Desktop\testfolder\ +custom_applications: +- name: Text files + extensions: + - txt + - md + - rst + application: Notepad +- name: CSV files + extensions: + - csv + application: Excel +- name: pdf files + extensions: + - pdf + application: Firefox +- name: Word files + extensions: + - docx + - doc + application: Word +- name: Excel files + extensions: + - xlsx + - xls + application: Excel +database: + name: database.db + path: C:\Users\aky547\Desktop\semap\db\ +subjects: +- name: Biologie + aliases: null +- name: Chemie + aliases: null +- name: Deutsch + aliases: null +- name: Englisch + aliases: null +- name: Erziehungswissenschaft + aliases: null +- name: Französisch + aliases: null +- name: Geographie + aliases: null +- name: Geschichte + aliases: null +- name: Gesundheitspädagogik + aliases: null +- name: Haushalt / Textil + aliases: null +- name: Kunst + aliases: null +- name: Mathematik / Informatik + aliases: null +- name: Medien in der Bildung + aliases: null +- name: Musik + aliases: null +- name: Philosophie + aliases: null +- name: Physik + aliases: null +- name: Politikwissenschaft + aliases: null +- name: Prorektorat Lehre und Studium + aliases: null +- name: Psychologie + aliases: null +- name: Soziologie + aliases: null +- name: Sport + aliases: null +- name: Technik + aliases: null +- name: Theologie + aliases: null +- name: Wirtschaftslehre + aliases: null diff --git a/main.py b/main.py new file mode 100644 index 0000000..90d21cd --- /dev/null +++ b/main.py @@ -0,0 +1,8 @@ +from src.logic import userInterface + + + + + +if __name__ == '__main__': + userInterface.launch_gui() \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..e3da7204f6e483e7e07a760a837b3f91ec4bc279 GIT binary patch literal 1598 zcma)+Pj4Dg48(n|)Q>`y1wz_G4!t*0d+aG%D3BHVFPlw6^5NUg&)&x)oGSDnSTOkymIJHfeD zJR&IN%$;W=o?&9C{N`NIxo(lE@b8-m`Jjx0c(%gNq^r|^jh@xg@a8;Z<|ZfccZ!27 z9hmXYBR8B7AVD4tGTeVm5;`$2lzK_?^xYsAo!g=;r zXQr1pp7h~W)W8gpJ0b497CM@+h5Hem`!4j}s|Fua5gpG{0V6dr{kdW^(Vdt