s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((HOST, PORT))
while True:
    command = input('Enter your command: ')
if command.split(' ', 1)[0] == 'STORE':
    while True:
        additional_text = input()
command = command + '\n' + additional_text
if additional_text == '.':
    break
s.send(command)
reply = s.recv(1024)
if reply == 'Quit':
    break
print(reply)
Программирование сервера/клиента сокетов Python