Uh oh!
There was an error while loading. Please reload this page.
Generate ta-lib function definitions. - #212
Conversation
This module generates ta-lib function definitions along with docstrings. Generated .py file then can be used by developers more easily because of already provided function parameters and docstring.
mrjbq7
commented
May 31, 2018
Is this mainly for the Abstract API? The Function API already has docstrings like this: |
ramazanpolat
commented
May 31, 2018
Uh oh!
There was an error while loading. Please reload this page.
mrjbq7
commented
May 31, 2018
I wonder if we can change the abstract api to generate these docstrings automatically when it constructs itself, rather than using a wrapper module like this. |
ramazanpolat
commented
May 31, 2018
AFAIK that is not possible since dosctrings can't be provided dynamically. |
kmecpp
commented
Jun 17, 2020
This would be very helpful |
rokups
commented
Jul 6, 2021
Came here to propose such change. Would be great if this was accepted. |
rokups
commented
Mar 10, 2023
I updated and fixed the generator script so here it is: talibgen.py.txt |
mrjbq7
commented
Apr 13, 2023
I think it is possible: |
ramazanpolat
commented
Apr 14, 2023
@mrjbq7 Above I've said this:
Actually it is possible to add docstring dynamically, but that won't help for code autocompletion. |
mrjbq7
commented
Apr 14, 2023
via email
Is the issue that the tools parsing files for doc strings aren’t able to handle a callable created dynamically with a correct docstring?On Apr 14, 2023, at 12:14 AM, Ramazan Polat ***@***.***> wrote: @mrjbq7
My solution puts docstring along with function parameters into generated function body, once this is done IDE will be able to read from that docstring when that function name is typed by the developer. Hence IDE can assist developer by auto complete because IDE already knows about parameters of the function and docstring. This is the idea behind generating functions along with proper parameters and docstrings.
Above I've said this:
AFAIK that is not possible since dosctrings can't be provided dynamically.
Actually it is possible to add docstring dynamically, but that won't help for code autocompletion.
In order to have code autocompletion, the IDE must see the docstring and parameters before you run the code. Hence providing a docstring dynamically won't help.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***> |




This module generates ta-lib function definitions along with docstrings. Generated .py file then can be used by developers more easily because of already provided function parameters and docstring.
Instructions:
1- Install ta-lib
2- Run
tafungen.py3- You will have a
tafun.pyfile4- Import
tafun.pyand use it happily.Sample generated
tafun.pyfile content: