| """Credit Display - Show credits and attribution""" |
|
|
| from typing import List, Dict |
|
|
|
|
| class CreditDisplay: |
| """Display credits and attribution""" |
|
|
| CREDITS = { |
| "core_developer": {"name": "amkyawdev", "role": "Lead Developer"}, |
| "contributors": [ |
| {"name": "Open Source Community", "contribution": "Feedback & Suggestions"}, |
| ], |
| "technologies": [ |
| "Python", |
| "Click", |
| "Rich", |
| "HuggingFace Datasets", |
| "BeautifulSoup", |
| ], |
| } |
|
|
| ACKNOWLEDGMENTS = [ |
| "Thanks to all contributors who made this project possible", |
| "Special thanks to the Myanmar developer community", |
| "Built with ❤️ for the developer community", |
| ] |
|
|
| @classmethod |
| def show(cls): |
| """Display credits""" |
| print("\n" + "=" * 50) |
| print(" 📜 CREDITS 📜 ".center(50)) |
| print("=" * 50 + "\n") |
|
|
| print("[bold]Lead Developer:[/bold]") |
| core = cls.CREDITS["core_developer"] |
| print(f" 👨💻 {core['name']} - {core['role']}\n") |
|
|
| print("[bold]Contributors:[/bold]") |
| for contributor in cls.CREDITS["contributors"]: |
| print(f" 🤝 {contributor['name']} - {contributor['contribution']}") |
|
|
| print("\n[bold]Technologies Used:[/bold]") |
| for tech in cls.CREDITS["technologies"]: |
| print(f" ⚙️ {tech}") |
|
|
| print("\n[bold]Acknowledgments:[/bold]") |
| for ack in cls.ACKNOWLEDGMENTS: |
| print(f" 🙏 {ack}") |
|
|
| print("\n" + "=" * 50) |
|
|
| @classmethod |
| def show_simple(cls): |
| """Show simple credits""" |
| print("\n📜 Credits: amkyawdev") |
| print("📚 Technologies: Python, Click, Rich\n") |
|
|
| @classmethod |
| def show_verbose(cls): |
| """Show verbose credits with all details""" |
| print("\n" + "═" * 60) |
| print(" CREDITS & ATTRIBUTION ".center(60, "─")) |
| print("═" * 60) |
|
|
| print("\n[cyan]Project:[/cyan] Burme-Coder-Max") |
| print("[cyan]Version:[/cyan] 1.0.0") |
| print("[cyan]Author:[/cyan] amkyawdev") |
|
|
| print("\n[yellow]Core Team:[/yellow]") |
| for key, dev in cls.CREDITS.items(): |
| if isinstance(dev, dict): |
| print(f" {dev['name']} ({dev['role']})") |
|
|
| print("\n[yellow]Contributors:[/yellow]") |
| for c in cls.CREDITS["contributors"]: |
| print(f" {c['name']} - {c['contribution']}") |
|
|
| print("\n[yellow]Built With:[/yellow]") |
| for tech in cls.CREDITS["technologies"]: |
| print(f" • {tech}") |
|
|
| print("\n[yellow]Acknowledgments:[/yellow]") |
| for ack in cls.ACKNOWLEDGMENTS: |
| print(f" ♥ {ack}") |
|
|
| print("\n" + "═" * 60) |
|
|
| @classmethod |
| def show_with License(cls): |
| """Show credits with license info""" |
| cls.show() |
| print("\n[bold]License:[/bold] MIT License") |
| print("Feel free to use, modify, and distribute!") |
| print() |
|
|
|
|
| def show_developer_credit(name: str, role: str = "Developer"): |
| """Show credit for a specific developer""" |
| print(f"\n👨💻 {name}") |
| print(f" Role: {role}") |
| print() |
|
|