Principal Software Engineer at Zentake
#!/usr/bin/python3
# -*- coding: utf-8 -*-
class SoftwareEngineer:
def __init__(self, data, indent=0):
self.data = data
self.indent = indent
def __print(self, value, indent):
return '\t' * indent + str(value) + '\n'
def __beatiful_print(self, data, indent):
to_str = ''
for key, value in data.items():
to_str += self.__print('\033[1m' + key.upper() + '\033[0m', indent)
if isinstance(value, dict):
to_str += self.__beatiful_print(value, indent+1)
elif isinstance(value, list):
to_str += self.__print(', '.join(value), indent+1)
elif isinstance(value, tuple):
to_str += self.__print(f'{value[0]}\xc2\xb0 N, {value[1]}\xc2\xb0 W', indent+1)
else:
to_str += self.__print(value, indent+1)
return to_str
def __str__(self):
return self.__beatiful_print(self.data, self.indent)
if __name__ == '__main__':
data = dict(
name='Vitor Nere',
role='Principal Software Engineer',
location=(-15.786515996164606, -47.88718512527681),
code=['Python', 'Javascript', 'Typescript'],
technologies=dict(
backEnd=['Django', 'Flask', 'FastAPI'],
frontEnd=['React', 'Next.js'],
mobileApp=['React Native'],
desktopApp=['Electron', 'PWA'],
devOps=['AWS', 'Docker', 'Serverless', 'Hasura'],
databases=['PostgresSQL', 'DynamoDB'],
misc=['Firebase', 'Unit Tests', 'GraphQL', 'Redux', 'Amplify Framework']
)
)
vitor_nere = SoftwareEngineer(data)
print(vitor_nere)
I love connecting with different people so if you want to say hi, I'll be happy to meet you more! 😊