#!/usr/bin/python3
# create_pim_data.py

import os
import sys

root_fldr = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'rawdata'))
sys.path.insert(1, root_fldr)

import generate

op_fldr = generate.dat_fldr + os.sep
words = generate.get_list_words()
places = generate.get_list_places()

# Dairy
custom_event = ['Sales Meeting', 'Workshop', 'Training', 'Phone Hookup', 'Admin', 'Development work', 'Testing', 'Documentation']
tpe_event = ['DATE', 'PEOPLE', 'PLACE', custom_event ]
t_event = generate.TableGenerator(15,tpe_event, ['DATE', 'Name',   'Location', 'Details'])
t_event.save_table(op_fldr + 'diary.csv')

# Tasks
custom_task = ['Write report', 'fix bug', 'work on documentation', 'Add new feature', 'test new version', 'Demo to customer']
t_task = generate.TableGenerator(8, ['PEOPLE', ['Hi', 'Med', 'Low'], custom_task], ['Assigned to', 'Priority', 'Task'])
t_task.save_table(op_fldr + 'tasks.csv')

# Contacts
lbl_contact = ['Year_met', 'Customer_id', 'Age', 'First Name', '<NAME>', 'Country', 'Amount']
tpe_contact = ['YEAR', 'STRING', 'INT', 'PEOPLE', 'PEOPLE', 'PLACE', 'CURRENCY']
t_contact = generate.TableGenerator(50, tpe_contact, lbl_contact)
t_contact.save_table(op_fldr + 'contacts.csv')

# Notes
t_notes = generate.TableGenerator(10, ['DATE','WORD','TEXT'], ['Date','Tags','Note Contents'])
t_notes.save_table(op_fldr + 'notes.csv')
#!/usr/bin/python3
# create_pim_data.py

import os
import sys

root_fldr = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'rawdata'))
sys.path.insert(1, root_fldr)

import generate

op_fldr = generate.dat_fldr + os.sep
words = generate.get_list_words()
places = generate.get_list_places()

# Dairy
custom_event = ['Sales Meeting', 'Workshop', 'Training', 'Phone Hookup', 'Admin', 'Development work', 'Testing', 'Documentation']
tpe_event = ['DATE', 'PEOPLE', 'PLACE', custom_event ]
t_event = generate.TableGenerator(15,tpe_event, ['DATE', 'Name',   'Location', 'Details'])
t_event.save_table(op_fldr + 'diary.csv')

# Tasks
custom_task = ['Write report', 'fix bug', 'work on documentation', 'Add new feature', 'test new version', 'Demo to customer']
t_task = generate.TableGenerator(8, ['PEOPLE', ['Hi', 'Med', 'Low'], custom_task], ['Assigned to', 'Priority', 'Task'])
t_task.save_table(op_fldr + 'tasks.csv')

# Contacts
lbl_contact = ['Year_met', 'Customer_id', 'Age', 'First Name', '<NAME>', 'Country', 'Amount']
tpe_contact = ['YEAR', 'STRING', 'INT', 'PEOPLE', 'PEOPLE', 'PLACE', 'CURRENCY']
t_contact = generate.TableGenerator(50, tpe_contact, lbl_contact)
t_contact.save_table(op_fldr + 'contacts.csv')

# Notes
t_notes = generate.TableGenerator(10, ['DATE','WORD','TEXT'], ['Date','Tags','Note Contents'])
t_notes.save_table(op_fldr + 'notes.csv')
#!/usr/bin/python3 # create_pim_data.py # Dairy # Tasks # Contacts # Notes