\r\n

51Degrees Device Detection Python  4.4

Device Detection services for 51Degrees Pipeline

fiftyone_devicedetection_examples.example_utils.ExampleUtils Class Reference

Collaboration diagram for fiftyone_devicedetection_examples.example_utils.ExampleUtils:

[legend]

Static Public Member Functions

def  set_resource_key_in_config (config, key)
def  get_data_file_from_config (config)
def  set_data_file_in_config (config, file)
def  get_human_readable (device, property)
def  get_resource_key () def  get_cloud_endpoint () def  find_file (file_name) def  get_data_file_date (engine) def  data_file_is_old (engine) def  get_data_file_tier (engine) def  check_data_file (pipeline, logger)

Static Public Attributes

int  FIND_FILES_TIMEOUT_S = 5
int  DATA_FILE_AGE_WARNING = 30 string  RESOURCE_KEY_ENV_VAR = "resource_key" string  ENDPOINT_ENV_VAR = "cloud_endpoint"

Member Function Documentation

◆ check_data_file()

def fiftyone_devicedetection_examples.example_utils.ExampleUtils.check_data_file (   pipeline,
  logger  
)
static

◆ data_file_is_old()

def fiftyone_devicedetection_examples.example_utils.ExampleUtils.data_file_is_old (   engine )
static

◆ find_file()

def fiftyone_devicedetection_examples.example_utils.ExampleUtils.find_file (   file_name )
static

◆ get_cloud_endpoint()

def fiftyone_devicedetection_examples.example_utils.ExampleUtils.get_cloud_endpoint ( )
static

◆ get_data_file_date()

def fiftyone_devicedetection_examples.example_utils.ExampleUtils.get_data_file_date (   engine )
static

◆ get_data_file_from_config()

def fiftyone_devicedetection_examples.example_utils.ExampleUtils.get_data_file_from_config (   config )
static

◆ get_data_file_tier()

def fiftyone_devicedetection_examples.example_utils.ExampleUtils.get_data_file_tier (   engine )
static

◆ get_human_readable()

def fiftyone_devicedetection_examples.example_utils.ExampleUtils.get_human_readable (   device,
  property  
)
static

◆ get_resource_key()

def fiftyone_devicedetection_examples.example_utils.ExampleUtils.get_resource_key ( )
static

◆ get_resource_key_from_config()

def fiftyone_devicedetection_examples.example_utils.ExampleUtils.get_resource_key_from_config (   config )
static

◆ set_data_file_in_config()

def fiftyone_devicedetection_examples.example_utils.ExampleUtils.set_data_file_in_config (   config,
  file  
)
static

◆ set_resource_key_in_config()

def fiftyone_devicedetection_examples.example_utils.ExampleUtils.set_resource_key_in_config (   config,
  key  
)
static

Member Data Documentation

◆ DATA_FILE_AGE_WARNING

int fiftyone_devicedetection_examples.example_utils.ExampleUtils.DATA_FILE_AGE_WARNING = 30
static

◆ ENDPOINT_ENV_VAR

string fiftyone_devicedetection_examples.example_utils.ExampleUtils.ENDPOINT_ENV_VAR = "cloud_endpoint"
static

◆ FIND_FILES_TIMEOUT_S

int fiftyone_devicedetection_examples.example_utils.ExampleUtils.FIND_FILES_TIMEOUT_S = 5
static

◆ RESOURCE_KEY_ENV_VAR

string fiftyone_devicedetection_examples.example_utils.ExampleUtils.RESOURCE_KEY_ENV_VAR = "resource_key"
static
On This Page