Re: configargparse - reading option from config only

2021-08-26 Thread Richard Damon
On 8/26/21 6:01 AM, Loris Bennett wrote: > Hi, > > When using configargparse, it seems that if a value is to be read from a > config file, it also has to be defined as a command-line argument in > order to turn up as an attribute in the parser namespace. > > I can sort of see why this is the case

Re: configargparse - reading option from config only

2021-08-26 Thread tuxifreund
Hello, you could use the argparse module[1] to parse command line arguments and configparser[2] to parse configuration files following the ini file structure. Is that what you are expecting? Cheers [1]: https://docs.python.org/3/library/argparse.html [2]: https://docs.python.org/3/library/con

Re: matplotlib questions

2021-08-26 Thread Mats Wichmann
On 8/26/21 9:47 AM, Steve wrote: I am trying to modify the "Bar Graph Demo" at https://matplotlib.org/stable/gallery/index.html, Lines, bars, and markers but the more I experiment and change the code, the more messed up it becomes. I have the demo code working. This is my second attempt. I gue

Re: ANN: Dogelog Runtime, Prolog to the Moon (2021)

2021-08-26 Thread Mostowski Collapse
Having fun with a new attended query answerer for the Dogelog runtime. It can be bottled into a single Python file, no server roundtrip, just ISO core Prolog in one Python file, requires Python 3.10: >python.exe toplevel.py Dogelog Runtime, Prolog to the Moon, 0.9.3 (c) 1985-2021, XLOG Technolog

matplotlib questions

2021-08-26 Thread Steve
I am trying to modify the "Bar Graph Demo" at https://matplotlib.org/stable/gallery/index.html, Lines, bars, and markers but the more I experiment and change the code, the more messed up it becomes. I have the demo code working. This is my second attempt. I guess I accidentally got my first char

configargparse - reading option from config only

2021-08-26 Thread Loris Bennett
Hi, When using configargparse, it seems that if a value is to be read from a config file, it also has to be defined as a command-line argument in order to turn up as an attribute in the parser namespace. I can sort of see why this is the case, but there are also some options I would like to rea

Re: Making command-line args available to deeply-nested functions

2021-08-26 Thread Loris Bennett
George Fischhof writes: [snip (79 lines)] >> > Hi, >> > >> > Also you can give a try to click and / or typer packages. >> > Putting args into environment variables can be a solution too >> > All of these depends on several things: personal preferences, colleagues >> / >> > firm standards, the p

Re: Pandas: Multiple CSVs in one Zip file

2021-08-26 Thread Peter J. Holzer
On 2021-08-26 11:09:21 +0400, Abdur-Rahmaan Janhangeer wrote: > Cannot read one file in a zip file if the zip file contains multiple files. > > This example does not work https://www.py4u.net/discuss/203494 as Pandas > shows a ValueError: Multiple files found in ZIP file. Only one file per ZIP. >

Re: Pandas: Multiple CSVs in one Zip file

2021-08-26 Thread Peter Otten
On 26/08/2021 09:09, Abdur-Rahmaan Janhangeer wrote: Cannot read one file in a zip file if the zip file contains multiple files. This example does not work https://www.py4u.net/discuss/203494 as Pandas shows a ValueError: Multiple files found in ZIP file. Only one file per ZIP. If the Zip file

Pandas: Multiple CSVs in one Zip file

2021-08-26 Thread Abdur-Rahmaan Janhangeer
Greetings, Cannot read one file in a zip file if the zip file contains multiple files. This example does not work https://www.py4u.net/discuss/203494 as Pandas shows a ValueError: Multiple files found in ZIP file. Only one file per ZIP. If the Zip file has one file, fine else i cannot find a way