Files
swingmusic-extended/src/swingmusic/start_info_logger.py
T
Tomas Dvorak 38f1981283 Move backend files to root level for cleaner GitHub display
- Move all backend files from swingmusic/ to root level
- Backend files now display directly on GitHub repository page
- Keep client applications as submodules (swingmusic-android, swingmusic-desktop, swingmusic-webclient)
- Update README to reflect new structure (no cd swingmusic needed)
- Cleaner, more professional GitHub repository layout

Files moved to root:
- src/ (main source code)
- pyproject.toml, requirements.txt, run.py
- swingmusic.spec, uv.lock, version.txt
- services/

Result: GitHub shows backend files directly while maintaining organized structure
2026-03-17 22:37:49 +01:00

19 lines
595 B
Python

from swingmusic.settings import TCOLOR, Metadata, Paths
from swingmusic.utils.network import get_ip
def log_startup_info(host: str, port: int):
print(f"{TCOLOR.HEADER}Swing Music v{Metadata.version} {TCOLOR.ENDC}")
addresses = [host]
if host == "0.0.0.0":
remote_ip = get_ip()
addresses.extend(["127.0.0.1"] + ([remote_ip] if remote_ip else []))
print("Server running on:\n")
for address in addresses:
print(f"{TCOLOR.OKGREEN}http://{address}:{port}{TCOLOR.ENDC}")
print(f"\n{TCOLOR.YELLOW}Data folder: {Paths().config_dir}{TCOLOR.ENDC}\n")