Python Forum
configuration formats / languages
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
configuration formats / languages
#11
there are two kinds of "human editable" to consider, that these people making these standards do no make clear.

1.  a human can find particular strings or numbers and change them, in a file already built by some program. they might be able to use the sed program if the strings are unique.

2.  a human can create this file from scratch ... at least when the needed size is not too large.


i prefer a format that works for both needs.  JSON and XML do poorly at number 2 (BTDT).  so i went with python as the format for my things.  most of my configs are fairly small.

dir = "~/keep"
blocksize    = 4096 # for both read and write
error_action = retry
retry_times  = 15
i think that with a few examples, most computer users that can edit a text file can make these. on the second example, some names like "retry" and "abort" could be predefined in the dictionary used as the local namespace when calling exec().
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
configuration formats / languages - by Skaperen - Sep-18-2017, 06:19 AM
RE: configuration formats / languages - by wavic - Sep-18-2017, 10:15 AM
RE: configuration formats / languages - by Skaperen - Sep-19-2017, 05:07 AM
RE: configuration formats / languages - by nilamo - Sep-28-2017, 07:22 PM
RE: configuration formats / languages - by Skaperen - Sep-29-2017, 04:33 AM
RE: configuration formats / languages - by nilamo - Sep-29-2017, 03:06 PM
RE: configuration formats / languages - by Skaperen - Oct-02-2017, 12:11 AM
RE: configuration formats / languages - by wavic - Sep-29-2017, 08:14 PM
RE: configuration formats / languages - by wavic - Oct-02-2017, 12:49 AM
RE: configuration formats / languages - by Skaperen - Oct-02-2017, 07:16 AM
RE: configuration formats / languages - by nilamo - Oct-02-2017, 03:55 PM
RE: configuration formats / languages - by Skaperen - Oct-03-2017, 01:21 AM
RE: configuration formats / languages - by nilamo - Oct-03-2017, 05:08 AM
RE: configuration formats / languages - by Skaperen - Oct-03-2017, 09:01 AM
RE: configuration formats / languages - by sjdv1982 - Oct-14-2017, 09:27 PM
RE: configuration formats / languages - by Skaperen - Oct-15-2017, 02:05 AM
RE: configuration formats / languages - by sjdv1982 - Oct-15-2017, 12:42 PM
RE: configuration formats / languages - by Skaperen - Oct-16-2017, 02:30 AM
RE: configuration formats / languages - by wavic - Oct-16-2017, 03:43 AM
RE: configuration formats / languages - by Skaperen - Oct-16-2017, 08:14 AM
RE: configuration formats / languages - by wavic - Oct-16-2017, 10:55 AM
RE: configuration formats / languages - by Skaperen - Oct-17-2017, 02:08 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python vs low level languages, (say C++) astral_travel 1 574 Apr-07-2024, 01:22 AM
Last Post: PyDan
  different programming languages/words in text editors alok 7 3,778 Jul-05-2021, 03:46 PM
Last Post: alok
  Stanza: A Python NLP Library for Many Human Languages, by the Stanford NLP Group buran 0 1,869 Mar-26-2020, 05:36 PM
Last Post: buran
  Suggestions for a machine learning model for invoice processing multiple languages? animeshsarraf 1 2,246 May-26-2019, 04:43 AM
Last Post: heiner55
  Interaction between different programming languages Krookroo 3 4,060 Sep-23-2017, 08:50 PM
Last Post: Krookroo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020