telyx 0.0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- telyx/__init__.py +13 -0
- telyx/__init__.pyi +987 -0
- telyx/api.py +14 -0
- telyx/model.py +68 -0
- telyx/py.typed +1 -0
- telyx/registry.json +16872 -0
- telyx/telegram.py +59 -0
- telyx-0.0.1.dist-info/METADATA +72 -0
- telyx-0.0.1.dist-info/RECORD +11 -0
- telyx-0.0.1.dist-info/WHEEL +4 -0
- telyx-0.0.1.dist-info/licenses/LICENSE +21 -0
telyx/__init__.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from .model import Icon, Registry
|
|
2
|
+
from .api import get, exists, search, render, load_registry
|
|
3
|
+
|
|
4
|
+
def __getattr__(name: str) -> Icon:
|
|
5
|
+
try:
|
|
6
|
+
return get(name)
|
|
7
|
+
except KeyError:
|
|
8
|
+
raise AttributeError(f"Unknown Telyx icon: {name}") from None
|
|
9
|
+
|
|
10
|
+
def __dir__():
|
|
11
|
+
return sorted(set(globals()) | {icon.slug[3:].replace('-','_') for icon in search('')})
|
|
12
|
+
|
|
13
|
+
__all__ = ['Icon','Registry','get','exists','search','render','load_registry'] + [icon.slug[3:].replace('-','_') for icon in search('')]
|