{"id":26987,"library":"fhconfparser","title":"FHConfParser","description":"Provides a config language independent way to read a config file. Supports multiple config formats (YAML, TOML, JSON, etc.) under a unified API. Current version: 2024.1. Released on 2024-01-24, active maintenance, monthly/irregular releases.","status":"active","version":"2024.1","language":"python","source_language":"en","source_url":"https://github.com/FHPythonUtils/FHConfParser","tags":["config","configuration","yaml","json","toml","ini"],"install":[{"cmd":"pip install fhconfparser","lang":"bash","label":"Install via pip"}],"dependencies":[],"imports":[{"wrong":"from fhconfparser import Config","symbol":"FHConfParser","correct":"from fhconfparser import FHConfParser"},{"symbol":"SimpleConf","correct":"from fhconfparser import SimpleConf"},{"symbol":"fhconfparser","correct":"import fhconfparser"}],"quickstart":{"code":"from fhconfparser import Config\n\nconfig = Config()\n# Load a config file (supports YAML, TOML, JSON, etc.)\ndata = config.load_config('config.yaml')\nprint(data)","lang":"python","description":"Create a Config instance and load a configuration file."},"warnings":[{"fix":"Create a single Config instance and pass it explicitly.","message":"The Config object is not a singleton; each instance has its own state. Do not assume shared state across modules.","severity":"gotcha","affected_versions":"all"},{"fix":"Use explicit loader: config.load_config('config.txt', loader='yaml')","message":"File format detection is based on file extension. Ensure your config file has a recognized extension (e.g., .yaml, .toml, .json, .ini) or use the correct loader.","severity":"gotcha","affected_versions":"all"},{"fix":"Use load_config() instead.","message":"The 'load' method (without 'config' suffix) is deprecated in v2023 and may be removed in future.","severity":"deprecated","affected_versions":">=2023"}],"env_vars":null,"search_vec":"'-01':31 '-24':32 '2024':30 '2024.1':27 'activ':33 'api':24 'config':4,11,15,37 'configur':38 'current':25 'etc':20 'fhconfpars':1 'file':12 'format':16 'independ':6 'ini':42 'json':19,40 'languag':5 'mainten':34 'monthly/irregular':35 'multipl':14 'provid':2 'read':9 'releas':28,36 'support':13 'toml':18,41 'unifi':23 'version':26 'way':7 'yaml':17,39","created_at":"2026-05-01T17:43:55.335160+00:00","updated_at":"2026-05-01T17:43:55.335160+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/FHPythonUtils/FHConfParser","docs":"https://github.com/FHPythonUtils/FHConfParser/blob/master/README.md","changelog":null,"pypi":"https://pypi.org/project/fhconfparser/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-30","last_verified":"2026-06-30","next_check":"2026-07-30","install_tag":null}}