✅ Ready to clone and code.
This commit is contained in:
committed by
github-actions[bot]
parent
e0913490c3
commit
a01f457da3
1
python_test_project/VERSION
Normal file
1
python_test_project/VERSION
Normal file
@@ -0,0 +1 @@
|
||||
0.1.0
|
||||
0
python_test_project/__init__.py
Normal file
0
python_test_project/__init__.py
Normal file
6
python_test_project/__main__.py
Normal file
6
python_test_project/__main__.py
Normal file
@@ -0,0 +1,6 @@
|
||||
"""Entry point for python_test_project."""
|
||||
|
||||
from python_test_project.cli import main # pragma: no cover
|
||||
|
||||
if __name__ == "__main__": # pragma: no cover
|
||||
main()
|
||||
17
python_test_project/base.py
Normal file
17
python_test_project/base.py
Normal file
@@ -0,0 +1,17 @@
|
||||
"""
|
||||
python_test_project base module.
|
||||
|
||||
This is the principal module of the python_test_project project.
|
||||
here you put your main classes and objects.
|
||||
|
||||
Be creative! do whatever you want!
|
||||
|
||||
If you want to replace this with a Flask application run:
|
||||
|
||||
$ make init
|
||||
|
||||
and then choose `flask` as template.
|
||||
"""
|
||||
|
||||
# example constant variable
|
||||
NAME = "python_test_project"
|
||||
28
python_test_project/cli.py
Normal file
28
python_test_project/cli.py
Normal file
@@ -0,0 +1,28 @@
|
||||
"""CLI interface for python_test_project project.
|
||||
|
||||
Be creative! do whatever you want!
|
||||
|
||||
- Install click or typer and create a CLI app
|
||||
- Use builtin argparse
|
||||
- Start a web application
|
||||
- Import things from your .base module
|
||||
"""
|
||||
|
||||
|
||||
def main(): # pragma: no cover
|
||||
"""
|
||||
The main function executes on commands:
|
||||
`python -m python_test_project` and `$ python_test_project `.
|
||||
|
||||
This is your program's entry point.
|
||||
|
||||
You can change this function to do whatever you want.
|
||||
Examples:
|
||||
* Run a test suite
|
||||
* Run a server
|
||||
* Do some other stuff
|
||||
* Run a command line application (Click, Typer, ArgParse)
|
||||
* List all available tasks
|
||||
* Run an application (Flask, FastAPI, Django, etc.)
|
||||
"""
|
||||
print("This will do something")
|
||||
Reference in New Issue
Block a user