Skip to content

Instantly share code, notes, and snippets.

View Saadullahkhan3's full-sized avatar
💭
Let's Build Together!

Saadullah Khan Saadullahkhan3

💭
Let's Build Together!
View GitHub Profile
@Saadullahkhan3
Saadullahkhan3 / copy_specific_files_dirs.py
Created October 21, 2025 10:47
Script to Copy Specific Files and Directories
import os as o
import shutil as s
import sys
# --- Minimal standard-library coloring helper ---
# Uses ANSI escape sequences and enables ANSI processing on Windows consoles
# without external packages. This is a small, portable helper.
if sys.platform.startswith("win"):
# Enable ANSI escape processing on Windows 10+ consoles using ctypes
try:
@Saadullahkhan3
Saadullahkhan3 / config.py
Created October 1, 2025 15:53
Config setup file in Python
'''
Extract all required env vars in config obj -> config.env_x_var
Do Type changing
'''
from dotenv import load_dotenv
import os
VALUE_TYPE_PAIR = (