Skip to main content

The official Mothership configuration client for Python

Project description

mothership-client

The official Python client for Mothership.

Installation

pip3 install mothership-client

Requirements

  • Python 3

Usage

Since most configuration values are needed during intial bootstrap of an app, this module should probably be one of the first things your code imports.

Import the module, then initialize it using your environment key.

import mothership.client
config = mothership.client.init({
  'key': '<config-key>'
});

Then simply reference your config like: config['someKey'];

When you need config in another module, simply import the mothership module and call mothership.get() to grab the entire config:

import mothership
config = mothership.get();

For more info, see our documentation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mothership-client, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size mothership_client-1.0.0-py2.py3-none-any.whl (4.0 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size mothership-client-1.0.0.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page