Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

evm-fm-python

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

evm-fm-python

Environment variable manager for Mac

  • 0.1.6
  • PyPI
  • Socket score

Maintainers
1

evm-fm-python

Environment variable manager for Mac, written in Python

NOTE: This project is still in the alpha phase of development

Objectives

This project is a configuration management tool for Mac aimed at keeping a local environment variable file up-to-date with values stored in external secret/key management systems.

Supported Secret/Key Management Systems

  • AWS Parameter Store

Overview

This project takes advantage of the launchd daemon on Mac operating systems to continually monitor external secret/key management systems to keep a local environment variable file up-to-date. This project allows users to create/load/unload a launchd LaunchAgent that accomplishes just that. All you need to do is provide a configuration file and specify an action and evm-fm-python takes care of the rest.

Basic Usage

Available actions:

  1. Create This action creates the LaunchAgent
    $ evm-fm --config-file <path_to_configuration_file>
    
  2. Load This action creates, loads, and starts the LaunchAgent
    $ evm-fm --config-file <path_to_configuration_file> --load
    
  3. Unload This action unloads and stops the LaunchAgent
    $ evm-fm --config-file <path_to_configuration_file> --unload
    

Arguments

Command LineMetadataRequiredDescription
-f, --config-filefile pathTrueLocation of configuration file
-l, --loadFalseWhether the LaunchAgent should be loaded
-u, --unloadFalseWhether the evm LaunchAgent should be unloaded

Configuration File

This file contains all necessary configurations for evm-fm-python to perform the available actions. The configuration file can be located anywhere that can be accessed by the evm-fm-python project.

NOTE: The configuration file needs to be a .toml file. See https://github.com/toml-lang/toml for additional information about this file type

KeyValue TypeRequiredDefaultChildrenParentDescription
env_file_pathStringTrue---File path of the environment variable file you wish evm-fm-python to update
param_store_prefixesList of StringsTrue---Prefixes you want evm-fm-python to use when pulling secret/key values from the supported secret/key management systems
config_file_locStringTrue---Path of the configuration file
launchd_std_out_log_locStringFalse/usr/local/bin/log/env_var_manager.log--Path of the stdout log file you want the LaunchAgent to write to
launchd_python_pathStringFalse/usr/bin/python--Path of the Python executable you want the LaunchAgent to use
launchd_std_err_log_locStringFalse/usr/local/bin/log/env_var_manager.log--Path of the stderr log file you want the LaunchAgent to write to
launchd_start_intervalIntegerFalse120--Time interval you want the LaunchAgent to run on in Seconds
post_commandsList of DictionariesFalse-command, shell-List of commands you want to be executed after the local environment file has been updated
commandStringTrue--post_commandsThe post command you wish to be executed
shellStringTrue--post_commandsWhether you wish the post command to be executed in a shell environment
Example Configuration File
env_file_path = "/Users/user/example/envs/.env"
param_store_prefixes = ["/Development/Test/", "/Production/Test/"]
launchd_python_path = "/Users/user/.virtualenvs/example/bin/python"
config_file_loc = '/Users/user/example/configuration_file.toml'
launchd_std_out_log_loc = "/Users/user/example/logs/env_var_manager.log"
launchd_std_err_log_loc = "/Users/user/example/logs/env_var_manager.log"
launchd_start_interval = 340

[[post_commands]]
command = "source /Users/user/example/envs/.env"
shell = true

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc