Hey 👋, This is Evans Pauliuts
from typing import Callable
from pydantic import BaseModel
def get_code() -> dict[str, list[str]]:
languages = {
'frontend': ['HTML', 'CSS', 'JavaScript', 'ReactJS'],
'backend': ['Python', 'Flask', 'Django', 'Django REST framework', 'FastApi'],
'database': ['PostgreSQL', 'MySQL', 'SQLite3', 'Mongo DB'],
'devops': ['Docker', 'Nginx', 'Jenkins', 'GitHub Actions', 'AWS', 'Heroku'],
'tools': ['GIT', 'GitHub', 'GitLab', 'Pandas', 'Jupyter notebook', 'SQLAlchemy', 'Redis'],
'editor': ['Pycharm', 'Vim'],
'architecture': ['SPA', 'MVC', 'Serverless', 'Microservices']
}
return languages
class SoftwareEngineer(BaseModel):
name: str
role: str
code: Callable[[str], list[str]] = get_code()
@property
def say_hi(self) -> str:
return 'Thanks for dropping by, hope you find some of my work interesting.'
me = SoftwareEngineer(name='Evans Pauliuts', role='Python Software Engineer')
print(me.say_hi)