mirror of
https://github.com/Lyxminxx/weatherCLI.git
synced 2026-10-12 05:07:45 +02:00
Initial commit
This commit is contained in:
commit
3394196287
2164 files changed
+358958
No files matched your search
@@ -0,0 +1,21 @@
|
||||
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")
|
||||
Reference in new issue
Block a user