Skip to content

Instantly share code, notes, and snippets.

View x42005e1f's full-sized avatar

Ilya Egorov x42005e1f

View GitHub Profile
@x42005e1f
x42005e1f / init.py
Last active April 4, 2025 12:25
__all__-based dynamic exports
#!/usr/bin/env python3
# SPDX-FileCopyrightText: 2024 Ilya Egorov <0x42005e1f@gmail.com>
# SPDX-License-Identifier: 0BSD
__all__ = (
'init',
)
from sys import modules