Module ogr.services.pagure.group

Classes

class PagureGroup (name: str, raw_group: dict)
Expand source code
class PagureGroup:
    service: "ogr_pagure.PagureService"

    def __init__(self, name: str, raw_group: dict) -> None:
        self.name = name
        # see https://pagure.io/api/0/#groups-tab
        self._raw_group = raw_group

    def __str__(self) -> str:
        return f'PagureGroup(name="{self.name}")'

    @property
    def members(self) -> list[str]:
        return self._raw_group["members"]

Class variables

var servicePagureService

Instance variables

prop members : list[str]
Expand source code
@property
def members(self) -> list[str]:
    return self._raw_group["members"]