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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mothership-client-1.0.0.tar.gz
.
File metadata
- Download URL: mothership-client-1.0.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/2.7.15rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75f648493761e208fd69c80ed1b7c2b0840339dcefa7853583cfa15968902257 |
|
MD5 | 8eae619c48418fa8c43c95ab4f8edb32 |
|
BLAKE2b-256 | 68af0ceb3590728968c0492076be40b781529128e65322971dfcacbcad7bd5db |
File details
Details for the file mothership_client-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: mothership_client-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/2.7.15rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28ca86616a9db6dc3561f7a7f30014d4065c2929d30168c9ab6c942244fae8d1 |
|
MD5 | ec676fba487f4093e5e4c0b1940b371d |
|
BLAKE2b-256 | 3f28a4af9f090939c47716c82c46df543603bc4e2bd8c73c72159cf090edc41c |