internet_ml/internet_ml/__init__.py

15 lines
340 B
Python

"""Internet-ML: Allowing ML to connect to the internet"""
import sys
from importlib import metadata as importlib_metadata
def get_version() -> str:
try:
return importlib_metadata.version(__name__)
except importlib_metadata.PackageNotFoundError: # pragma: no cover
return "unknown"
version: str = get_version()