22 lines
601 B
Python
22 lines
601 B
Python
"""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('-', '') }}
|
|
|
|
|
|
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())
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main() |