Skip to content

codepath/genai-ise-5.2.2-drycode-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[ISE] In-Class Activity 5.2.2 - DRY Code

In this activity, you'll be looking at a multipage Streamlit app with a bunch of redundant code. Your task is to abstract out as much of that redundant code as you can so that the app still works, but changing things (e.g. the company address, or the login method) doesn't have to happen on every page.

Installation

Create a copy of this repository with the "Use this template" button in the upper right on Github.

Clone your copy to your local workspace. Then:

cd ise-5.2.2-dry-code # cd into directory
python -m venv venv # initialize venv
source venv/bin/activate # activate venv
pip install -r requirements.txt # install libraries

Running

Run the app with

streamlit run app.py

Tests

Want to make sure you haven't broken anything? Run the tests with

pytest tests/

About

ise-5.2.2-dry-code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages