privex.helpers.settings

Configuration options for helpers, and services they depend on, such as Redis.

To override settings from your app:

>>> from privex.helpers import settings
>>> settings.REDIS_HOST = 'redis.example.org'
>>> settings.REDIS_PORT = 1234

Copyright:

    +===================================================+
    |                 © 2019 Privex Inc.                |
    |               https://www.privex.io               |
    +===================================================+
    |                                                   |
    |        Originally Developed by Privex Inc.        |
    |        License: X11 / MIT                         |
    |                                                   |
    |        Core Developer(s):                         |
    |                                                   |
    |          (+)  Chris (@someguy123) [Privex]        |
    |          (+)  Kale (@kryogenic) [Privex]          |
    |                                                   |
    +===================================================+

Copyright 2019     Privex Inc.   ( https://www.privex.io )

Attributes

BASE_DIR

The root folder of this project (i.e.

EXTRAS_FOLDER

Folder where additional requirements files can be found for privex.helpers.setuppy.common.extras()

VERSION_FILE

The file containing the package version (for setuppy.bump_version())

DEFAULT_CACHE_TIMEOUT

Default cache timeout in seconds, used by cache adapters in the module cache

REDIS_HOST

Hostname / IP address where redis-server is running on

REDIS_PORT

Port number that Redis is running on at REDIS_HOST

REDIS_DB

Redis database to use (number)

MEMCACHED_HOST

Hostname / IP address where Memcached is running on

MEMCACHED_PORT

Port number that Memcached is running on at MEMCACHED_HOST

GEOIP_DIR

str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

GEOASN

str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

GEOASN_NAME

str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

GEOASN_DETECTED

bool(x) -> bool

GEOCITY

str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

GEOCITY_NAME

str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

GEOCITY_DETECTED

bool(x) -> bool

GEOCOUNTRY

str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

GEOCOUNTRY_NAME

str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

GEOCOUNTRY_DETECTED

bool(x) -> bool

search_geoip

Built-in mutable sequence.