Skip to content

Constants

psengine.constants

BACKOFF_FACTOR module-attribute

BACKOFF_FACTOR = 1

DEFAULT_LIMIT module-attribute

DEFAULT_LIMIT = 10

DEFAULT_MAX_WORKERS module-attribute

DEFAULT_MAX_WORKERS = 10

INDICATOR_INTEL_CARD_URL module-attribute

INDICATOR_INTEL_CARD_URL = (
    RF_PORTAL_BASE_URL + '/live/sc/entity/{}:{}'
)

POOL_MAX_SIZE module-attribute

POOL_MAX_SIZE = 120

REQUEST_TIMEOUT module-attribute

REQUEST_TIMEOUT = 120

RETRY_TOTAL module-attribute

RETRY_TOTAL = 5

RF_PORTAL_BASE_URL module-attribute

RF_PORTAL_BASE_URL = 'https://app.recordedfuture.com'

RF_TOKEN_ENV_VAR module-attribute

RF_TOKEN_ENV_VAR = 'RF_TOKEN'

RF_TOKEN_VALIDATION_REGEX module-attribute

RF_TOKEN_VALIDATION_REGEX = '^[a-f0-9]{32}$'

ROOT_DIR module-attribute

ROOT_DIR = path[0]

SSL_VERIFY module-attribute

SSL_VERIFY = True

STATUS_FORCELIST module-attribute

STATUS_FORCELIST = [502, 503, 504]

TIMESTAMP_STR module-attribute

TIMESTAMP_STR = '%Y-%m-%d %H:%M:%S'

TRUNCATE_COMMENT module-attribute

TRUNCATE_COMMENT = '\n\nThis {type_} has been truncated due to a character limit imposed by this tool. View the full {type_} at {url}'