From a2b36b603d1714b91e3909fe8f42137f3db1803c Mon Sep 17 00:00:00 2001 From: Damijan Kozina Date: Sat, 19 Apr 2025 23:26:01 +0200 Subject: [PATCH 1/3] dodal BAT skipto --- AutomateFinancesWithPython.bat | 1 + categories.json | 2 +- kalkultor.py | 10 ++++++++++ main.py | 1 - notes_Damijan_20250419.txt | 13 +++++++++++++ 5 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 AutomateFinancesWithPython.bat create mode 100644 kalkultor.py create mode 100644 notes_Damijan_20250419.txt diff --git a/AutomateFinancesWithPython.bat b/AutomateFinancesWithPython.bat new file mode 100644 index 0000000..fe17dff --- /dev/null +++ b/AutomateFinancesWithPython.bat @@ -0,0 +1 @@ +streamlit run main.py diff --git a/categories.json b/categories.json index 58b38ae..19bb20c 100644 --- a/categories.json +++ b/categories.json @@ -1 +1 @@ -{"Uncategorized": [], "Shopping": ["NOON.COM", "LULU HYPERMARKET", "AMAZON AE"], "Travel": ["ETIHAD AIRWAYS"], "Insurance": ["EMIRATES INSURANCE"], "Bank Fee": ["ADCB BANK FEE"], "Subscriptions": ["NETFLIX.COM"]} \ No newline at end of file +{"Uncategorized": [], "Shopping": ["NOON.COM", "LULU HYPERMARKET", "AMAZON AE", "ETIHAD AIRWAYS"], "Travel": ["ETIHAD AIRWAYS"], "Insurance": ["EMIRATES INSURANCE"], "Bank Fee": ["ADCB BANK FEE"], "Subscriptions": ["NETFLIX.COM"], "abcd": ["BOOKING.COM"]} \ No newline at end of file diff --git a/kalkultor.py b/kalkultor.py new file mode 100644 index 0000000..c140cfd --- /dev/null +++ b/kalkultor.py @@ -0,0 +1,10 @@ +import streamlit as st + +st.title("Kalkulator BMI") + +visina = st.number_input("Vnesi višino (v cm):", 150, 220) +tezina = st.number_input("Vnesi težo (v kg):", 40, 150) + +if st.button("Izračunaj"): + bmi = tezina / ((visina / 100) ** 2) + st.write(f"Tvoj BMI je: {bmi:.2f}") diff --git a/main.py b/main.py index 17fc09b..1f1bf0d 100644 --- a/main.py +++ b/main.py @@ -7,7 +7,6 @@ st.set_page_config(page_title="Simple Finance App", page_icon="💰", layout="wide") category_file = "categories.json" - if "categories" not in st.session_state: st.session_state.categories = { "Uncategorized": [], diff --git a/notes_Damijan_20250419.txt b/notes_Damijan_20250419.txt new file mode 100644 index 0000000..38ad133 --- /dev/null +++ b/notes_Damijan_20250419.txt @@ -0,0 +1,13 @@ + +git clone https://github.com/podatkar/AutomateFinancesWithPython.git + +http://localhost:8501/ + +BASH + +mapa + +C:\DAMIJAN\Git_mapa\AutomateFinancesWithPython + +$ streamlit run main.py + From ac6eac5267d3e3e88fc0405f10e2ce878670accd Mon Sep 17 00:00:00 2001 From: Damijan Kozina Date: Sun, 20 Apr 2025 00:06:33 +0200 Subject: [PATCH 2/3] izbris kalkulator datoteke iz mape --- kalkultor.py | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 kalkultor.py diff --git a/kalkultor.py b/kalkultor.py deleted file mode 100644 index c140cfd..0000000 --- a/kalkultor.py +++ /dev/null @@ -1,10 +0,0 @@ -import streamlit as st - -st.title("Kalkulator BMI") - -visina = st.number_input("Vnesi višino (v cm):", 150, 220) -tezina = st.number_input("Vnesi težo (v kg):", 40, 150) - -if st.button("Izračunaj"): - bmi = tezina / ((visina / 100) ** 2) - st.write(f"Tvoj BMI je: {bmi:.2f}") From 27f499756a081071f5a05d0395a5ac9f6994a439 Mon Sep 17 00:00:00 2001 From: Damijan Kozina <68809929+damijankozina@users.noreply.github.com> Date: Sun, 20 Apr 2025 00:55:16 +0200 Subject: [PATCH 3/3] Added Dev Container Folder --- .devcontainer/devcontainer.json | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..e9f60af --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,33 @@ +{ + "name": "Python 3", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/python:1-3.11-bullseye", + "customizations": { + "codespaces": { + "openFiles": [ + "README.md", + "main.py" + ] + }, + "vscode": { + "settings": {}, + "extensions": [ + "ms-python.python", + "ms-python.vscode-pylance" + ] + } + }, + "updateContentCommand": "[ -f packages.txt ] && sudo apt update && sudo apt upgrade -y && sudo xargs apt install -y