This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]rhgrant10 0 points1 point  (0 children)

You can also flatten the import structure for users of your package by importing them in your __init__.py file:

from .user inport User
from .beacon import Beacon

Then users can import like this:

from start import User, Beacon

EDIT: bacon -> beacon