GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — python-deadlines/utils/main.py at main · python-spain/python-deadlines

Expand file tree

/

main.py

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
59 lines (47 loc) · 2.1 KB
/

main.py

Copy path

File metadata and controls

59 lines (47 loc) · 2.1 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Standard library
import sys
import time
# Local imports
try:
from import_python_official import main as official_updater
from import_python_organizers import main as organizer_updater
from logging_config import get_tqdm_logger
from sort_yaml import sort_data
except ImportError:
from .import_python_official import main as official_updater
from .import_python_organizers import main as organizer_updater
from .logging_config import get_tqdm_logger
from .sort_yaml import sort_data
def main() -> None:
"""Main data processing pipeline with comprehensive logging."""
logger = get_tqdm_logger(__name__)
logger.info("🚀 Starting Python Deadlines data processing pipeline")
start_time = time.time()
try:
# Step 1: Import from Python official calendar
logger.info("📅 Step 1: Importing from Python official calendar")
step_start = time.time()
official_updater()
logger.info(f"✅ Official calendar import completed in {time.time() - step_start:.2f}s")
# Step 2: Sort and validate data
logger.info("🔄 Step 2: Sorting and validating data")
step_start = time.time()
sort_data(skip_links=True)
logger.info(f"✅ Data sorting completed in {time.time() - step_start:.2f}s")
# Step 3: Import from Python organizers
logger.info("👥 Step 3: Importing from Python organizers")
step_start = time.time()
organizer_updater()
logger.info(f"✅ Organizers import completed in {time.time() - step_start:.2f}s")
# Step 4: Final sort and validation
logger.info("🔄 Step 4: Final sorting and validation")
step_start = time.time()
sort_data(skip_links=True)
logger.info(f"✅ Final sorting completed in {time.time() - step_start:.2f}s")
total_time = time.time() - start_time
logger.info(f"🎉 Data processing pipeline completed successfully in {total_time:.2f}s")
except Exception as e:
logger.error(f"❌ Pipeline failed with error: {e}", exc_info=True)
sys.exit(1)
if __name__ == "__main__":
main()
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.