mixmastamyk / console

Comprehensive utility library for terminals. “Better… Stronger… Faster.”
GNU Lesser General Public License v3.0
34 stars 5 forks source link

Exported utils module in __init__.py #14

Closed nocturn9x closed 3 weeks ago

nocturn9x commented 2 years ago

The utils module of console is mentioned in a stackoverflow answer about waiting for key presses, but it's actually not exported outside the package so it's unusable :P

rasa commented 1 year ago

Probably this article here.

mixmastamyk commented 1 year ago

Huh? Modules don't need to be exported in Python, init imports are usually just done for convenience of importing without the (sub)module name.

>>> import console.utils
>>> 
>>> from console import utils
>>> 
>>> utils.wait_key()
'y'

Does this not work for you? Would like to see the error, maybe in an issue/bug.

Thanks for your interest.

mixmastamyk commented 3 weeks ago

This one seems like it was a misunderstanding? Doesn't appear necessary unless I've misunderstood something myself. Now in conflict with updates as well. Going to close.