Skip to main content

Config Key Validator

Project description

Gambas

Gambas is a config key validator. You can confirmed the config file whether its keys all exist or not.

Generally, default.cfg would be the standard for your config file. (Of course, you don't need to set default.cfg as a standard file name.) And, you has a config file used on your project, but not upload on your git due to .gitignore. I'll call it 'target config file'. Because it is a little bothering to sync two files, you sometimes might miss some keys.

Comparing two files' keys with Gambas, you can find the keys you missed of the target config file.

Getting Started

Built With

  • Python >= 3.8.x

Installation

  1. Install Gambas with pip command
    > pip install gambas
    

Usage

  1. Prepare your 2 config files, default config file and target config file.

    # default config file
    PSQL_HOST=
    PSQL_HOST=
    PSQL_DBNAME=
    WEBHOOK_URL=
    ...
    
    # target config file
    PSQL_HOST="127.0.0.1"
    PSQL_HOST="5432"
    PSQL_DBNAME="test_db"
    WEBHOOK_URL="http://webhook.url.com"
    ...
    
  2. Execute the command with config files path. The option -d. Another option -t.

    > gambas -f default_config.cfg -t target_config.cfg
    
  3. If you don't want to let an error raise, execute the command with option --no-error. In this case, the warnig comes out instead of an error message.

    > gambas -f default_config.cfg -t target_config.cfg --no-error
    

Contact

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

gambas-0.0.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

gambas-0.0.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file gambas-0.0.1.tar.gz.

File metadata

  • Download URL: gambas-0.0.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5

File hashes

Hashes for gambas-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e650fada72d50f5ec5d6c4fee3d011b43b1b6f15876dcd00801bb1e91638e51b
MD5 1fc0e5aceb1cabbcf286abc544992d40
BLAKE2b-256 8a0dff42ef29edd7b4cdcd9ac0faf437dde52f2904b7c839f932bd92c65e53fd

See more details on using hashes here.

File details

Details for the file gambas-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: gambas-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5

File hashes

Hashes for gambas-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c91453ad9eb6de5d48ae8fdc3e74ec44b068b27a351df37fd15d7368b483211b
MD5 a9d7dbee84da2f84d4302df6be82ca4c
BLAKE2b-256 bf8c1c207eaa2dbb1b0cbac701d57d248a61a41722460911856f88c078a2fed9

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