Marcelo Huerta
Marcelo Huerta
In many cases, several names are needed to invoke the same command. It would be nice to have a way to specify an alias for a command, and have the...
Windows 7, Python 3.7.3, Box 4.0.3 ```python #!/usr/bin/env python3 import box info = box.Box({'uno': {2: 'tres', 'cuatro': 5}}, default_box=True, box_dots=True) print(info['uno'][2]) # tres print(info['uno.2']) # {} # it should be:...
Sometimes it's not known beforehand if the value of a string will contain a list or a dict. It would be useful to have a function to autodetect the required...
PythonWin 3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:14:34) [MSC v.1900 32 bit (Intel)] on win32. ```console >>> import pendulum >>> pendulum.parse('2016-1-17') Traceback (most recent call last): File "", line 1, in...
I saw that one of the requests has a separate directory for the italian version, while others have a version with a language suffix in the root directory. What's the...
Include `pydantic-argparse`, `clipstick` and `tyro`.
The documentation gives an example of how to create aliases: ```python def echo(*text:Parameter.REQUIRED, prefix:'p'='', suffix:'s'='', reverse:'r'=False, repeat:'n'=1): ... ``` This, however, causes most linters to warn: `Unresolved reference 'p'` for...
Given Python 2 impending EOL, it's only natural to want to have an image with which to develop web2py apps in Python 3.
In this case: ```python # clipstick_cmds.py from clipstick import parse from pydantic import BaseModel class AlfaCmd(BaseModel): """Hacer cosas de alfa""" uno: str """Parámetro para alfa""" def run(self): print(f"alfa {self.uno}") class...
Given ```python # adder1.py from clipstick import parse from pydantic import BaseModel class Adder(BaseModel): ints: int def run(self): print(sum([self.ints])) cmd = parse(Adder) cmd.run() ``` this runs OK: ```bash $ adder1.py...