Skip to main content

Gambas

Gambas is a config key validator. You can confirm 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.6.x

Installation

  1. Install Gambas with pip command
    > pip install gambas
    

Usage

  1. Prepare your 2 config files, default file and target file. The file extension is limited only on cfg, json.

    # cfg file
    PSQL_HOST="127.0.0.1"
    PSQL_PORT="5432"
    PSQL_DBNAME="test_db"
    WEBHOOK_URL="http://webhook.url.com"
    ...
    
    # json file
    {
        "psql_host": "127.0.0.1",
        "psql_port": "5432",
        "psql_dbname": "test_db",
        "webhook_url": "http://webhook.url.com",
    }
    ...
    
  2. Execute the command with config files path.

    • -d: the default config file
    • -t: the target config file
    > gambas -d default_config.cfg -t target_config.cfg
    

    You also can compare files with different extensions.

    > gambas -d default_config.cfg -t target_json.json
    
  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 -d default_config.cfg -t target_config.cfg --no-error
    

Contact

Release files for gambas 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gambas 0.0.3
File Size Uploaded
gambas-0.0.3.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gambas 0.0.3
File Interpreter ABI Platform
gambas-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 14.7 kB

Release files / gambas-0.0.3.tar.gz

Download URL gambas-0.0.3.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
37ab61bbc27685fcae2faaacb11a28ffcd668dcfc8debc0bf5e5033881708345
BLAKE2b-256 checksum
How to use checksums
618c853e1486f62b150d1b9a55f1433508f11e25c4ec790e0a7f8dab309555ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

Release files / gambas-0.0.3-py3-none-any.whl

Download URL gambas-0.0.3-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f8c8d5b0b6bee8ca2252d2dcff61aeb21a242c15c7c4545cdb60ca1cf2a82a2e
BLAKE2b-256 checksum
How to use checksums
597a21d8f0ebb989277aed032f1b5ab12bfe55d2a999307b45f11afc0568bf1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page