Skip to main content
File added late

1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.

This provides a simple way to handle settings in a multi-layer fashion, which allows you to composing settings by add in different configuration components. It will read from files, objects, and environment variables.

Example Usage:

from flapjack_stack import FlapjackStack
settings = FlapjackStack()
settings.add_layer_from_file('/path/to/our_file')
settings.add_layer(thing)
settings.add_layer_from_env()

Which will create a new FlapjackStack instance, then read settings in from a file, then the thing object and finally from the environment. This would result in a group of settings like:

Layer

Source

3

loaded from env

2

loaded from thing object

1

loaded from ‘/path/to/our_file’

Base

Empty created during init

And settings would be returned from the top to the bottom. For example if we had a setting called COOKIES in both the thing object and our_file, the one from the thing object would be returned.

NOTE add_layer_from_env() only searchs for environment variables already in the settings object regardless of their layer that are prefixed with an FJS_ at the moment it is called. So if you add the variable later, it will not be seen.

Release files for flapjack-stack 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

File added late

1 file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Source distribution (sdist)

Source distribution for flapjack-stack 1.0.0
File Size Uploaded
flapjack_stack-1.0.0.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flapjack-stack 1.0.0
File Interpreter ABI Platform
flapjack_stack-1.0.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 9.2 kB

Release files / flapjack_stack-1.0.0.tar.gz

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL flapjack_stack-1.0.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a460166b3b8b71e584ea7efd046bc2c445de70f8290ea75b068e31741437213c
BLAKE2b-256 checksum
How to use checksums
152a527bc85c26082489dae50546414e0e3d541850c3399188c8443469480ea7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / flapjack_stack-1.0.0-py2.py3-none-any.whl

Download URL flapjack_stack-1.0.0-py2.py3-none-any.whl
Size 5.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
e4244164da5b525accbe29184923f2b1f6e1179cdcc48e9dc952a192e8efb191
BLAKE2b-256 checksum
How to use checksums
50d4bb9adf03289abeccfbdd81c9a94cc53cf31ba835e1eca5c4276fc1981c27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page