refactor: Split code into many files

This commit is contained in:
kbe
2025-08-12 00:53:16 +02:00
parent 944421c68b
commit 90230832ee
11 changed files with 1079 additions and 646 deletions

31
main.py Executable file
View File

@@ -0,0 +1,31 @@
#!/usr/bin/env python3
"""
Main entry point for the CrossFit Booker application.
This script initializes the CrossFitBooker and starts the booking process.
"""
import asyncio
import logging
from crossfit_booker import CrossFitBooker
def main():
"""
Main function to initialize the CrossFitBooker and start the booking process.
"""
# Set up logging
logging.basicConfig(
level=logging.INFO,
format='%(asctime)s - %(levelname)s - %(message)s',
handlers=[
logging.StreamHandler()
]
)
# Initialize the CrossFitBooker
booker = CrossFitBooker()
# Run the booking process
booker.run()
if __name__ == "__main__":
main()