msl.network.constants module

Constants that are used by the MSL-Network package.

msl.network.constants.PORT = 1875

The default port number to use for the Network Manager (the year that the BIPM was established).

Type:

int

msl.network.constants.HOSTNAME = 'build-22161379-project-167229-msl-network'

The hostname of the computer.

Type:

str

msl.network.constants.HOME_DIR = '/home/docs/.msl/network'

The default directory where all files are to be located.

Can be overwritten by specifying a MSL_NETWORK_HOME environment variable.

Type:

str

msl.network.constants.CERT_DIR = '/home/docs/.msl/network/certs'

The default directory to save PEM certificates.

Type:

str

msl.network.constants.KEY_DIR = '/home/docs/.msl/network/keys'

The default directory to save private PEM keys.

Type:

str

msl.network.constants.DATABASE = '/home/docs/.msl/network/manager.sqlite3'

The default database path.

Type:

str

msl.network.constants.IS_WINDOWS = False

Whether the operating system is Windows.

Type:

bool

msl.network.constants.IS_LINUX = True

Whether the operating system is Linux.

Type:

bool

msl.network.constants.LOCALHOST_ALIASES = {'1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa', '1.0.0.127.in-addr.arpa', '127.0.0.1', '::1', 'build-22161379-project-167229-msl-network', 'localhost'}

Aliases for localhost.

Type:

set of str