from simulation.car import spawn_drivers
from simulation.passenger import spawn_passengers
from simulation.core import World, Clock

conf = {
    "x": 100,
    "y": 100,
    "drivers": 200,
    "users": 1000,
    "start": "2019-07-08T00:00:00",
    "end": "2019-07-08T00:01:00"
}

clock = Clock(conf["start"], conf["end"])

if __name__ == '__main__':
    world = World([conf['x'], conf['y']], clock=clock)
    world.register_drivers(spawn_drivers(conf["drivers"], conf['x'], conf['y']))
    world.register_passengers(spawn_passengers(conf["users"], conf['x'], conf['y']))
    world.run(log=False)

[(14, 'simulation.core.Clock', 'Clock', False, 'from simulation.core import World, Clock\n'), (17, 'simulation.core.World', 'World', False, 'from simulation.core import World, Clock\n'), (18, 'simulation.car.spawn_drivers', 'spawn_drivers', False, 'from simulation.car import spawn_drivers\n'), (19, 'simulation.passenger.spawn_passengers', 'spawn_passengers', False, 'from simulation.passenger import spawn_passengers\n')]