This commit is contained in:
Jev Kuznetsov
2025-09-15 09:09:40 +02:00
parent f6da3d9839
commit 27bb46e039
6 changed files with 33 additions and 75 deletions

View File

@@ -1,21 +1,15 @@
"""Basic usage example for {{ cookiecutter.project_name }}."""
from {{ cookiecutter.package_name }} import hello
from {{ cookiecutter.package_name }}.core import process_data, {{ cookiecutter.project_name.replace(' ', '').replace('-', '') }}
from {{ cookiecutter.package_name }}.core import say_hello
def main():
"""Demonstrate basic usage."""
# Basic hello
print(hello())
# Process some data
result = process_data("example data")
print(result)
# Use main class
instance = {{ cookiecutter.project_name.replace(' ', '').replace('-', '') }}("example")
print(instance.run())
say_hello()
# Hello with a name
say_hello("{{ cookiecutter.project_name }}")
if __name__ == "__main__":