gitea.organization
organization
Organization package.
Classes
gitea.organization.AsyncOrganization
Bases: AsyncResource, BaseOrganization
Asynchronous Gitea Organization resource.
Source code in src/gitea/resource/async_resource.py
Methods:
gitea.organization.AsyncOrganization.list_organizations
async
list_organizations(
username: str | None = None,
page: int | None = None,
limit: int | None = None,
**kwargs: Any,
) -> tuple[list[dict[str, Any]], dict[str, Any]]
List the organizations of an account, or of the authenticated account.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
username
|
str | None
|
The account whose organizations are listed. |
None
|
page
|
int | None
|
The page number for pagination. |
None
|
limit
|
int | None
|
The number of organizations per page. |
None
|
**kwargs
|
Any
|
Additional arguments to pass to the request. |
{}
|
Returns:
| Type | Description |
|---|---|
tuple[list[dict[str, Any]], dict[str, Any]]
|
A tuple containing a list of organizations and the status code. |
Source code in src/gitea/organization/async_organization.py
gitea.organization.Organization
Bases: Resource, BaseOrganization
Gitea Organization resource.
Source code in src/gitea/resource/resource.py
Methods:
gitea.organization.Organization.list_organizations
list_organizations(
username: str | None = None,
page: int | None = None,
limit: int | None = None,
**kwargs: Any,
) -> tuple[list[dict[str, Any]], dict[str, Any]]
List the organizations of an account, or of the authenticated account.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
username
|
str | None
|
The account whose organizations are listed. |
None
|
page
|
int | None
|
The page number for pagination. |
None
|
limit
|
int | None
|
The number of organizations per page. |
None
|
**kwargs
|
Any
|
Additional arguments to pass to the request. |
{}
|
Returns:
| Type | Description |
|---|---|
tuple[list[dict[str, Any]], dict[str, Any]]
|
A tuple containing a list of organizations and the status code. |