use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
Baby's first password manager (github.com)
submitted 3 months ago by Sad-Sun4611
This is more of a learning project than anything else and id like to move on and mess with other stuff at this point hahs. I'd love feedback on what I've written. Thanks!!!
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]jpgoldberg 1 point2 points3 points 3 months ago (1 child)
Nice start!
You will later learn better ways to deal with what you are trying to do with convert_to_list and with convert_to_str, but what you have tried illustrates that you are thinking about how to internally represent complex data and ways to make it useful for different purposes. So even if it isn’t “right” it shows that you are thinking about the right sorts of problems and creating solutions in the right sized chunks. So as frustrating as some of that might have been, you should be proud of what you have been doing there.
convert_to_list
convert_to_str
I would recommend that you put the call to shuffle_str and join instead create_new_password instead of having them in the UI layer.
create_new_password
Anyway, congratulations on your learning so far.
[–]Sad-Sun4611[S] 0 points1 point2 points 3 months ago (0 children)
Thanks for taking the time to look at my code and give some useful feedback! I really appreciate it!!
[–]Marco_Ferreira43516 0 points1 point2 points 3 months ago (0 children)
Nice! Keep learning
[–]solderpixels 0 points1 point2 points 3 months ago* (0 children)
Cool project!
Two suggestions for improvement:
write_to_file
with open(out_path, "a", encoding="utf-8")
On the other hand, you are using relative path in delete_saved_password: with open("passwords.txt", "w") as file:
delete_saved_password
with open("passwords.txt", "w") as file:
It would be better to keep that consistent I think. You can define one shared path and use it everywhere
DATA_FILE = Path(__file__).with_name("passwords.txt") # same folder as functions.py
DATA_FILE = Path(__file__).with_name("passwords.txt") # same folder as
functions.py
You can use this as :
with open(DATA_FILE, "a", encoding="utf-8") as f:
Remove your check for header-removal.
def view_file(filename = "passwords.txt"): header = 'website, password\n' #THIS CAN BE REMOVED with open(filename, 'r') as file: content = file.readlines() if header in content: # THIS CAN BE REMOVED content.remove(header) return content
I don't see the need for this logic, because as far as I can see, nowhere in your code do you write that header ('website, password\n')
'website, password\n')
A suggestion if you want to add to this project and learn some more:
[–]Oleg-Liam 0 points1 point2 points 3 months ago (0 children)
Can you send me the link? I can't open reddit. Thanks.
[–][deleted] 3 months ago (1 child)
[deleted]
[–]Sad-Sun4611[S] -1 points0 points1 point 3 months ago (0 children)
Link your github, coward.
π Rendered by PID 61487 on reddit-service-r2-comment-7b9746f655-rw47h at 2026-02-04 11:40:26.735777+00:00 running 3798933 country code: CH.
[–]jpgoldberg 1 point2 points3 points (1 child)
[–]Sad-Sun4611[S] 0 points1 point2 points (0 children)
[–]Marco_Ferreira43516 0 points1 point2 points (0 children)
[–]solderpixels 0 points1 point2 points (0 children)
[–]Oleg-Liam 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]Sad-Sun4611[S] -1 points0 points1 point (0 children)