User Guide
Galleries
API Reference
Links
from pathlib import Path [docs]def get_extension(path): try: p = Path(path) return p.suffix except TypeError: return False