About 50 results
Open links in new tab
  1. What's the best practice using a settings(config) file in Python?

    The goal is to simplify using many arguments in a Python program by writing a config (settings) file that dynamically can add an item. What is the best practice for using a settings (config) file or importing a …

  2. What is the best method for setting up a config file in Python

    Apr 4, 2018 · Since making use of the environment variable to choose a config file is simple enough, my question is as follows: What format is seen as the best practice in the software industry for setting up …

  3. How would you save a simple settings/configuration file in Python?

    Oct 27, 2024 · Configuration files in Python There are several ways to do this depending on the file format required. ConfigParser [.ini format] I would use the standard configparser approach unless …

  4. How to read a config file using python - Stack Overflow

    You may want to remove quotes from your config file variables content since using configParser.get ('your-config', 'path1') will add another stack of (single) quotes (tested on python3 configparser)

  5. config file not found in my python project folder

    Sep 4, 2024 · Either rename your config.py or remove the globally installed one with pip. As an aside, I wouldn't recommend installing pip modules globally unless you really know what you're doing, create …

  6. config file with a dictionary using python - Stack Overflow

    The unrepr option allows you to store and retrieve the basic Python data-types using config files. It has to use a slightly different syntax to normal ConfigObj files.

  7. convert config file into dictionary using python - Stack Overflow

    May 27, 2022 · print(dictionary) The sections method return a list of all the sections in your config file, the options method returns all of the options for a section. Using the get method of the configparser …

  8. Where to put a configuration file in Python? - Stack Overflow

    Where to put a configuration file in Python? Asked 14 years, 4 months ago Modified 1 year, 6 months ago Viewed 82k times

  9. python - location of pip.conf file - Stack Overflow

    Its uses Python's venv module for everything related to Python. I need to create a pip.conf file to activate the pickup of my personal ~/.pip/pip.conf to point it to our internal PyPi server instead of the global …

  10. Most Pythonic way to provide global configuration variables in config ...

    In my endless quest in over-complicating simple stuff, I am researching the most 'Pythonic' way to provide global configuration variables inside the typical 'config.py' found in Python egg packages...