Create __init__.py
Browse files- __init__.py +14 -0
__init__.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# __init__.py
|
| 2 |
+
|
| 3 |
+
from importlib import resources
|
| 4 |
+
try:
|
| 5 |
+
import tomllib
|
| 6 |
+
except ModuleNotFoundError:
|
| 7 |
+
import tomli as tomllib
|
| 8 |
+
|
| 9 |
+
# Version of the package
|
| 10 |
+
__version__ = "1.0.0"
|
| 11 |
+
|
| 12 |
+
# Read URL of the feed from config file
|
| 13 |
+
_cfg = tomllib.loads(resources.read_text("reader", "config.toml"))
|
| 14 |
+
URL = _cfg["feed"]["url"]
|