I am using python-gitlab (https://github.com/python-gitlab/python-gitlab)
And in my code I want to get values from project issues:
statistics = project.issuesstatistics.get()
print(statistics)
print(type(statistics))
The output is the following:
<class 'gitlab.v4.objects.ProjectIssuesStatistics'> => {'statistics': {'counts': {'all': 1, 'closed': 0, 'opened': 1}}}
<class 'gitlab.v4.objects.ProjectIssuesStatistics'>
The right side is just a dict and I want to have the value for 'all'.
But how can I get the dict from the right side?
I need something like statistics.values()
In python-gitlab V4 you can use
attributesproperty to get the value of the right hand side of the arrow. Something like this:gl.issues.list[0].attirbutes