Skip to content

Instantly share code, notes, and snippets.

@mgrouchy

mgrouchy/all.py Secret

Last active February 19, 2019 02:16
Embed
What would you like to do?
import class from file.
__all__ = ['submodule1', 'submodule2']
# in your __init__.py
from file import File
# now import File from package
from package import File
from package import *
from package.file import File
from subpackage import *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment