![]() scopes = EorzeaPlaceName ( 'The Ruby Sea', locale_scopes = scopes ) # raises error EorzeaPlaceName ( 'the ruby sea', locale_scopes = scopes ) # raises error EorzeaPlaceName ( 'ruby sea', locale_scopes = scopes ) # raises error EorzeaPlaceName ( 'rubinsee', locale_scopes = scopes ) # valid `Rubinsee` EorzeaPlaceName ( '紅玉海', locale_scopes = scopes ) # valid `紅玉海` EorzeaPlaceName ( 'The Ruby Sea' ) # valid `The Ruby Sea` EorzeaPlaceName ( 'the ruby sea' ) # valid `The Ruby Sea` EorzeaPlaceName ( 'ruby sea' ) # valid `The Ruby Sea` EorzeaPlaceName ( 'rubinsee' ) # valid `Rubinsee` EorzeaPlaceName ( '紅玉海' ) # valid `紅玉海` fuzzy_cutoff = 80 ) > place_nameīelowings are valid place names in strict mode with full locale scopes (default settings). locale_scopes =, # Used in fuzzy mode to cut-off the result under the score. place_name = EorzeaPlaceName ( 'The Ruby Sea', # `False` to fuzzy mode, default is `True` strict = True, # Stricted scope for validation of place name. weather_period ( step = 3 )) > print (weather_en ) Eorzea place nameĪn instance of EorzeaPlaceName would be always a valid place name in this pacakge.Īn invalid place name will raises InvalidEorzeaPlaceName error. forecast ( 'Eureka Pyros', t ) print ( w ) Provide a desired base time to calculate.įor t in EorzeaTime.forecast ( 'Eureka Pyros', t ) weather_en. weather_period ( step = 3 ): w = EorzeaWeather. FR, strict = True ) > print (weather_en ) forecast ( place_name, t, lang = EorzeaLang. DE, strict = True ) weather_fr = EorzeaWeather. JA, strict = True ) weather_de = EorzeaWeather. forecast ( place_name, t, strict = True ) weather_ja = EorzeaWeather. set_fuzzy_cutoff ( 95 ) weather_en = EorzeaWeather. # In fuzzy mode, you can set the cutoff score to prevent unexpected place name to be passed. place_name = EorzeaPlaceName ( 'Eureka Pyros' ) # Defalut lang is 'en' # Defalut strict is `True` for strict mode `False` for fuzzy mode. weather_period ( step = 3 )) # Use EorzeaPlaceName to ensure the place is valid or # you can directly pass the place string to forecast. # defalut step value is 5 # This method return a generator if you need to re-use it save the values as `tuple` or `list`. > EorzeaTime.now ().get_eorzea_time () 34177649220 Weather Forecast ![]() Get the eorzea timestamp (int not float).Usage from EorzeaEnv import EorzeaLang, EorzeaTime, EorzeaWeather, EorzeaPlaceName Eorzea Language enum support_langs = Eorzea Time > EorzeaTime.now () 'EorzeaTime(Sixth Embral Moon, 11, 21, 56, Phase:0.50, Althyk)' ![]()
0 Comments
Leave a Reply. |