cuery.resources#

Attributes#

Functions#

path(*paths)

Get full path to local resource.

google_langs()

google_countries()

google_country_coords()

google_lang_id(lang)

Get Google Ads language ID from language name.

google_country_id(country)

Get Google Ads country ID from country name or code.

country_coords(country)

Get latitude and longitude for a given country code or name.

Package Contents#

cuery.resources.path(*paths)#

Get full path to local resource.

cuery.resources.google_langs()#
cuery.resources.google_countries()#
cuery.resources.google_country_coords()#
cuery.resources.GOOGLE_ADS_LANGS = None#
cuery.resources.GOOGLE_ADS_COUNTRIES = None#
cuery.resources.GOOGLE_COUNTRY_COORDS = None#
cuery.resources.google_lang_id(lang)#

Get Google Ads language ID from language name.

Parameters:

lang (str)

Return type:

int

cuery.resources.google_country_id(country)#

Get Google Ads country ID from country name or code.

Parameters:

country (str)

Return type:

str

cuery.resources.country_coords(country)#

Get latitude and longitude for a given country code or name.

Parameters:

country (str)

Return type:

tuple[float, float] | None