# Path: grazyna/config.py
# def create_config(stream):
#     config = create_empty_config()
#     config.read_file(stream)
# 
#     return config
# 
# Path: grazyna/irc/client.py
# class IrcClient(asyncio.Protocol, IrcSender):
#     def __init__(self, config, connection_lost_future):
#     def connection_made(self, transport):
#     def data_received(self, raw_messages):
#     def connection_lost(self, exc):
#     def get_session(self):
#     def _parse_raw_messages(raw_messages, codecs=('utf-8',)):
# def connect(config):


from sys import argv
from grazyna.config import create_config
from grazyna.irc import client


def run():
    with open(argv[1]) as f:
        cfg = create_config(f)

# Path: grazyna/config.py
# def create_config(stream):
#     config = create_empty_config()
#     config.read_file(stream)
# 
#     return config
# 
# Path: grazyna/irc/client.py
# class IrcClient(asyncio.Protocol, IrcSender):
#     def __init__(self, config, connection_lost_future):
#     def connection_made(self, transport):
#     def data_received(self, raw_messages):
#     def connection_lost(self, exc):
#     def get_session(self):
#     def _parse_raw_messages(raw_messages, codecs=('utf-8',)):
# def connect(config):


# Path: grazyna/__main__.py
from sys import argv
from grazyna.config import create_config
from grazyna.irc import client



def run():
    with open(argv[1]) as f:
        cfg = create_config(f)

    client.connect(cfg)