1. sudo apt-get install python3-pip
  2. pip3 install pipenv
  3. cd myproject
  4. python3 -m venv env e poi source env/bin/activate
  5. pip3 install gsheetsdb 5 . a) se è presente requirements.txt installare e duenque: pip3 install -r requirements.txt
  6. streamlit hello 6.a) nel caso non si sia creato il gitignore git init potrebbe dare un errore di overflow per cui rimuovere il file con rm -rf .git
  1. b) creare il file .gitignore ed inserire venv 6.c) creare .streamlit/secrets.toml
  2. d) inserire il format seguente come # SPREADSHEET_ID = "1Y6_89ick_tTQeVh4OGP44pXOrexZw1ASnlES8-s_1zY"
  1. git init

Strutturare la repository con git 7) creare nella root il file .gitignore ed inserire

Vedere aqui: https://github.com/streamlit/streamlit

Google Sheet: Vedere qui: https://shritam.medium.com/google-sheets-a-database-c4e3fef6e0bc

  1. pip3 install gspread oauth2client gsheetsdb

  2. streamlit run myfile.py

GH: a) inizializzare git in VSC b) effettuare il committ c) creare nella root il file .gitignore ed inserire env e .git PROVA PULL d) a volte va in chash git - Quindi utilizzare il seguente esempio error: Il merge non è stato concluso (esiste MERGE_HEAD). suggerimento: Esegui il commit delle modifiche prima di eseguire il merge. fatal: Esco a causa di un merge non terminato. Quindi porvare con git merge --abort e poi nuovamente con git pull

Vedere rif regex: https://pythex.org/ e https://regex101.com/r/CSJbzT/1 Anche se sembra funzionare non funziona!!: https://regex101.com/r/SZ2k0F/1

Ora faccio il push Ora faccio il pull