I have a library I'm working on that is intended to be imported like import raycekar as rk and have its individual files referenced as rk.unit.whatever. This is the directory structure:
RayceKar
|-raycekar
| |-__init__.py
| |-ui.py
| |-env.py
`-main.py
From within main.py, if I from raycekar import ui, I can access ui. If I want to import raycekar as rk, rk.ui raises an AttributeError unless the from a import b variation is used first.
How can I make it such that accessing attributes as rk.ui or rk.env works without having to perform a from raycekar import *?
I'm working with Python 3.8+