naturgy-cli 0.1.0__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.
naturgy/__init__.py ADDED
@@ -0,0 +1,10 @@
1
+ """JSON-first CLI for your own Naturgy España account (Omega)."""
2
+
3
+ from importlib.metadata import PackageNotFoundError, version
4
+
5
+
6
+ def package_version() -> str | None:
7
+ try:
8
+ return version("naturgy-cli")
9
+ except PackageNotFoundError:
10
+ return None
naturgy/__main__.py ADDED
@@ -0,0 +1,6 @@
1
+ """Allow `python -m naturgy` from a source checkout."""
2
+
3
+ from .cli import main
4
+
5
+ if __name__ == "__main__":
6
+ main()