generated from Hazel/python-project
20 lines
482 B
Python
20 lines
482 B
Python
from .__about__ import __name__, __version__
|
|
from . import Country, EmptyCountry, config
|
|
|
|
import pycountry
|
|
|
|
|
|
def cli():
|
|
print(f"Running {__name__} version {__version__} from __main__.py")
|
|
config.fallback_country = "US"
|
|
t = pycountry.countries.get(alpha_2="DE")
|
|
|
|
country = EmptyCountry(pycountry_object=t)
|
|
print(type(country))
|
|
print(country)
|
|
|
|
print()
|
|
empty_country = EmptyCountry(country="zwx")
|
|
print(type(empty_country))
|
|
print(empty_country)
|