Skip to main content

Automation Mojo Startup Package

Project description

mojo-startup

This package sets up a pattern for extremely early pre-configuration of variable extensibility hook for the startup configuration. This module looks for a single environment variable to be set:

MJR_STARTUP_SETTINGS

The value of this variable is accessed like so:

from mojo.startup.startupvariables import MOJO_STARTUP_VARIABLES

print(MOJO_STARTUP_VARIABLES.MJR_STARTUP_SETTINGS)

The MJR_STARTUP_SETTINGS is an environment variable that is is set to the path for a config file that should point to the configuration file that is used to startup the environment of a process.

The default value for the MJR_STARTUP_SETTINGS variable is ~/.mojo.config.

The mojo-startup module makes a singleton ConfigParser available for other modules to use. This configuration parser can be accessed by:

from mojo.startup.wellknown import StartupConfigSingleton

cparser = StartupConfigSingleton()

defaults_section = cparser["DEFAULTS"]
someval = defaults_section["SOME_VARIABLE"]

Description

This module does one very important thing. It establishes the path for all other ‘mojo’ packages on where to load default config from. This is very important because it provides extensibility as early as possible before the running of any code.

The pattern established for defaults for variables is: * Variable is set to a hard coded default * Startup configuration is checked for an override * The environment variables are checked for an override

Code Organization

  • .vscode - Common tasks

  • development - This is where the runtime environment scripts are located

  • repository-setup - Scripts for homing your repository and to your checkout and machine setup

  • userguide - Where you put your user guide

  • source/packages - Put your root folder here ‘source/packages/(root-module-folder)’

  • source/sphinx - This is the Sphinx documentation folder

  • workspaces - This is where you add VSCode workspaces templates and where workspaces show up when homed.

References

  • User Guide <userguide/userguide.rst>

  • Coding Standards <userguide/10-00-coding-standards.rst>

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

mojo_startup-2.0.3.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

mojo_startup-2.0.3-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file mojo_startup-2.0.3.tar.gz.

File metadata

  • Download URL: mojo_startup-2.0.3.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.0 CPython/3.12.1 Darwin/23.5.0

File hashes

Hashes for mojo_startup-2.0.3.tar.gz
Algorithm Hash digest
SHA256 34358bfdbc02b691eea64e55e185132fcb7b505c3891cc92b25e78441388c129
MD5 a863977e4d4fe046ee30a53a8f645c8d
BLAKE2b-256 0c5459ed93b03acdc453ec89a66267355ba6261eb05543cc61c0bf2c5dbf1f4e

See more details on using hashes here.

File details

Details for the file mojo_startup-2.0.3-py3-none-any.whl.

File metadata

  • Download URL: mojo_startup-2.0.3-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.0 CPython/3.12.1 Darwin/23.5.0

File hashes

Hashes for mojo_startup-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e7181dd3f0aecb2542bd324608fc1f97099885f6dcac7103437adfb8e5bf436d
MD5 2f705dd045ae749270d53d0cc578a63b
BLAKE2b-256 6d2f1c929b54bfa970ed42f726cf2fa5a26d2d2a79d0bfa91e96f73aa1932bb7

See more details on using hashes here.

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