glnova.project.async_project
async_project
Asynchronous GitLab Project resource.
Classes
glnova.project.async_project.AsyncProject
Bases: AsyncResource, BaseProject
Asynchronous GitLab Project resource.
Source code in src/glnova/resource/async_resource.py
Functions
glnova.project.async_project.AsyncProject.list_projects
async
list_projects(user_id: int | str | None = None, group_id: int | str | None = None, archived: bool | None = None, id_after: int | None = None, id_before: int | None = None, imported: bool | None = None, include_hidden: bool | None = None, include_pending_delete: bool | None = None, last_activity_after: datetime | None = None, last_activity_before: datetime | None = None, membership: bool | None = None, min_access_level: Literal[5, 10, 15, 20, 30, 40, 50] | None = None, order_by: Literal['id', 'name', 'path', 'created_at', 'updated_at', 'star_count', 'last_activity_at', 'similarity', 'repository_size', 'storage_size', 'packages_size', 'wiki_size'] | None = None, owned: bool | None = None, repository_checksum_failed: bool | None = None, repository_storage: str | None = None, search_namespaces: bool | None = None, search: str | None = None, simple: bool | None = None, sort: Literal['asc', 'desc'] | None = None, starred: bool | None = None, statistics: bool | None = None, topic_id: int | None = None, topic: list[str] | str | None = None, updated_after: datetime | None = None, updated_before: datetime | None = None, visibility: Literal['private', 'internal', 'public'] | None = None, wiki_checksum_failed: bool | None = None, with_custom_attributes: bool | None = None, with_issues_enabled: bool | None = None, with_merge_requests_enabled: bool | None = None, with_programming_language: str | None = None, marked_for_deletion_on: date | None = None, active: bool | None = None, with_shared: bool | None = None, include_subgroups: bool | None = None, with_security_reports: bool | None = None, etag: str | None = None, **kwargs: Any) -> tuple[list[dict[str, Any]], dict[str, Any]]
List projects with various filtering options.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
user_id
|
int | str | None
|
The user ID or username. Defaults to None. |
None
|
group_id
|
int | str | None
|
The group ID or group name. Defaults to None. |
None
|
archived
|
bool | None
|
Limit by archived status. Defaults to None. |
None
|
id_after
|
int | None
|
Limit by ID after. Defaults to None. |
None
|
id_before
|
int | None
|
Limit by ID before. Defaults to None. |
None
|
imported
|
bool | None
|
Limit by imported status. Defaults to None. |
None
|
include_hidden
|
bool | None
|
Include hidden projects. Defaults to None. |
None
|
include_pending_delete
|
bool | None
|
Include pending delete projects. Defaults to None. |
None
|
last_activity_after
|
datetime | None
|
Limit by last activity after. Defaults to None. |
None
|
last_activity_before
|
datetime | None
|
Limit by last activity before. Defaults to None. |
None
|
membership
|
bool | None
|
Limit by membership status. Defaults to None. |
None
|
min_access_level
|
Literal[5, 10, 15, 20, 30, 40, 50] | None
|
Minimum access level. Defaults to None. |
None
|
order_by
|
Literal['id', 'name', 'path', 'created_at', 'updated_at', 'star_count', 'last_activity_at', 'similarity', 'repository_size', 'storage_size', 'packages_size', 'wiki_size'] | None
|
Order by field. Defaults to None. |
None
|
owned
|
bool | None
|
Limit by owned status. Defaults to None. |
None
|
repository_checksum_failed
|
bool | None
|
Limit by repository checksum failed status. Defaults to None. |
None
|
repository_storage
|
str | None
|
Repository storage name. Defaults to None. |
None
|
search_namespaces
|
bool | None
|
Search in namespaces. Defaults to None. |
None
|
search
|
str | None
|
Search term. Defaults to None. |
None
|
simple
|
bool | None
|
Simple response format. Defaults to None. |
None
|
sort
|
Literal['asc', 'desc'] | None
|
Sort order. Defaults to None. |
None
|
starred
|
bool | None
|
Limit by starred status. Defaults to None. |
None
|
statistics
|
bool | None
|
Include statistics. Defaults to None. |
None
|
topic_id
|
int | None
|
Limit by topic ID. Defaults to None. |
None
|
topic
|
list[str] | str | None
|
Limit by topics. Defaults to None. |
None
|
updated_after
|
datetime | None
|
Limit by updated after. Defaults to None. |
None
|
updated_before
|
datetime | None
|
Limit by updated before. Defaults to None. |
None
|
visibility
|
Literal['private', 'internal', 'public'] | None
|
Limit by visibility level. Defaults to None. |
None
|
wiki_checksum_failed
|
bool | None
|
Limit by wiki checksum failed status. Defaults to None. |
None
|
with_custom_attributes
|
bool | None
|
Include custom attributes. Defaults to None. |
None
|
with_issues_enabled
|
bool | None
|
Include projects with issues enabled. Defaults to None. |
None
|
with_merge_requests_enabled
|
bool | None
|
Include projects with merge requests enabled. Defaults to None. |
None
|
with_programming_language
|
str | None
|
Limit by programming language. Defaults to None. |
None
|
marked_for_deletion_on
|
date | None
|
Limit by marked for deletion date. Defaults to None. |
None
|
active
|
bool | None
|
Limit by active status. Defaults to None. |
None
|
with_shared
|
bool | None
|
Include shared projects (for group projects). Defaults to None. |
None
|
include_subgroups
|
bool | None
|
Include subgroup projects (for group projects). Defaults to None. |
None
|
with_security_reports
|
bool | None
|
Include security reports (for group projects). Defaults to None. |
None
|
etag
|
str | None
|
ETag for caching. Defaults to None. |
None
|
**kwargs
|
Any
|
Additional keyword arguments. |
{}
|
Returns:
| Type | Description |
|---|---|
tuple[list[dict[str, Any]], dict[str, Any]]
|
A tuple containing:
|
Source code in src/glnova/project/async_project.py
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 | |