I recently realized I technically had enough Python knowledge to recreate the Outfit-O-Tron 5000 in Python as an interactive script. I had a lot of fun working on this and learned a lot of little tidbits that will be helpful in the future.
Here’s a screenshot:
Things I’m excited about:
- The file path and database setup. The beginning of the program asks you to enter a file path where you’d like to store your wardrobe database. The code makes sure you entered a valid path and adds a forward-slash to the end if you didn’t. Then later in the program, it looks to see whether or not you already have a wardrobe database. If you don’t, it makes one.
- The randomization. It took me a while to figure out how to do this within the Pandas dataframe setup, and I was excited when I got the program to print distinct outfits that made sense (at least in terms of pieces).
Things to work on:
- Bugs. The program is a little buggy in ways I do not understand. It seems to be having trouble switching from function to function ad nauseam. It works OK initially but if you try to return to the main menu and switch from adding to selecting, it gives you an error message from a completely different part of the program.
- Sophistication. It asks you for a lot more data than it uses to build outfits. Color-matching rules should be implemented to the selection algorithm, and it should ask you what type of weather you’re dressing for. Accessories, etc. would be cool too.
If you have Python, you can copy the script from my GitHub page and try it out yourself. Give it a try and tell me what you think! Bug identification and suggestions extremely welcome.
One note: you can’t select an outfit until you have enough items in your wardrobe database to build one! As it’s currently defined, this means at least a dress and jacket/cardigan or pants, a top, and a jacket/cardigan. I haven’t worked that particular error message/handling into the program.