from pathlib import Path
from time import time
td = Path(r'C:/Users/mark/Desktop/School/Outsync/sotastaircase/BukitTimahGame/Library')
tf = Path(r'C:/Users/mark/Desktop/School/Outsync/sotastaircase/BukitTimahGame/Library/Artifacts/aa/aa7bceae7798cf70fb772a3c5430b72a')
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /// script | |
| # requires-python = ">=3.12" | |
| # dependencies = [ | |
| # "tqdm", | |
| # "ziglang", | |
| # ] | |
| # /// | |
| from enum import Enum | |
| from io import IOBase | |
| from math import ceil |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /// script | |
| # requires-python = ">=3.10" | |
| # dependencies = [ | |
| # "mutagen", | |
| # "pillow", | |
| # "rich", | |
| # ] | |
| # /// | |
| # | |
| # Copyright 2025 mark joshwel <mark@joshwel.co> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from enum import Enum | |
| from sys import stderr | |
| from typing import Any, Generator, NamedTuple | |
| class TyuUnits(Enum): | |
| WHITESPACE = 0 | |
| COMMENT = 1 | |
| SCOPE = 2 | |
| DECLARATION = 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Programming 1 Assignment | |
| Mark Joshwel - SXXXXXXXX (IM02/P12) - 12/08/2023 | |
| ------------------------------------------------ | |
| with Extra Feature 1: | |
| Use real-time carpark available data from data.gov.sg | |
| Updates Menu Option [3] to ask user if they want to read from a file or | |
| use real-time carpark available data from data.gov.sg |
Notes:
- Only has been tested with group chats.
- Works on Python 3.10.1, however should work with Python versions >=3.7.
- Code has been formatted using black and has been type checked using mypy.
- Incorrect parsing of message sender will occur if contact name has a colon in their name, this can be avoided with handling the chat export before processing.
Example snippet of a WhatsApp Chat Export: