Skip to main content

Standard app configuration and packaging

Project description

applauncher module

Description

The applauncher module defines a standard way to launch and manage a basic application.

Configuration class

Configuration class defines a standard logger which prompts in console and save log in a dated file. I also define a standard way to configure the app with a settings file in yml format. This yml file is a key/value pair collection and allows substitution of values using the syntax {key}

Here is an example of yml file:

mykey: myvalue
value_to_substitute: '{otherkey}'
otherkey: 3
listkey:
    - key1: value1
    - key2: value2
dictkey:
    key: value
    otherkey: othervalue
booleankey: true

Settings class

Settings is a class for which attributes are defined by the given dictionary

error function

error function defines a standard error behaviour by displaying an error and exiting the app

Project details


Download files

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

Source Distribution

pyBaseApp-1.2.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

pyBaseApp-1.2-py3-none-any.whl (6.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page