Beispiel #1
0
def client_output():
    numeric_id = general.generate_id()
    pesel = general.generate_pesel(fake.date_of_birth())
    contract = fake.date_between(start_date=plan[4], end_date='now')
    permanence = fake.date_between(start_date=contract, end_date='now')
    client_mobile = [numeric_id, pesel, contract, permanence]
    writer.export_data(client_mobile, "output/client_mobile.csv")
Beispiel #2
0
def generate_output():
    pesel = general.generate_pesel(the_date)
    call_id = general.generate_id()
    call = generate_call(the_date)
    writer.export_data([call_id,
                        pesel,
                        "Here should be department id",
                        call[0],
                        call[1],
                        call[2],
                        call[3]], "calls.csv")
Beispiel #3
0
def generate_output():
    import main
    person = generate_client()
    pesel = general.generate_pesel(person["birthdate"])
    person_rows = [
        pesel,
        main.divide(person["name"])[0],
        main.divide(person["name"])[1], person["mail"],
        person["residence"].replace("\n", " "),
        generate_phone("pl")
    ]
    writer.export_data(person_rows, "output/client.csv")
Beispiel #4
0
def generate_operator(i):
    # import main
    bday = fake.date_of_birth()
    pesel = general.generate_pesel(bday)
    # name = main.divide(fake.name())
    # first = main.divide(name[0])
    # surname = main.divide(name[1])
    salary = random.choice(["900", "1000", "1200"])
    # email = fake.email()
    valid = random.choice([0, 1])
    operator = [i, pesel, fake.name(), salary, valid]
    return operator
Beispiel #5
0
def generate_output(cli_id):
    person = generate_client()
    pesel = general.generate_pesel(person["birthdate"])
    region = random.choice(
        ["Masovia", "Kuyavia", "Podlasie", "Pemrania", "Pomerelia", "Silesia"])
    person_rows = [
        cli_id + 1500, pesel, person["name"], region,
        fake.city(),
        fake.postcode(),
        fake.street_address(),
        generate_phone()
    ]
    writer.export_data(person_rows, "output/T1-T2/client.csv")