I made a Python script that I would like to turn into a standalone .exe file to distribute it among my not so tech savvy friends. I am using Linux to do all the coding of course and I don't have any Windows computers to compile it on. My application has no user interface so I would need it to run in a command shell like Command Prompt. How would I do this?
My code:
import string
import collections
def caesar(rotate_string, number_to_rotate_by):
upper = collections.deque(string.ascii_uppercase)
lower = collections.deque(string.ascii_lowercase)
upper.rotate(number_to_rotate_by)
lower.rotate(number_to_rotate_by)
upper = ''.join(list(upper))
lower = ''.join(list(lower))
return rotate_string.translate(string.maketrans(string.ascii_uppercase, upper)).translate(string.maketrans(string.ascii_lowercase, lower))
print("Enter message:")
message = raw_input()
print("Enter rotation:")
rotation = raw_input()
print caesar(message, int(rotation))