We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0317054 commit 71d6846Copy full SHA for 71d6846
pytemplate/__init__.py
@@ -1,3 +1,6 @@
1
-"""Init file."""
+"""Init file.
2
+
3
+Called when you import pytemplate.
4
+"""
5
6
from pytemplate.main import main # noqa
pytemplate/__main__.py
@@ -0,0 +1,9 @@
+"""Entry point of the CLI version.
+Called from poetry.
+from .main import main
7
8
+if __name__ == '__main__':
9
+ main()
pytemplate/main.py
@@ -1,4 +1,7 @@
-"""Main."""
+"""Main.
+You can directly import the main function in your code.
def main() -> None:
0 commit comments