How to use the tld.conf.get_setting function in tld

To help you get started, we’ve selected a few tld examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github barseghyanartur / tld / src / tld / settings.py View on Github external
__title__ = 'tld.settings'
__version__ = '0.5'
__build__ = 0x000005
__author__ = 'Artur Barseghyan'
__all__ = ('NAMES_SOURCE_URL', 'NAMES_LOCAL_PATH', 'DEBUG')

import warnings
warnings.warn("""tld.settings is deprecated; use tld.conf.get_setting function instead.""",
              DeprecationWarning)

from tld.conf import get_setting

NAMES_SOURCE_URL = get_setting('NAMES_SOURCE_URL')

NAMES_LOCAL_PATH = get_setting('NAMES_LOCAL_PATH')

DEBUG = get_setting('DEBUG')
github barseghyanartur / tld / src / tld / settings.py View on Github external
__version__ = '0.5'
__build__ = 0x000005
__author__ = 'Artur Barseghyan'
__all__ = ('NAMES_SOURCE_URL', 'NAMES_LOCAL_PATH', 'DEBUG')

import warnings
warnings.warn("""tld.settings is deprecated; use tld.conf.get_setting function instead.""",
              DeprecationWarning)

from tld.conf import get_setting

NAMES_SOURCE_URL = get_setting('NAMES_SOURCE_URL')

NAMES_LOCAL_PATH = get_setting('NAMES_LOCAL_PATH')

DEBUG = get_setting('DEBUG')
github barseghyanartur / tld / src / tld / settings.py View on Github external
__title__ = 'tld.settings'
__version__ = '0.5'
__build__ = 0x000005
__author__ = 'Artur Barseghyan'
__all__ = ('NAMES_SOURCE_URL', 'NAMES_LOCAL_PATH', 'DEBUG')

import warnings
warnings.warn("""tld.settings is deprecated; use tld.conf.get_setting function instead.""",
              DeprecationWarning)

from tld.conf import get_setting

NAMES_SOURCE_URL = get_setting('NAMES_SOURCE_URL')

NAMES_LOCAL_PATH = get_setting('NAMES_LOCAL_PATH')

DEBUG = get_setting('DEBUG')

tld

Extract the top-level domain (TLD) from the URL given.

MPL-1.1 OR GPL-2.0-only OR LG…
Latest version published 1 year ago

Package Health Score

76 / 100
Full package analysis