{"id":32454379,"url":"https://github.com/arthurbook/configmate","last_synced_at":"2025-10-26T07:59:56.161Z","repository":{"id":196432504,"uuid":"695938640","full_name":"ArthurBook/configmate","owner":"ArthurBook","description":"Practical yet versatile configuration parsing","archived":false,"fork":false,"pushed_at":"2024-02-17T00:47:55.000Z","size":1063,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-22T10:41:14.428Z","etag":null,"topics":["config","configuration","configuration-parser","parser"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ArthurBook.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-09-24T17:06:57.000Z","updated_at":"2025-04-20T14:26:27.000Z","dependencies_parsed_at":"2023-10-01T21:29:21.004Z","dependency_job_id":"b765a3d0-9da3-4185-9979-f7369b85dd60","html_url":"https://github.com/ArthurBook/configmate","commit_stats":null,"previous_names":["arthurbook/configmate"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/ArthurBook/configmate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArthurBook%2Fconfigmate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArthurBook%2Fconfigmate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArthurBook%2Fconfigmate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArthurBook%2Fconfigmate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArthurBook","download_url":"https://codeload.github.com/ArthurBook/configmate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArthurBook%2Fconfigmate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281074166,"owners_count":26439421,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-26T02:00:06.575Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["config","configuration","configuration-parser","parser"],"created_at":"2025-10-26T07:59:35.104Z","updated_at":"2025-10-26T07:59:56.147Z","avatar_url":"https://github.com/ArthurBook.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"#readme\"\u003e\n        \u003cimg alt=\"ConfigMate Logo\" src=\"https://i.imgur.com/7DaKfnc.png\" style=\"height: 172px;\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\" style=\"font-size: 2.5em; margin: 0; padding: 0;\"\u003eConfigMate\u003c/h1\u003e\n\u003cp align=\"center\" style=\"font-size: 1.2em; font-weight: 300; color: #555; margin: 0;\"\u003e\n    Practical and versatile configuration parsing in Python\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://pypi.python.org/pypi/configmate\"\u003e\u003cimg alt=\"Pypi version\" src=\"https://img.shields.io/pypi/v/configmate.svg\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://pypi.python.org/pypi/configmate\"\u003e\u003cimg alt=\"Python versions\" src=\"https://img.shields.io/badge/python-3.8%5E-blue.svg\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://pypi.python.org/pypi/configmate\"\u003e\u003cimg alt=\"Downloads\" src=\"https://img.shields.io/pypi/dm/configmate\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://app.codacy.com/gh/ArthurBook/configmate/dashboard\"\u003e\u003cimg alt=\"Code quality\" src=\"https://img.shields.io/codacy/grade/451b032d35a2452ea05f14d66c30c8f3.svg\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/ArthurBook/configmate/blob/master/LICENSE\"\u003e\u003cimg alt=\"License\" src=\"https://img.shields.io/github/license/ArthurBook/configmate\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n***\n\n\u003cp\u003e\u003cstrong\u003eConfigMate\u003c/strong\u003e streamlines heavyweight config parsing into a sleek,\nzero-boilerplate experience that lets you configure with confidence.\u003c/p\u003e\n\n\u003ch2\u003eKey Features\u003c/h2\u003e\n\n\u003cul\u003e\n  \u003cli\u003e\u003cstrong\u003eExtensible file format support\u003c/strong\u003e: Automatic detection \u0026amp;\n  parsing of all standard config file formats.\u003c/li\u003e\n\n  \u003cli\u003e\u003cstrong\u003eEnvironment variable interpolation\u003c/strong\u003e: Parse environment\n  variables while keeping defaults in your configuration file.\u003c/li\u003e\n\n  \u003cli\u003e\u003cstrong\u003eOverride files\u003c/strong\u003e: Segregate base configuration management\n  such as DEV/STAG/PROD overrides in separate files.\u003c/li\u003e\n\n  \u003cli\u003e\u003cstrong\u003eCLI support\u003c/strong\u003e: Override configuration values with files\n  or values directly from an automatically generated command line interface.\u003c/li\u003e\n\n  \u003cli\u003e\u003cstrong\u003eType validation\u003c/strong\u003e: Custom validation support, and seamless\n  extension for Pydantic's fantastic validation capabilities.\u003c/li\u003e\n\u003c/ul\u003e\n\n## Get started with ConfigMate\n\nConfigMate simplifies your configuration management. Get started with these easy steps:\n\n### Installation\n\nInstall ConfigMate with all standard features:\n\n```bash\npip install \"configmate[standard]\"\n```\n\nAlternatively, install with specific features (e.g., Pydantic):\n\n```bash\npip install \"configmate[pydantic]\"\n```\n\n#### Set Up Configuration\n\n1. Create a Configuration File:\n   In this example we will do YAML, but ConfigMate supports all standard config file formats(json, toml, ini - you name it):\n\n```yaml\n# config.yaml\nDatabase configuration:\n    host: localhost\n    port: ${DB_PORT:8000}\n```\n\n2. Load your config in python:\n   Use ConfigMate to load and validate configuration in your script:\n\n```python\n# example.py\nimport configmate\nimport dataclasses\n\n@dataclasses.dataclass\nclass DatabaseConfig:\n    host: str\n    port: int\n\nconfig = configmate.get_config(\n    \"config.yaml\", \n    section='Database configuration', \n    validation=DatabaseConfig\n)\nprint(config)\n```\n\n3. Run Your Script with Different Configurations\n   Execute your script, and override configurations using environment variables or command-line arguments:\n\n```bash\n# Default configuration\npython example.py \n\u003e\u003e DatabaseConfig(host='localhost', port=8000)\n\n# Override port using an environment variable\nDB_PORT=9000 python example.py\n\u003e\u003e DatabaseConfig(host='localhost', port=9000)\n\n# Override host using a command-line argument\npython example.py ++host foreignhost\n\u003e\u003e DatabaseConfig(host='foreignhost', port=8000)\n```\n\n## Quick comparison with other config parsers\n\n| Feature / Package                     | ConfigMate | ConfigParser | File Parsers (TOML/YAML/...) | ArgParse | Pallets/Click | Google/Fire | OmegaConf | Hydra |\n|---------------------------------------|:----------:|:------------:|:---------------------------:|:--------:|:-------------:|:-----------:|:---------:|:-----:|\n| No Boilerplate                        |     ✅     |      ❌      |              ✅             |    ❌    |      ❌       |     ✅      |    ❌     |  ✅   |\n| Support for Multiple File Formats     |     ✅     |      ❌      |              ✅             |    ❌    |      ❌       |     ❌      |    ❌     |  ❌   |\n| Hierarchical Configuration            |     ✅     |      ✅      |              ✅             |    ❌    |      ❌       |     ✅      |    ✅     |  ✅   |\n| Command-line Interface (CLI) Support  |     ✅     |      ❌      |              ❌             |    ✅    |      ✅       |     ✅      |    ❌     |  ✅   |\n| Type Validation                       |     ✅     |      ❌      |          Partial            |    ❌    |      ✅       |     ❌      |  Partial  | Partial|\n| Environment Variable Interpolation    |     ✅     |      ✅      |              ❌             |    ❌    |      ❌       |     ❌      |    ✅     |  ✅   |\n| Dependency Count                      |     Low    |      Low     |            Low              |    Low   |      Low      |     Low     |    Low    | Moderate |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farthurbook%2Fconfigmate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farthurbook%2Fconfigmate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farthurbook%2Fconfigmate/lists"}