Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8846547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:00:52+00:00 2026-06-14T12:00:52+00:00

I am looking for a python configuration library that merge multiple text configuration files

  • 0

I am looking for a python configuration library that merge multiple text configuration files into single object just like json.

has anybody know a good one?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T12:00:55+00:00Added an answer on June 14, 2026 at 12:00 pm

    I wrote the pymlconf for this purpose.the configuration syntax is yaml.

    For example:

    Config files:

    #app/conf/users/sites.mysite.conf:
    name: mysite.com
    owner:
       name: My Name
       phone: My Phone Number
       address: My Address
    
    
    #app/conf/admin/root.conf:
    server:
       version: 0.3a
    sites:
       admin:
          name: admin.site.com
          owner:
             name: Admin Name
             phone: Admin Phone Number
             address: Admin Address
    
    #app/conf/admin/server.conf:
    host: 0.0.0.0
    port: 80
    
    #../other_path/../special.conf:
    licence_file: /path/to/file
    log_file: /path/to/file
    
    #app/src/builtin_config.py:
    _builtin_config={
       'server':{'name':'Power Server'}
    }
    
    OR:
    
    _builtin_config="""
        server:
           name: Power Server
    """
    

    Then look at single line usage:

    from pymlconf import ConfigManager
    from app.builtin_config import _builtin_config
    
    config_root = ConfigManager(
       _builtin_config,
       ['app/conf/admin','app/conf/users'],
       '../other_path/../special.conf')
    

    Fetching config entries:

    # All from app/conf/users/sites.mysite.conf
    print config_root.sites.mysite.name
    print config_root.sites.mysite.owner.name
    print config_root.sites.mysite.owner.address
    print config_root.sites.mysite.owner.phone
    
    # All from app/conf/admin/root.conf
    print config_root.sites.admin.name
    print config_root.sites.admin.owner.name
    print config_root.sites.admin.owner.address
    print config_root.sites.admin.owner.phone
    
    print config_root.server.name       # from _builtin_config
    print config_root.server.version    # from app/conf/admin/root.conf
    print config_root.server.host       # from app/conf/admin/server.conf
    print config_root.server.port       # from app/conf/admin/server.conf
    
    print config_root.licence_file      # from ../other_path/../special.conf
    print config_root.log_file          # from ../other_path/../special.conf
    

    It seems this covers your problem.but you can fork it on github

    Links:

    1. Python package index
    2. Source on github
    3. Documentation
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking for python stubbing library. Something that could be used to create
I'm looking for a Python library that's suitable, with DOM access too. I don't
I'm currently looking at python because I really like the text parsing capabilities and
I've just started looking into python and django.. Im pretty sure ive successfull installed
I am looking for a python SOAP 1.2 client but it seems that it
I am looking for a python module that will help me get rid of
I'm looking for a Python IDE that can help me easily locate and manage
I am a python programmer looking to make my first mobile app. I'd like
I'm looking for a Python package that can compute either/both bootstrapped confidence intervals and
I am looking for a library to parse command-line parameters that would work identically

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.