Skip to main content

Questions tagged [configuration]

Configuration is the process of specifying the settings used for a system or application.

2 votes
1 answer
126 views

I'm still going to improve it but I left my emacs to my liking. I really liked having this freedom to leave the ide as I like, most don't give you that. I'm even thinking about making an IDE in the ...
Bruno Ciccarino's user avatar
2 votes
2 answers
116 views

I have a legacy PHP project using a self-styled configuration file (named globals.inc.php) which is generated by build scripts based on a template included in the ...
JoSSte's user avatar
  • 199
4 votes
3 answers
2k views

I've implemented a config file parser in C++, which I may expand in future for personal projects. As of now the config file only supports floats, strings and booleans. The parser is based on various <...
Agent_A's user avatar
  • 93
2 votes
1 answer
115 views

I am implementing runtime configuration for a python package. I am doing this in mypkg.config.__init__.py. The idea is to load the configuration from a JSON file ...
farhanhubble's user avatar
3 votes
1 answer
255 views

I have a configuration (YAML) file used across related modules. I also have a few additional variables to be accessed globally in my modules. I want to have them at one place (an instance of a class ...
Imtiaz's user avatar
  • 35
5 votes
1 answer
987 views

The code below calls the parse_config() function which populates the global variables user, ...
Martin's user avatar
  • 201
1 vote
1 answer
417 views

I inherited a solution with many projects, and one of them contains hard coded database connection parameters. These are referenced in a number of other projects, and many of those are dependencies of ...
Tap's user avatar
  • 111
0 votes
1 answer
118 views

There is a bit of if-else-if going in within the code. Is there a construct which could come handy. Also the section names are very similar too ...
codeandcloud's user avatar
1 vote
2 answers
1k views

I have the following file that is included in others. I realise I need to put in try/except but for the purposes of this question, the below should suffice We're ...
pee2pee's user avatar
  • 380
-2 votes
1 answer
158 views

The following aliases return all the same number of results, on my Cygwin (on Windows): ...
user3341592's user avatar
2 votes
1 answer
152 views

Intro This is a spiritual successor to the question Stop cheating on home exams using python The details are not important, but I decided to reimplement everything using dataclasses. My script is now ...
N3buchadnezzar's user avatar
1 vote
1 answer
3k views

Goal My program takes a yaml config file as parameter python myprogram.py cfg.yml. all modules can access the cfg content with a simple module import the imported <...
thomast's user avatar
  • 21
0 votes
1 answer
93 views

In my Python projects, I often define parameters in a TOML, YAML, or JSON file. Those parameters are loaded into a dictionary which is utilized by various functions in the project. See below for some ...
wigging's user avatar
  • 265
1 vote
1 answer
115 views

I have a simple SDK in Python for internal use. It's basically 150~200 lines of code of simple API calls wrapped around nicely that is comfortable for us to use. It holds a few clients with methods (...
sheldonzy's user avatar
  • 471
4 votes
2 answers
249 views

UPDATES: I'm looking for an answer that can answer the questions listed in the post. Moreover, this answer will not only continue my way of thinking, but also give feedback based on it. It's just like ...
Andy Lin's user avatar

15 30 50 per page
1
2 3 4 5
9