diff options
-rw-r--r-- | README.md | 36 | ||||
-rw-r--r-- | requirements.txt | 6 |
2 files changed, 42 insertions, 0 deletions
@@ -4,6 +4,42 @@ This is a small collection of scripts I use to collect information about my energyconsumption. +## Set up venv + +``` +python3 -m venv venv +source venv/bin/activate +pip3 install -r requirements.txt +``` + + +## Handling pip + +``` +# Create requirements.txt +pip3 freeze > requirements.txt + +# Show outdated packages +pip3 list --outdated + +# Upgrade package +pip3 install -U name + +# Upgrade everything +pip3 install -U -r requirements.txt + +# Update requirements.txt +pip3 freeze > requirements.txt +``` + + +## Schema + +Install schema +``` +psql el < schema.sql +``` + schema.sql created with: ``` diff --git a/requirements.txt b/requirements.txt index 7ee1262..7d563b7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,10 @@ async-property==0.2.1 +certifi==2022.12.7 +charset-normalizer==3.0.1 +idna==3.4 neohubapi==1.0 psycopg2-binary==2.9.5 +requests==2.28.2 +urllib3==1.26.14 websockets==10.4 +xmltodict==0.13.0 |