MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / load_countries

Function load_countries

Scripts/Developer Base/Smart Notes.py:59–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57
58# Load countries
59def load_countries():
60 try:
61 import pycountry
62 names = [c.name for c in pycountry.countries]
63 return sorted(set(names))
64 except Exception:
65 return sorted([
66 'Greece', 'United States', 'United Kingdom', 'Germany', 'France', 'Spain',
67 'Italy', 'India', 'China', 'Japan', 'Australia', 'Canada', 'Brazil', 'Russia',
68 'South Africa', 'Egypt', 'Turkey', 'Mexico', 'Netherlands', 'Sweden'
69 ])
70
71TIMEZONES = load_timezones()
72COUNTRIES = load_countries()

Callers 1

Smart Notes.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected