mirror of
https://github.com/Lyxminxx/weatherCLI.git
synced 2026-10-11 20:57:46 +02:00
22 lines
611 B
Python
22 lines
611 B
Python
import importlib.metadata
|
|
|
|
|
|
__doc__ = """Library to easily read single chars and key strokes"""
|
|
|
|
__version__ = importlib.metadata.version(__package__)
|
|
__all__ = ["readchar", "readkey", "key", "config"]
|
|
|
|
from sys import platform
|
|
|
|
from ._config import config
|
|
|
|
|
|
if platform.startswith(("linux", "darwin", "freebsd", "openbsd")):
|
|
from . import _posix_key as key
|
|
from ._posix_read import readchar, readkey
|
|
elif platform in ("win32", "cygwin"):
|
|
from . import _win_key as key
|
|
from ._win_read import readchar, readkey
|
|
else:
|
|
raise NotImplementedError(f"The platform {platform} is not supported yet")
|