psiphon 2.0.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.
psiphon/__init__.py ADDED
@@ -0,0 +1,19 @@
1
+ """psiphon — Linux controller for Psiphon (tunnel-core)."""
2
+
3
+ from importlib.metadata import version
4
+ from typing import TYPE_CHECKING
5
+
6
+ if TYPE_CHECKING:
7
+ from psiphon.main import app
8
+
9
+ __all__ = ["app"]
10
+ __version__ = version("psiphon")
11
+
12
+
13
+ def __getattr__(name: str):
14
+ # Keep the worker import independent of the CLI and avoid runpy double imports.
15
+ if name == "app":
16
+ from psiphon.main import app
17
+
18
+ return app
19
+ raise AttributeError(name)