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 variable is set to the path for a config file that should point to the configuration file that is used to startup the runtime.

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 in 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-1.3.6.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

mojo_startup-1.3.6-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mojo_startup-1.3.6.tar.gz
Algorithm Hash digest
SHA256 ded9335e131f23acaad07f16572d196f5d2e12cb47cabc72e358724fabe01c71
MD5 8b64986cf2d943ee099a02a1233ce935
BLAKE2b-256 b80a51b9dd4e195e2e883eaf32b879b0b0e481c758fa95e8860e213014f11d76

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mojo_startup-1.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 594a6d0d90a845af0c75b55a44d5dec2ffdd4fd6b0860ffdaa5cc9feabf57241
MD5 2d45310dd795fbb5619d35b7eb496d8b
BLAKE2b-256 c8d5bfbd4a26f76ed37c0bb68779a1c12c59ea6805e4cfd17c363c623eeebe08

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