I'm writing a script that will connect to a remote FTP server and login using my username and password and then upload a file from my HDD to the server. I feel like there can be alternatives to hardcoding my sensitive information (password and username) in the code. Any suggestions? What's the best thing that can be done?
import ftplib
ftp = ftplib.FTP('ftp.mydomain.com')
ftp.login('username', 'password')