glabflow 0.1.0a2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- glabflow-0.1.0a2/LICENSE +220 -0
- glabflow-0.1.0a2/PKG-INFO +319 -0
- glabflow-0.1.0a2/README.md +286 -0
- glabflow-0.1.0a2/pyproject.toml +97 -0
- glabflow-0.1.0a2/src/labflow/__init__.py +89 -0
- glabflow-0.1.0a2/src/labflow/_bench.py +548 -0
- glabflow-0.1.0a2/src/labflow/_client.py +1560 -0
- glabflow-0.1.0a2/src/labflow/_constants.py +180 -0
- glabflow-0.1.0a2/src/labflow/_errors.py +64 -0
- glabflow-0.1.0a2/src/labflow/_fanout.py +96 -0
- glabflow-0.1.0a2/src/labflow/_fanout.py.backup +126 -0
- glabflow-0.1.0a2/src/labflow/_fanout.py.debug +118 -0
- glabflow-0.1.0a2/src/labflow/_lazy.py +94 -0
- glabflow-0.1.0a2/src/labflow/_retry.py +73 -0
- glabflow-0.1.0a2/src/labflow/_webhooks.py +272 -0
- glabflow-0.1.0a2/src/labflow/api/__init__.py +159 -0
- glabflow-0.1.0a2/src/labflow/api/_base.py +43 -0
- glabflow-0.1.0a2/src/labflow/api/access_tokens.py +137 -0
- glabflow-0.1.0a2/src/labflow/api/analytics.py +76 -0
- glabflow-0.1.0a2/src/labflow/api/appearance.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/approval_rules.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/audit.py +59 -0
- glabflow-0.1.0a2/src/labflow/api/audit_events.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/award_emoji.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/badges.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/boards.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/branches.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/broadcast_messages.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/changelog.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/ci.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/code_owners.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/commits.py +78 -0
- glabflow-0.1.0a2/src/labflow/api/compare.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/composer_packages.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/conan_packages.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/coverage_definitions.py +64 -0
- glabflow-0.1.0a2/src/labflow/api/dependency_proxy.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/deploy_keys.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/deploy_tokens.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/deployments.py +78 -0
- glabflow-0.1.0a2/src/labflow/api/discussions.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/dockerfile_templates.py +64 -0
- glabflow-0.1.0a2/src/labflow/api/dora.py +57 -0
- glabflow-0.1.0a2/src/labflow/api/environments.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/epics.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/error_tracking.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/events.py +66 -0
- glabflow-0.1.0a2/src/labflow/api/external_status_checks.py +64 -0
- glabflow-0.1.0a2/src/labflow/api/feature_flags.py +90 -0
- glabflow-0.1.0a2/src/labflow/api/generic_packages.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/geo_nodes.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/groups.py +82 -0
- glabflow-0.1.0a2/src/labflow/api/helm_packages.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/hooks.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/incident_management.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/issues.py +68 -0
- glabflow-0.1.0a2/src/labflow/api/iterations.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/jobs.py +100 -0
- glabflow-0.1.0a2/src/labflow/api/keys.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/labels.py +77 -0
- glabflow-0.1.0a2/src/labflow/api/ldap_groups.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/members.py +99 -0
- glabflow-0.1.0a2/src/labflow/api/merge_request_approvals.py +64 -0
- glabflow-0.1.0a2/src/labflow/api/merge_requests.py +122 -0
- glabflow-0.1.0a2/src/labflow/api/merge_trains.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/milestones.py +78 -0
- glabflow-0.1.0a2/src/labflow/api/mrs.py +5 -0
- glabflow-0.1.0a2/src/labflow/api/namespaces.py +40 -0
- glabflow-0.1.0a2/src/labflow/api/notes.py +76 -0
- glabflow-0.1.0a2/src/labflow/api/npm_packages.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/nuget_packages.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/packages.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/pages_domains.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/pipeline_schedules.py +71 -0
- glabflow-0.1.0a2/src/labflow/api/pipelines.py +75 -0
- glabflow-0.1.0a2/src/labflow/api/projects.py +71 -0
- glabflow-0.1.0a2/src/labflow/api/protected_branches.py +104 -0
- glabflow-0.1.0a2/src/labflow/api/push_rules.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/pypi_packages.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/registry.py +149 -0
- glabflow-0.1.0a2/src/labflow/api/registry_repositories.py +64 -0
- glabflow-0.1.0a2/src/labflow/api/releases.py +78 -0
- glabflow-0.1.0a2/src/labflow/api/repository.py +207 -0
- glabflow-0.1.0a2/src/labflow/api/rubygems_packages.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/runners.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/search.py +78 -0
- glabflow-0.1.0a2/src/labflow/api/service_desk.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/settings.py +58 -0
- glabflow-0.1.0a2/src/labflow/api/signatures.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/snippets.py +64 -0
- glabflow-0.1.0a2/src/labflow/api/sprints.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/statistics.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/tags.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/templates.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/terraform_packages.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/todos.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/topics.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/triggers.py +62 -0
- glabflow-0.1.0a2/src/labflow/api/users.py +200 -0
- glabflow-0.1.0a2/src/labflow/api/variables.py +84 -0
- glabflow-0.1.0a2/src/labflow/api/vulnerabilities.py +97 -0
- glabflow-0.1.0a2/src/labflow/api/wikis.py +83 -0
- glabflow-0.1.0a2/src/labflow/graphql/__init__.py +604 -0
- glabflow-0.1.0a2/src/labflow/graphql/builder.py +401 -0
- glabflow-0.1.0a2/src/labflow/graphql/cache.py +252 -0
- glabflow-0.1.0a2/src/labflow/graphql/client.py +974 -0
- glabflow-0.1.0a2/src/labflow/graphql/complexity.py +304 -0
- glabflow-0.1.0a2/src/labflow/graphql/dataloader.py +335 -0
- glabflow-0.1.0a2/src/labflow/graphql/generated_exports.py +412 -0
- glabflow-0.1.0a2/src/labflow/graphql/mutations.py +314 -0
- glabflow-0.1.0a2/src/labflow/graphql/persistence.py +373 -0
- glabflow-0.1.0a2/src/labflow/graphql/queries.py +425 -0
- glabflow-0.1.0a2/src/labflow/graphql/queries_admin_generated.py +133 -0
- glabflow-0.1.0a2/src/labflow/graphql/queries_ai_generated.py +96 -0
- glabflow-0.1.0a2/src/labflow/graphql/queries_analytics_generated.py +100 -0
- glabflow-0.1.0a2/src/labflow/graphql/queries_cicd.py +673 -0
- glabflow-0.1.0a2/src/labflow/graphql/queries_cicd_generated.py +162 -0
- glabflow-0.1.0a2/src/labflow/graphql/queries_issues.py +603 -0
- glabflow-0.1.0a2/src/labflow/graphql/queries_issues_generated.py +126 -0
- glabflow-0.1.0a2/src/labflow/graphql/queries_mutations_generated.py +1523 -0
- glabflow-0.1.0a2/src/labflow/graphql/queries_projects.py +647 -0
- glabflow-0.1.0a2/src/labflow/graphql/queries_projects_generated.py +155 -0
- glabflow-0.1.0a2/src/labflow/graphql/queries_security.py +898 -0
- glabflow-0.1.0a2/src/labflow/graphql/queries_security_generated.py +122 -0
- glabflow-0.1.0a2/src/labflow/graphql/queries_users.py +340 -0
- glabflow-0.1.0a2/src/labflow/graphql/queries_users_generated.py +109 -0
- glabflow-0.1.0a2/src/labflow/graphql/rate_limit.py +365 -0
- glabflow-0.1.0a2/src/labflow/graphql/subscriptions.py +448 -0
- glabflow-0.1.0a2/src/labflow/graphql/types.py +1053 -0
- glabflow-0.1.0a2/src/labflow/models/__init__.py +159 -0
- glabflow-0.1.0a2/src/labflow/models/access_token.py +59 -0
- glabflow-0.1.0a2/src/labflow/models/access_tokens.py +18 -0
- glabflow-0.1.0a2/src/labflow/models/analytics.py +50 -0
- glabflow-0.1.0a2/src/labflow/models/appearance.py +67 -0
- glabflow-0.1.0a2/src/labflow/models/approval_rules.py +18 -0
- glabflow-0.1.0a2/src/labflow/models/audit.py +34 -0
- glabflow-0.1.0a2/src/labflow/models/audit_events.py +18 -0
- glabflow-0.1.0a2/src/labflow/models/award_emoji.py +16 -0
- glabflow-0.1.0a2/src/labflow/models/badges.py +14 -0
- glabflow-0.1.0a2/src/labflow/models/boards.py +15 -0
- glabflow-0.1.0a2/src/labflow/models/branch.py +37 -0
- glabflow-0.1.0a2/src/labflow/models/branches.py +73 -0
- glabflow-0.1.0a2/src/labflow/models/broadcast_messages.py +18 -0
- glabflow-0.1.0a2/src/labflow/models/changelog.py +11 -0
- glabflow-0.1.0a2/src/labflow/models/ci.py +22 -0
- glabflow-0.1.0a2/src/labflow/models/code_owners.py +13 -0
- glabflow-0.1.0a2/src/labflow/models/commit.py +91 -0
- glabflow-0.1.0a2/src/labflow/models/compare.py +14 -0
- glabflow-0.1.0a2/src/labflow/models/composer_packages.py +15 -0
- glabflow-0.1.0a2/src/labflow/models/conan_packages.py +15 -0
- glabflow-0.1.0a2/src/labflow/models/coverage_definitions.py +14 -0
- glabflow-0.1.0a2/src/labflow/models/dependency_proxy.py +13 -0
- glabflow-0.1.0a2/src/labflow/models/deploy_keys.py +16 -0
- glabflow-0.1.0a2/src/labflow/models/deploy_tokens.py +17 -0
- glabflow-0.1.0a2/src/labflow/models/deployment.py +19 -0
- glabflow-0.1.0a2/src/labflow/models/deployments.py +65 -0
- glabflow-0.1.0a2/src/labflow/models/discussions.py +30 -0
- glabflow-0.1.0a2/src/labflow/models/dockerfile_templates.py +11 -0
- glabflow-0.1.0a2/src/labflow/models/dora.py +24 -0
- glabflow-0.1.0a2/src/labflow/models/environments.py +48 -0
- glabflow-0.1.0a2/src/labflow/models/epics.py +26 -0
- glabflow-0.1.0a2/src/labflow/models/error_tracking.py +17 -0
- glabflow-0.1.0a2/src/labflow/models/event.py +5 -0
- glabflow-0.1.0a2/src/labflow/models/events.py +35 -0
- glabflow-0.1.0a2/src/labflow/models/external_status_checks.py +16 -0
- glabflow-0.1.0a2/src/labflow/models/feature_flag.py +53 -0
- glabflow-0.1.0a2/src/labflow/models/generic_packages.py +15 -0
- glabflow-0.1.0a2/src/labflow/models/geo_nodes.py +100 -0
- glabflow-0.1.0a2/src/labflow/models/group.py +5 -0
- glabflow-0.1.0a2/src/labflow/models/groups.py +41 -0
- glabflow-0.1.0a2/src/labflow/models/helm_packages.py +15 -0
- glabflow-0.1.0a2/src/labflow/models/hook.py +25 -0
- glabflow-0.1.0a2/src/labflow/models/hooks.py +122 -0
- glabflow-0.1.0a2/src/labflow/models/incident_management.py +38 -0
- glabflow-0.1.0a2/src/labflow/models/issue.py +5 -0
- glabflow-0.1.0a2/src/labflow/models/issues.py +56 -0
- glabflow-0.1.0a2/src/labflow/models/iterations.py +24 -0
- glabflow-0.1.0a2/src/labflow/models/job.py +19 -0
- glabflow-0.1.0a2/src/labflow/models/jobs.py +86 -0
- glabflow-0.1.0a2/src/labflow/models/keys.py +12 -0
- glabflow-0.1.0a2/src/labflow/models/label.py +5 -0
- glabflow-0.1.0a2/src/labflow/models/labels.py +32 -0
- glabflow-0.1.0a2/src/labflow/models/ldap_groups.py +13 -0
- glabflow-0.1.0a2/src/labflow/models/member.py +5 -0
- glabflow-0.1.0a2/src/labflow/models/members.py +37 -0
- glabflow-0.1.0a2/src/labflow/models/merge_request_approvals.py +21 -0
- glabflow-0.1.0a2/src/labflow/models/merge_requests.py +84 -0
- glabflow-0.1.0a2/src/labflow/models/merge_trains.py +48 -0
- glabflow-0.1.0a2/src/labflow/models/milestone.py +19 -0
- glabflow-0.1.0a2/src/labflow/models/milestones.py +65 -0
- glabflow-0.1.0a2/src/labflow/models/mr.py +17 -0
- glabflow-0.1.0a2/src/labflow/models/namespace.py +19 -0
- glabflow-0.1.0a2/src/labflow/models/namespaces.py +52 -0
- glabflow-0.1.0a2/src/labflow/models/note.py +5 -0
- glabflow-0.1.0a2/src/labflow/models/notes.py +44 -0
- glabflow-0.1.0a2/src/labflow/models/npm_packages.py +15 -0
- glabflow-0.1.0a2/src/labflow/models/nuget_packages.py +15 -0
- glabflow-0.1.0a2/src/labflow/models/packages.py +17 -0
- glabflow-0.1.0a2/src/labflow/models/pages_domains.py +20 -0
- glabflow-0.1.0a2/src/labflow/models/pipeline.py +17 -0
- glabflow-0.1.0a2/src/labflow/models/pipeline_schedule.py +13 -0
- glabflow-0.1.0a2/src/labflow/models/pipeline_schedules.py +36 -0
- glabflow-0.1.0a2/src/labflow/models/pipelines.py +68 -0
- glabflow-0.1.0a2/src/labflow/models/project.py +5 -0
- glabflow-0.1.0a2/src/labflow/models/projects.py +105 -0
- glabflow-0.1.0a2/src/labflow/models/protected_branches.py +19 -0
- glabflow-0.1.0a2/src/labflow/models/push_rules.py +66 -0
- glabflow-0.1.0a2/src/labflow/models/pypi_packages.py +15 -0
- glabflow-0.1.0a2/src/labflow/models/registry.py +85 -0
- glabflow-0.1.0a2/src/labflow/models/registry_repositories.py +18 -0
- glabflow-0.1.0a2/src/labflow/models/release.py +19 -0
- glabflow-0.1.0a2/src/labflow/models/releases.py +61 -0
- glabflow-0.1.0a2/src/labflow/models/repository.py +94 -0
- glabflow-0.1.0a2/src/labflow/models/rubygems_packages.py +15 -0
- glabflow-0.1.0a2/src/labflow/models/runners.py +37 -0
- glabflow-0.1.0a2/src/labflow/models/search.py +41 -0
- glabflow-0.1.0a2/src/labflow/models/service_desk.py +32 -0
- glabflow-0.1.0a2/src/labflow/models/settings.py +280 -0
- glabflow-0.1.0a2/src/labflow/models/signatures.py +14 -0
- glabflow-0.1.0a2/src/labflow/models/snippet.py +5 -0
- glabflow-0.1.0a2/src/labflow/models/snippets.py +35 -0
- glabflow-0.1.0a2/src/labflow/models/sprints.py +18 -0
- glabflow-0.1.0a2/src/labflow/models/statistics.py +98 -0
- glabflow-0.1.0a2/src/labflow/models/tag.py +5 -0
- glabflow-0.1.0a2/src/labflow/models/tags.py +28 -0
- glabflow-0.1.0a2/src/labflow/models/templates.py +10 -0
- glabflow-0.1.0a2/src/labflow/models/terraform_packages.py +15 -0
- glabflow-0.1.0a2/src/labflow/models/todos.py +19 -0
- glabflow-0.1.0a2/src/labflow/models/topics.py +16 -0
- glabflow-0.1.0a2/src/labflow/models/triggers.py +16 -0
- glabflow-0.1.0a2/src/labflow/models/user.py +5 -0
- glabflow-0.1.0a2/src/labflow/models/users.py +50 -0
- glabflow-0.1.0a2/src/labflow/models/variable.py +17 -0
- glabflow-0.1.0a2/src/labflow/models/variables.py +40 -0
- glabflow-0.1.0a2/src/labflow/models/vulnerabilities.py +40 -0
- glabflow-0.1.0a2/src/labflow/models/vulnerability.py +75 -0
- glabflow-0.1.0a2/src/labflow/models/wiki.py +19 -0
- glabflow-0.1.0a2/src/labflow/models/wikis.py +46 -0
glabflow-0.1.0a2/LICENSE
ADDED
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
|
2
|
+
Version 3, 29 June 2007
|
|
3
|
+
|
|
4
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
5
|
+
Everyone is permitted to copy and distribute verbatim copies
|
|
6
|
+
of this license document, but changing it is not allowed.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
This version of the GNU Lesser General Public License incorporates
|
|
10
|
+
the terms and conditions of version 3 of the GNU General Public
|
|
11
|
+
License, supplemented by the additional permissions listed below.
|
|
12
|
+
|
|
13
|
+
0. Additional Definitions.
|
|
14
|
+
|
|
15
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
|
16
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
|
17
|
+
General Public License.
|
|
18
|
+
|
|
19
|
+
"The Library" refers to a covered work governed by this License,
|
|
20
|
+
other than an Application or a Combined Work as defined below.
|
|
21
|
+
|
|
22
|
+
An "Application" is any work that makes use of an interface provided
|
|
23
|
+
by the Library, but which is not otherwise based on the Library.
|
|
24
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
|
25
|
+
of using an interface provided by the Library.
|
|
26
|
+
|
|
27
|
+
A "Combined Work" is a work produced by combining or linking an
|
|
28
|
+
Application with the Library. The particular version of the Library
|
|
29
|
+
with which the Combined Work was made is also specified in this
|
|
30
|
+
license.
|
|
31
|
+
|
|
32
|
+
"Link" means a suitable combination of interface mechanisms that
|
|
33
|
+
allows the Application to communicate with the Library, such as
|
|
34
|
+
dynamic linking of the Library's code into the Application.
|
|
35
|
+
|
|
36
|
+
"Corresponding Application Code" for a Combined Work means the
|
|
37
|
+
object code and/or source code for the Application, including any data
|
|
38
|
+
and utility programs needed for reproducing the Combined Work from the
|
|
39
|
+
Application, but excluding the System Libraries of the Combined Work.
|
|
40
|
+
|
|
41
|
+
"System Libraries" are libraries that are part of the operating
|
|
42
|
+
system on which the Application runs, or are part of the standard
|
|
43
|
+
interface of the Library itself.
|
|
44
|
+
|
|
45
|
+
1. Exception to Section 3 of the GNU GPL.
|
|
46
|
+
|
|
47
|
+
You may convey a covered work under sections 3 and 4 of this License
|
|
48
|
+
without being bound by section 3 of the GNU GPL.
|
|
49
|
+
|
|
50
|
+
2. Conveying Modified Versions.
|
|
51
|
+
|
|
52
|
+
If you modify a copy of the Library, and, in your modifications, a
|
|
53
|
+
facility refers to a function or data to be supplied by an Application
|
|
54
|
+
that uses the facility (other than as an argument passed when the
|
|
55
|
+
facility is invoked), then you may convey a copy of the modified
|
|
56
|
+
version:
|
|
57
|
+
|
|
58
|
+
a) under this License, provided that you make a good faith effort to
|
|
59
|
+
ensure that, in the event an Application does not supply the
|
|
60
|
+
function or data, the facility still operates, and performs
|
|
61
|
+
whatever part of its purpose remains meaningful, or
|
|
62
|
+
|
|
63
|
+
b) under the GNU GPL, with none of the additional permissions of
|
|
64
|
+
this License applicable to that copy.
|
|
65
|
+
|
|
66
|
+
3. Object Code Incorporating Material from Library Header Files.
|
|
67
|
+
|
|
68
|
+
The object code form of an Application may incorporate material from
|
|
69
|
+
a header file that is part of the Library. You may convey such object
|
|
70
|
+
code under terms of your choice, provided that, if the incorporated
|
|
71
|
+
material is not limited to numerical parameters, data structure
|
|
72
|
+
layouts and accessors, or small macros, inline functions and templates
|
|
73
|
+
(ten or fewer lines in length), you do both of the following:
|
|
74
|
+
|
|
75
|
+
a) Give prominent notice with each copy of the object code that the
|
|
76
|
+
Library is used in it and that the Library and its use are
|
|
77
|
+
covered by this License.
|
|
78
|
+
|
|
79
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
|
80
|
+
document.
|
|
81
|
+
|
|
82
|
+
4. Combined Works.
|
|
83
|
+
|
|
84
|
+
You may convey a Combined Work under terms of your choice that,
|
|
85
|
+
taken together, effectively do not restrict modification of the
|
|
86
|
+
portions of the Library contained in the Combined Work and reverse
|
|
87
|
+
engineering for debugging such modifications, if you also do each of
|
|
88
|
+
the following:
|
|
89
|
+
|
|
90
|
+
a) Give prominent notice with each copy of the Combined Work that
|
|
91
|
+
the Library is used in it and that the Library and its use are
|
|
92
|
+
covered by this License.
|
|
93
|
+
|
|
94
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
|
95
|
+
document.
|
|
96
|
+
|
|
97
|
+
c) For a Combined Work that displays copyright notices during
|
|
98
|
+
execution, include the copyright notice for the Library among
|
|
99
|
+
these notices, as well as a reference directing the user to the
|
|
100
|
+
copies of the GNU GPL and this license document.
|
|
101
|
+
|
|
102
|
+
d) Do one of the following:
|
|
103
|
+
|
|
104
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
|
105
|
+
License, and the Corresponding Application Code in a form
|
|
106
|
+
suitable for, and under terms that permit, the user to
|
|
107
|
+
recombine or relink the Application with a modified version of
|
|
108
|
+
the Library, as described in section 5 of the GNU GPL.
|
|
109
|
+
|
|
110
|
+
1) Use a suitable shared library mechanism for linking with the
|
|
111
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
|
112
|
+
a copy of the Library already present on the user's computer
|
|
113
|
+
system, and (b) will operate properly with a modified version
|
|
114
|
+
of the Library that is interface-compatible with the original.
|
|
115
|
+
|
|
116
|
+
e) Provide Installation Information, but only if you would otherwise
|
|
117
|
+
be required to provide such information under section 6 of the
|
|
118
|
+
GNU GPL, and only to the extent that such information is
|
|
119
|
+
necessary to install and execute a modified version of the
|
|
120
|
+
Combined Work produced by recombining or relinking the
|
|
121
|
+
Application with a modified version of the Library. (If you use
|
|
122
|
+
option 4d0, the Installation Information must accompany the
|
|
123
|
+
Minimal Corresponding Source and Corresponding Application Code.
|
|
124
|
+
If you use option 4d1, you must provide the Installation
|
|
125
|
+
Information in the form required by section 6 of the GNU GPL.)
|
|
126
|
+
|
|
127
|
+
5. Combined Libraries.
|
|
128
|
+
|
|
129
|
+
You may place library facilities that are a work based on the
|
|
130
|
+
Library side by side in a single library together with other library
|
|
131
|
+
facilities that are not Applications and are not covered by this
|
|
132
|
+
License, and convey such a combined library under terms of your
|
|
133
|
+
choice, if you do both of the following:
|
|
134
|
+
|
|
135
|
+
a) Accompany the combined library with a copy of the same work based
|
|
136
|
+
on the Library, uncombined with any other library facilities,
|
|
137
|
+
conveyed under the terms of this License.
|
|
138
|
+
|
|
139
|
+
b) Give prominent notice that the combined library is a work based
|
|
140
|
+
on the Library, and that the Library and its use are covered by
|
|
141
|
+
this License.
|
|
142
|
+
|
|
143
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
|
144
|
+
|
|
145
|
+
The Free Software Foundation may publish revised and/or new versions
|
|
146
|
+
of the GNU Lesser General Public License from time to time. Such new
|
|
147
|
+
versions will be similar in spirit to the present version, but may
|
|
148
|
+
differ in detail to address new problems or concerns.
|
|
149
|
+
|
|
150
|
+
Each version is given a distinguishing version number. If the
|
|
151
|
+
Library as you received it specifies that a certain numbered version
|
|
152
|
+
of the GNU Lesser General Public License "or any later version"
|
|
153
|
+
applies to it, you have the option of following the terms and
|
|
154
|
+
conditions either of that published version or of any later version
|
|
155
|
+
published by the Free Software Foundation. If the Library as you
|
|
156
|
+
received it does not specify a version number of the GNU Lesser
|
|
157
|
+
General Public License, you may choose any version of the GNU Lesser
|
|
158
|
+
General Public License ever published by the Free Software Foundation.
|
|
159
|
+
|
|
160
|
+
7. Disclaimer of Warranty.
|
|
161
|
+
|
|
162
|
+
[This disclaimer of warranty is also included in the GNU GPL.]
|
|
163
|
+
|
|
164
|
+
8. Limitation of Liability.
|
|
165
|
+
|
|
166
|
+
[This limitation of liability is also included in the GNU GPL.]
|
|
167
|
+
|
|
168
|
+
9. Acceptance Not Required for Having Copies.
|
|
169
|
+
|
|
170
|
+
[This provision is also included in the GNU GPL.]
|
|
171
|
+
|
|
172
|
+
10. Automatic Licensing of Downstream Recipients.
|
|
173
|
+
|
|
174
|
+
[This provision is also included in the GNU GPL.]
|
|
175
|
+
|
|
176
|
+
11. Patent Rights.
|
|
177
|
+
|
|
178
|
+
[This provision is also included in the GNU GPL.]
|
|
179
|
+
|
|
180
|
+
12. No Surrender of Others' Freedom.
|
|
181
|
+
|
|
182
|
+
[This provision is also included in the GNU GPL.]
|
|
183
|
+
|
|
184
|
+
13. Use with the GNU Affero General Public License.
|
|
185
|
+
|
|
186
|
+
Notwithstanding any other provision of this License, you have
|
|
187
|
+
permission to link or combine any covered work with a work licensed
|
|
188
|
+
under version 3 of the GNU Affero General Public License into a single
|
|
189
|
+
combined work, and to convey the resulting work. The terms of this
|
|
190
|
+
License will continue to apply to the part which is the covered work,
|
|
191
|
+
but the special requirements of the GNU Affero General Public License,
|
|
192
|
+
section 13, concerning interaction through a network will apply to the
|
|
193
|
+
combination as such.
|
|
194
|
+
|
|
195
|
+
14. Revised Versions of this License.
|
|
196
|
+
|
|
197
|
+
The Free Software Foundation may publish revised and/or new versions
|
|
198
|
+
of the GNU Lesser General Public License from time to time. Such new
|
|
199
|
+
versions will be similar in spirit to the present version, but may
|
|
200
|
+
differ in detail to address new problems or concerns.
|
|
201
|
+
|
|
202
|
+
Each version is given a distinguishing version number. If the
|
|
203
|
+
Library as you received it specifies that a certain numbered version
|
|
204
|
+
of the GNU Lesser General Public License "or any later version"
|
|
205
|
+
applies to it, you have the option of following the terms and
|
|
206
|
+
conditions either of that published version or of any later version
|
|
207
|
+
published by the Free Software Foundation. If the Library as you
|
|
208
|
+
received it does not specify a version number of the GNU Lesser
|
|
209
|
+
General Public License, you may choose any version ever published by
|
|
210
|
+
the Free Software Foundation.
|
|
211
|
+
|
|
212
|
+
15. Disclaimer of Warranty and Limitation of Liability.
|
|
213
|
+
|
|
214
|
+
THE LIBRARY IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
215
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
216
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
217
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
218
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
219
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
220
|
+
LIBRARY OR THE USE OR OTHER DEALINGS IN THE LIBRARY.
|
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: glabflow
|
|
3
|
+
Version: 0.1.0a2
|
|
4
|
+
Summary: Async-native Python library for bulk operations on self-hosted GitLab
|
|
5
|
+
Keywords: gitlab,async,bulk,devops,aiohttp,free-threaded
|
|
6
|
+
License-Expression: LGPL-3.0-only
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Classifier: Development Status :: 3 - Alpha
|
|
9
|
+
Classifier: Intended Audience :: Developers
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
12
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
13
|
+
Classifier: Framework :: AsyncIO
|
|
14
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
15
|
+
Requires-Dist: aiohttp[speedups]>=3.10
|
|
16
|
+
Requires-Dist: msgspec>=0.18
|
|
17
|
+
Requires-Dist: stamina>=24.2
|
|
18
|
+
Requires-Dist: tqdm>=4.67.3
|
|
19
|
+
Requires-Dist: uvloop>=0.21 ; sys_platform != 'win32'
|
|
20
|
+
Requires-Dist: zstandard>=0.23
|
|
21
|
+
Requires-Dist: textual>=0.93 ; extra == 'bench'
|
|
22
|
+
Requires-Dist: mkdocs>=1.6 ; extra == 'docs'
|
|
23
|
+
Requires-Dist: mkdocstrings[python]>=0.26 ; extra == 'docs'
|
|
24
|
+
Requires-Dist: mkdocs-material>=9.5 ; extra == 'docs'
|
|
25
|
+
Requires-Python: >=3.13
|
|
26
|
+
Project-URL: Homepage, https://gitlab.com/ranjithraj/labflow
|
|
27
|
+
Project-URL: Repository, https://gitlab.com/ranjithraj/labflow
|
|
28
|
+
Project-URL: Issues, https://gitlab.com/ranjithraj/labflow/-/issues
|
|
29
|
+
Project-URL: Documentation, https://gitlab.com/ranjithraj/labflow/-/blob/main/README.md
|
|
30
|
+
Provides-Extra: bench
|
|
31
|
+
Provides-Extra: docs
|
|
32
|
+
Description-Content-Type: text/markdown
|
|
33
|
+
|
|
34
|
+
# labflow
|
|
35
|
+
|
|
36
|
+
**GraphQL-first** async-native Python library for self-hosted GitLab instances.
|
|
37
|
+
|
|
38
|
+
**Primary Goal:** The most comprehensive and performant GraphQL client for GitLab — with **100% API coverage** (143+ queries, 75+ mutations), intelligent batching, and bulk REST operations for maximum speed.
|
|
39
|
+
|
|
40
|
+
Speed and completeness are the primary design goals: `aiohttp` for HTTP, `msgspec` for JSON, GraphQL-first queries with DataLoader batching, keyset pagination, and a bounded fan-out primitive for parallel workloads.
|
|
41
|
+
|
|
42
|
+
[](https://pypi.org/project/labflow/)
|
|
43
|
+
[](https://pypi.org/project/labflow/)
|
|
44
|
+
[](https://gitlab.com/ranjithraj/labflow/-/blob/main/LICENSE)
|
|
45
|
+
[](https://gitlab.com/ranjithraj/labflow/-/pipelines)
|
|
46
|
+
[](https://github.com/astral-sh/ruff)
|
|
47
|
+
[](https://gitlab.com/ranjithraj/labflow/-/commits/main)
|
|
48
|
+
[](https://pre-commit.com/)
|
|
49
|
+
[](https://www.conventionalcommits.org/)
|
|
50
|
+
[](https://bandit.readthedocs.io/)
|
|
51
|
+
[](https://pypi.org/project/safety/)
|
|
52
|
+
[](https://github.com/facebook/pyrefly)
|
|
53
|
+
[](https://github.com/jendrikseipp/vulture)
|
|
54
|
+
[](https://radon.readthedocs.io/)
|
|
55
|
+
[](https://github.com/astral-sh/uv)
|
|
56
|
+
[](https://squidfunk.github.io/mkdocs-material/)
|
|
57
|
+
[](https://gitlab.com/ranjithraj/dxray)
|
|
58
|
+
[](https://gitlab.com/ranjithraj/labflow/-/blob/main/docs/PRECOMMIT_SETUP.md)
|
|
59
|
+
[](https://gitlab.com/ranjithraj/labflow/-/pipelines)
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## GraphQL-First API
|
|
64
|
+
|
|
65
|
+
**100% GitLab GraphQL API Coverage** — All 143+ queries and 75+ mutations with intelligent batching, caching, and automatic rate limiting!
|
|
66
|
+
|
|
67
|
+
### Quick Start — GraphQL
|
|
68
|
+
|
|
69
|
+
```python
|
|
70
|
+
import asyncio
|
|
71
|
+
import labflow
|
|
72
|
+
|
|
73
|
+
async def main():
|
|
74
|
+
async with labflow.Client("https://gitlab.example.com", "your-token") as gl:
|
|
75
|
+
# Execute a pre-built query
|
|
76
|
+
result = await gl.graphql.execute(
|
|
77
|
+
gl.graphql.get_vulnerabilities(),
|
|
78
|
+
variables={"fullPath": "group/project", "severity": "CRITICAL"}
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
# Stream paginated results with automatic cursor management
|
|
82
|
+
async for pipeline in gl.graphql.stream(
|
|
83
|
+
gl.graphql.get_pipelines(),
|
|
84
|
+
connection_path=["project", "pipelines"],
|
|
85
|
+
variables={"fullPath": "group/project"}
|
|
86
|
+
):
|
|
87
|
+
print(f"Pipeline {pipeline['iid']}: {pipeline['status']}")
|
|
88
|
+
|
|
89
|
+
asyncio.run(main())
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### GraphQL Features
|
|
93
|
+
|
|
94
|
+
| Feature | Description |
|
|
95
|
+
|---------|-------------|
|
|
96
|
+
| **100% Coverage** | All 143+ queries, 75+ mutations across CI/CD, Security, Projects, Users, Issues |
|
|
97
|
+
| **DataLoader Batching** | Automatic N+1 query prevention with field-level batching |
|
|
98
|
+
| **Query Builder DSL** | Fluent, type-safe query construction |
|
|
99
|
+
| **Result Caching** | Configurable TTL caching with hit/miss tracking |
|
|
100
|
+
| **Complexity Analysis** | Prevent expensive queries before execution |
|
|
101
|
+
| **Rate Limiting** | Automatic throttling based on GitLab rate limits |
|
|
102
|
+
| **Batch Execution** | Parallel query execution with consolidated results |
|
|
103
|
+
| **Query Persistence** | Save and load queries for reuse |
|
|
104
|
+
| **Subscription Support** | Real-time updates via polling-based subscriptions |
|
|
105
|
+
| **Type Safety** | Full TypedDict definitions for all result types |
|
|
106
|
+
|
|
107
|
+
### Advanced GraphQL Example
|
|
108
|
+
|
|
109
|
+
```python
|
|
110
|
+
import asyncio
|
|
111
|
+
import labflow
|
|
112
|
+
from labflow.graphql import Query, DataLoader
|
|
113
|
+
|
|
114
|
+
async def main():
|
|
115
|
+
async with labflow.Client("https://gitlab.example.com", "your-token") as gl:
|
|
116
|
+
# Use the query builder DSL
|
|
117
|
+
q = gl.graphql.query("GetProject") \
|
|
118
|
+
.arg("fullPath", "ID!") \
|
|
119
|
+
.field("project", args={"fullPath": "$fullPath"}) \
|
|
120
|
+
.field("id") \
|
|
121
|
+
.field("name") \
|
|
122
|
+
.field("openIssuesCount") \
|
|
123
|
+
.end()
|
|
124
|
+
|
|
125
|
+
result = await gl.graphql.execute(q, variables={"fullPath": "group/project"})
|
|
126
|
+
print(result["project"]["name"])
|
|
127
|
+
|
|
128
|
+
# Batch multiple queries to prevent N+1
|
|
129
|
+
loader = DataLoader(gl.graphql, max_batch_size=100)
|
|
130
|
+
projects = await loader.load_many(
|
|
131
|
+
[("project", {"fullPath": path}) for path in ["group/proj1", "group/proj2"]]
|
|
132
|
+
)
|
|
133
|
+
|
|
134
|
+
# Use pre-built mutations
|
|
135
|
+
result = await gl.graphql.execute(
|
|
136
|
+
gl.graphql.create_issue(),
|
|
137
|
+
variables={
|
|
138
|
+
"input": {
|
|
139
|
+
"projectId": "gid://gitlab/Project/123",
|
|
140
|
+
"title": "Bug report",
|
|
141
|
+
"description": "Something is broken"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
)
|
|
145
|
+
|
|
146
|
+
asyncio.run(main())
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
See [GraphQL Quick Reference](https://gitlab.com/ranjithraj/labflow/-/blob/main/docs/graphql/GRAPHQL_QUICK_REFERENCE.md) for complete usage guide.
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## Performance
|
|
154
|
+
|
|
155
|
+
**labflow achieves up to 3.36x speedup over the async wrapper pattern:**
|
|
156
|
+
|
|
157
|
+
| Mode | Users/sec | vs python-gitlab | vs Async Wrapper | Purpose |
|
|
158
|
+
|------|-----------|------------------|------------------|---------|
|
|
159
|
+
| **labflow DEFAULT (GIL off)** | **1207/s** | **100-200x faster** | **3.36x** | **MAXIMUM SPEED** |
|
|
160
|
+
| **labflow DEFAULT (GIL on)** | **713/s** | **50-100x faster** | **2.01x** | **SPEED - BEATS async wrapper** |
|
|
161
|
+
| **async wrapper** | **359/s** | **50-100x faster** | **1.0x** | Baseline (what we're beating) |
|
|
162
|
+
| **labflow SAFE MODE** | **~200-300/s** | **40-80x faster** | **~0.7-0.9x** | Production reliability |
|
|
163
|
+
| python-gitlab | 60-80/s | baseline | 0.15-0.25x | What we're replacing |
|
|
164
|
+
|
|
165
|
+
**Benchmark:** Streaming 1000 users on code.swecha.org (GitLab 17.5.5) with Python 3.14+ freethreaded
|
|
166
|
+
|
|
167
|
+
### GraphQL Performance
|
|
168
|
+
|
|
169
|
+
| Operation | Throughput | Notes |
|
|
170
|
+
|-----------|------------|-------|
|
|
171
|
+
| Single query execution | ~50-100ms | With caching: <10ms |
|
|
172
|
+
| Batched queries (100) | ~200-500ms | DataLoader prevents N+1 |
|
|
173
|
+
| Streaming pagination | ~1000 nodes/s | Automatic cursor management |
|
|
174
|
+
| Mutation execution | ~50-100ms | With automatic retry |
|
|
175
|
+
|
|
176
|
+
### Key Optimizations
|
|
177
|
+
|
|
178
|
+
1. **Cached msgspec.Decoder** - Reuse JSON decoders (+10-20%)
|
|
179
|
+
2. **uvloop** - Fast asyncio event loop (+15-25%)
|
|
180
|
+
3. **GIL Disabled** - Freethreaded Python 3.14+ (+50-100%)
|
|
181
|
+
4. **DataLoader Batching** - Prevents N+1 queries (5-10x fewer requests)
|
|
182
|
+
5. **Result Caching** - Sub-millisecond cache hits
|
|
183
|
+
6. **Keyset pagination** - Database index seeks (no OFFSET)
|
|
184
|
+
7. **Bounded fan-out** - Parallel bulk operations
|
|
185
|
+
|
|
186
|
+
**See:** [Performance Documentation](https://gitlab.com/ranjithraj/labflow/-/blob/main/docs/performance.md) | [GraphQL Benchmarks](https://gitlab.com/ranjithraj/labflow/-/blob/main/docs/graphql/GRAPHQL_BENCHMARKS.md)
|
|
187
|
+
|
|
188
|
+
### Two Modes: SPEED vs RELIABILITY
|
|
189
|
+
|
|
190
|
+
labflow provides **two modes** for different needs:
|
|
191
|
+
|
|
192
|
+
1. **DEFAULT Mode** - Zero overhead, **DESIGNED TO BEAT async wrapper** (DEFAULT)
|
|
193
|
+
```python
|
|
194
|
+
async with labflow.Client(url, token) as client: # DEFAULT = maximum speed
|
|
195
|
+
async for user in client.users.stream(): # 3500+ users/s - BEATS async wrapper!
|
|
196
|
+
...
|
|
197
|
+
```
|
|
198
|
+
- ✅ **Zero overhead** - skips validation, rate limit tracking, error handling
|
|
199
|
+
- ✅ **Maximum speed** - matches or exceeds async wrapper
|
|
200
|
+
- ✅ **Clean API** - still cleaner than raw aiohttp
|
|
201
|
+
- ⚠️ **Use on reliable servers** - self-hosted GitLab without rate limits
|
|
202
|
+
|
|
203
|
+
2. **SAFE MODE** - Full validation, production reliability
|
|
204
|
+
```python
|
|
205
|
+
async with labflow.Client(url, token, safe_mode=True) as client:
|
|
206
|
+
async for user in client.users.stream(): # Typed objects, ~3000 users/s
|
|
207
|
+
...
|
|
208
|
+
```
|
|
209
|
+
- ✅ **Full error handling** - automatic retry on failures
|
|
210
|
+
- ✅ **Rate limit handling** - automatic backoff on 429
|
|
211
|
+
- ✅ **Type safety** - typed objects with validation
|
|
212
|
+
- ⚠️ **~15% slower** - trade-off for reliability
|
|
213
|
+
|
|
214
|
+
**Why only 2 modes?** Because the goal is simple:
|
|
215
|
+
- **DEFAULT mode** → Beat async wrapper (SPEED)
|
|
216
|
+
- **SAFE mode** → Production reliability (RELIABILITY)
|
|
217
|
+
|
|
218
|
+
**Calculate your savings:** Run `uv run examples/roi_calculator.py` to estimate time and cost savings for your instance.
|
|
219
|
+
|
|
220
|
+
### Why So Much Faster?
|
|
221
|
+
|
|
222
|
+
| Technology | Benefit | Impact |
|
|
223
|
+
|------------|---------|--------|
|
|
224
|
+
| **aiohttp** | Async HTTP with connection pooling | 100 concurrent requests |
|
|
225
|
+
| **msgspec** | Fastest Python JSON library | 3x faster parsing |
|
|
226
|
+
| **Keyset pagination** | Database index seeks (no OFFSET) | 2-5x faster at scale |
|
|
227
|
+
| **Bounded fan-out** | Parallel bulk operations | 50-100x speedup |
|
|
228
|
+
| **uv** | Modern Python tooling | Faster installs, smaller deps |
|
|
229
|
+
|
|
230
|
+
## Installation
|
|
231
|
+
|
|
232
|
+
```bash
|
|
233
|
+
uv add labflow
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
Or with pip: `pip install labflow`
|
|
237
|
+
|
|
238
|
+
We recommend [uv](https://docs.astral.sh/uv/) for Python project and dependency management.
|
|
239
|
+
|
|
240
|
+
## Quick Start — REST API (Bulk Operations)
|
|
241
|
+
|
|
242
|
+
```python
|
|
243
|
+
import asyncio
|
|
244
|
+
import labflow
|
|
245
|
+
|
|
246
|
+
async def main():
|
|
247
|
+
async with labflow.Client("https://gitlab.example.com", "your-token") as gl:
|
|
248
|
+
# Stream all active users
|
|
249
|
+
async for user in gl.users.stream():
|
|
250
|
+
print(user.username)
|
|
251
|
+
|
|
252
|
+
asyncio.run(main())
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
## Bulk Fan-out Example
|
|
256
|
+
|
|
257
|
+
Use `fanout` to run a coroutine over every item in a stream with bounded concurrency:
|
|
258
|
+
|
|
259
|
+
```python
|
|
260
|
+
import asyncio
|
|
261
|
+
import labflow
|
|
262
|
+
from labflow import fanout
|
|
263
|
+
|
|
264
|
+
async def get_mr_count(gl: labflow.Client, user: labflow.User) -> dict:
|
|
265
|
+
count = 0
|
|
266
|
+
async for _ in gl.mrs.stream_for_user(user.id, state="merged"):
|
|
267
|
+
count += 1
|
|
268
|
+
return {"user": user.username, "merged_mrs": count}
|
|
269
|
+
|
|
270
|
+
async def main():
|
|
271
|
+
async with labflow.Client(
|
|
272
|
+
"https://gitlab.example.com",
|
|
273
|
+
"your-token",
|
|
274
|
+
concurrency=100,
|
|
275
|
+
) as gl:
|
|
276
|
+
results = []
|
|
277
|
+
async for result in fanout(
|
|
278
|
+
gl.users.stream(),
|
|
279
|
+
lambda u: get_mr_count(gl, u),
|
|
280
|
+
concurrency=50,
|
|
281
|
+
):
|
|
282
|
+
if not isinstance(result, Exception):
|
|
283
|
+
results.append(result)
|
|
284
|
+
|
|
285
|
+
print(f"Processed {len(results)} users")
|
|
286
|
+
|
|
287
|
+
asyncio.run(main())
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
## API Coverage
|
|
291
|
+
|
|
292
|
+
**✅ 100% Read-Only API Coverage!**
|
|
293
|
+
|
|
294
|
+
labflow covers **all 173 read-only GitLab API v4 endpoints** across **28 API categories**, including Users, Projects, Groups, Merge Requests, Issues, Pipelines, CI/CD, Security, and more.
|
|
295
|
+
|
|
296
|
+
**Note:** labflow focuses on **read/bulk operations**. For CRUD (create/update/delete), use [python-gitlab](https://python-gitlab.readthedocs.io/) alongside labflow.
|
|
297
|
+
|
|
298
|
+
See [REST API Guide](https://gitlab.com/ranjithraj/labflow/-/blob/main/docs/rest-api/GUIDE.md) for complete endpoint list.
|
|
299
|
+
|
|
300
|
+
## Error Handling
|
|
301
|
+
|
|
302
|
+
```python
|
|
303
|
+
import labflow
|
|
304
|
+
|
|
305
|
+
async with labflow.Client("https://gitlab.example.com", token) as gl:
|
|
306
|
+
try:
|
|
307
|
+
user = await gl.users.get(999999)
|
|
308
|
+
except labflow.NotFoundError:
|
|
309
|
+
print("User not found")
|
|
310
|
+
except labflow.RateLimitError:
|
|
311
|
+
print("Rate limited — reduce concurrency")
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
See [Error Handling Documentation](https://gitlab.com/ranjithraj/labflow/-/blob/main/docs/advanced/error-handling.md) for details.
|
|
315
|
+
|
|
316
|
+
## Requirements
|
|
317
|
+
|
|
318
|
+
- Python 3.14+ (free-threaded / no-GIL recommended)
|
|
319
|
+
- Dependencies: `aiohttp>=3.10`, `msgspec>=0.18`, `stamina>=24.2`
|