This repository has been archived on 2025-06-04. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
fl0w-old/Shared/Abstraction.py
2015-11-02 22:31:26 +01:00

12 lines
No EOL
284 B
Python

import socket
from ESock import ESock
class fl0wAPI:
def __init__(self, address, client_type):
self.sock = socket.create_connection(address)
self.authed = True
def auth(self, user, password):
self.sock.send({"auth" : {"user" : user, "pw" : password}})
if self.sock.recv()