High-performance script that inspects log directories, compresses large files, and syncs archives to S3.
Tick off requirements as you build to track real-time completion.
Follow this chronological guide to build the project from scratch.
Scan targeted system log directories and identify files exceeding maximum size thresholds.
import os
MAX_SIZE_BYTES = 50 * 1024 * 1024 # 50 MB
def find_large_logs(log_dir):
large_files = []
for root, _, files in os.walk(log_dir):
for f in files:
if f.endswith('.log'):
full_path = os.path.join(root, f)
if os.path.getsize(full_path) > MAX_SIZE_BYTES:
large_files.append(full_path)
return large_filesReal issues students hit during development and how to troubleshoot them fast.
Continue building your skills with similar projects.
Sleek weather dashboard using OpenWeather API with geolocation, 5-day forecast, and dynamic weather themes.
Personal budget tracker with transaction log, category breakdown, and Chart.js pie charts.
Movie discovery app with TMDB API, trending lists, search, and detail modals.