text: from tcfbot.event import Event, EventList
  from tcfbot.account import Account
  import ujson as json
  
  event = Event(antenna_name='alger', uid='6130d7adee43a',
                title='TCF SO', antenna_id=1,
                local='alger', price='10000',
                status=1, full=1)
  
  #del event
  
  data = [{'uid': '6130d7ad83cf2', 'title': 'TCFSO', 'start': '2021-09-1908:00:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '6130d7adbd3dc', 'title': 'TCFSO', 'start': '2021-09-1910:30:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '6130d7adee43a', 'title': 'TCFSO', 'start': '2021-09-1914:00:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '6137593ba425c', 'title': 'TCFSO', 'start': '2021-09-1916:00:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '6130d7ae4f561', 'title': 'TCFSO', 'start': '2021-09-2008:00:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '6130d7ae9b8b7', 'title': 'TCFSO', 'start': '2021-09-2010:30:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '6130d7aecca54', 'title': 'TCFSO', 'start': '2021-09-2014:00:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '6137593bcf9a5', 'title': 'TCFSO', 'start': '2021-09-2016:00:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '6130d7af1596f', 'title': 'TCFSO', 'start': '2021-09-2108:00:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '6130d7af52f1d', 'title': 'TCFSO', 'start': '2021-09-2110:30:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '6130d7af93f23', 'title': 'TCFSO', 'start': '2021-09-2114:00:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '6137593c14541', 'title': 'TCFSO', 'start': '2021-09-2116:00:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '6130d7afdd452', 'title': 'TCFSO', 'start': '2021-09-2208:00:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '6130d7b01e9c8', 'title': 'TCFSO', 'start': '2021-09-2210:30:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '6130d7b05bd6d', 'title': 'TCFSO', 'start': '2021-09-2214:00:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '6137593c4b5fd', 'title': 'TCFSO', 'start': '2021-09-2216:00:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '6130d7b0a0a9e', 'title': 'TCFSO', 'start': '2021-09-2308:00:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '6130d7b0de89e', 'title': 'TCFSO', 'start': '2021-09-2310:30:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '6130d7b12731e', 'title': 'TCFSO', 'start': '2021-09-2314:00:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '6137593c88d54', 'title': 'TCFSO', 'start': '2021-09-2316:00:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '6130dac8db4ea', 'title': 'TCFSO', 'start': '2021-09-2608:00:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '60fd4d02ee463', 'title': 'TCFCanada', 'start': '2021-09-2608:00:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '32000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '6130dac90c09d', 'title': 'TCFSO', 'start': '2021-09-2610:30:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '6137358234e4c', 'title': 'TCFSO', 'start': '2021-09-2610:30:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '60fd4d030ca5c', 'title': 'TCFCanada', 'start': '2021-09-2613:30:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '32000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '6130dac935197', 'title': 'TCFSO', 'start': '2021-09-2614:00:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '613735823ff2c', 'title': 'TCFSO', 'start': '2021-09-2614:00:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '60fd4d031aa87', 'title': 'TCFCanada', 'start': '2021-09-2616:30:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '32000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '6130dac9662bb', 'title': 'TCFSO', 'start': '2021-09-2708:00:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '60fd4d032924d', 'title': 'TCFCanada', 'start': '2021-09-2708:00:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '32000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '6130dac98afe0', 'title': 'TCFSO', 'start': '2021-09-2710:30:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '613735824a224', 'title': 'TCFSO', 'start': '2021-09-2710:30:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '60fd4d03375c7', 'title': 'TCFCanada', 'start': '2021-09-2713:30:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '32000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '6130dac9afb36', 'title': 'TCFSO', 'start': '2021-09-2714:00:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '6137358258852', 'title': 'TCFSO', 'start': '2021-09-2714:00:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '60fd4d0345ae4', 'title': 'TCFCanada', 'start': '2021-09-2716:30:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '32000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '6130dac9d45db', 'title': 'TCFSO', 'start': '2021-09-2808:00:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '60fd4d0353eaf', 'title': 'TCFCanada', 'start': '2021-09-2808:00:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '32000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '6130daca04fe3', 'title': 'TCFSO', 'start': '2021-09-2810:30:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '6137358264ab8', 'title': 'TCFSO', 'start': '2021-09-2810:30:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '60fd4d0362366', 'title': 'TCFCanada', 'start': '2021-09-2813:30:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '32000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '6130daca2960f', 'title': 'TCFSO', 'start': '2021-09-2814:00:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '613735826ec37', 'title': 'TCFSO', 'start': '2021-09-2814:00:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '60fd4d037080f', 'title': 'TCFCanada', 'start': '2021-09-2816:30:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '32000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '60fd4d0389250', 'title': 'TCFCanada', 'start': '2021-09-2908:00:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '32000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '60fd4d039740f', 'title': 'TCFCanada', 'start': '2021-09-2913:30:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '32000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '6130daca51177', 'title': 'TCFSO', 'start': '2021-09-2914:00:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '61373582793e3', 'title': 'TCFSO', 'start': '2021-09-2914:00:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '10000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '60fd4d03a5af2', 'title': 'TCFCanada', 'start': '2021-09-2916:30:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '32000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '60fd4d03b41d6', 'title': 'TCFCanada', 'start': '2021-09-3008:00:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '32000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '60fd4d03c256c', 'title': 'TCFCanada', 'start': '2021-09-3013:30:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '32000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '60fd4d03d115e', 'title': 'TCFCanada', 'start': '2021-09-3016:30:00', 'duration': 0, 'className': 'bg-secondary', 'level': '', 'price': '32000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': "L'annexedel'Institutfrançaisd'Alger:30,ruedesFrèresKadri,Hydra,Alger", 'status': '1', 'full': '1'}, {'uid': '60fd4a8c0a113', 'title': 'TCFdanslecadredelaDAP', 'start': '2021-10-1509:00:00', 'duration': 0, 'className': 'bg-warning', 'level': '', 'price': '16000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': 'LycéeInternationalAlexandreDumasCheminArezkiMouri-16030-BenAknoun', 'status': '0', 'full': '0'}, {'uid': '60fd4afbf1e45', 'title': 'TCFdanslecadredelaDAP', 'start': '2021-10-1514:00:00', 'duration': 0, 'className': 'bg-warning', 'level': '', 'price': '16000', 'antenna_name': 'IFAlger', 'antenna_id': '1', 'local': 'LycéeInternationalAlexandreDumasCheminArezkiMouri-16030-BenAknoun', 'status': '0', 'full': '0'}]
  el = EventList()
  el.add_event(event)
  #print(el.parse_events(data))
  print(el.json())
  print(el.count())
  
  acc = Account(email='lsldgl144@gmail.com', password='sdgdg')
  
  print([event.json() for event in el.get_account_open_events(account=acc)])
  
  for event in el:
      print(event.json())