Compare commits

...

3 Commits

Author SHA1 Message Date
e3422bafbf Added simple functionality to add new TODOs (#3)
Added very simple functionality to add todos to a list. Can be used as a building off point.

Reviewed-on: #3
2025-12-01 20:41:53 -05:00
86304f9704 Merge pull request 'Added textual library dependency' (#2) from project/dependencies into development
Reviewed-on: #2
2025-11-30 18:51:31 -05:00
64060db61e Added textual library dependency 2025-11-30 18:49:57 -05:00
3 changed files with 55 additions and 0 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
.venv/
__pycache__/

26
requirements.txt Normal file
View File

@@ -0,0 +1,26 @@
aiohappyeyeballs==2.6.1
aiohttp==3.13.2
aiohttp-jinja2==1.6
aiosignal==1.4.0
attrs==25.4.0
click==8.3.1
frozenlist==1.8.0
idna==3.11
Jinja2==3.1.6
linkify-it-py==2.0.3
markdown-it-py==4.0.0
MarkupSafe==3.0.3
mdit-py-plugins==0.5.0
mdurl==0.1.2
msgpack==1.1.2
multidict==6.7.0
platformdirs==4.5.0
propcache==0.4.1
Pygments==2.19.2
rich==14.2.0
textual==6.7.0
textual-dev==1.8.0
textual-serve==1.1.3
typing_extensions==4.15.0
uc-micro-py==1.0.3
yarl==1.22.0

28
todo.py Normal file
View File

@@ -0,0 +1,28 @@
class Todo:
title: str
description: str
def __init__(self, title: str, description: str) -> None:
self.title = title
self.description = description
def get_title(self) -> str:
return self.title
def get_description(self) -> str:
return self.description
def create_todo(title: str, description: str) -> Todo:
return Todo(title, description)
if __name__ == "__main__":
todo_list: list[Todo] = []
todo_list.append(create_todo("Test", "Test Description"))
todo_list.append(create_todo("Task 2", "Task 2 Description"))
for todo in todo_list:
print(f"Title: {todo.get_title()}")
print(f"Description: {todo.get_description()}")