id
int64
0
458k
file_name
stringlengths
4
119
file_path
stringlengths
14
227
content
stringlengths
24
9.96M
size
int64
24
9.96M
language
stringclasses
1 value
extension
stringclasses
14 values
total_lines
int64
1
219k
avg_line_length
float64
2.52
4.63M
max_line_length
int64
5
9.91M
alphanum_fraction
float64
0
1
repo_name
stringlengths
7
101
repo_stars
int64
100
139k
repo_forks
int64
0
26.4k
repo_open_issues
int64
0
2.27k
repo_license
stringclasses
12 values
repo_extraction_date
stringclasses
433 values
23,100
projects.py
python-gitlab_python-gitlab/gitlab/v4/objects/projects.py
""" GitLab API: https://docs.gitlab.com/ee/api/projects.html """ import io from typing import ( Any, Callable, cast, Dict, Iterator, List, Optional, TYPE_CHECKING, Union, ) import requests from gitlab import cli, client from gitlab import exceptions as exc from gitlab import types...
44,876
Python
.py
1,089
31.935721
88
0.636309
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,101
resource_groups.py
python-gitlab_python-gitlab/gitlab/v4/objects/resource_groups.py
from typing import Any, cast, Union from gitlab.base import RESTManager, RESTObject from gitlab.mixins import ListMixin, RetrieveMixin, SaveMixin, UpdateMixin from gitlab.types import RequiredOptional __all__ = [ "ProjectResourceGroup", "ProjectResourceGroupManager", "ProjectResourceGroupUpcomingJob", ...
1,427
Python
.py
33
38.484848
87
0.739508
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,102
releases.py
python-gitlab_python-gitlab/gitlab/v4/objects/releases.py
from typing import Any, cast, Union from gitlab.base import RESTManager, RESTObject from gitlab.mixins import CRUDMixin, ObjectDeleteMixin, SaveMixin from gitlab.types import ArrayAttribute, RequiredOptional __all__ = [ "ProjectRelease", "ProjectReleaseManager", "ProjectReleaseLink", "ProjectReleaseLi...
1,972
Python
.py
50
34.02
81
0.674699
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,103
applications.py
python-gitlab_python-gitlab/gitlab/v4/objects/applications.py
from gitlab.base import RESTManager, RESTObject from gitlab.mixins import CreateMixin, DeleteMixin, ListMixin, ObjectDeleteMixin from gitlab.types import RequiredOptional __all__ = [ "Application", "ApplicationManager", ] class Application(ObjectDeleteMixin, RESTObject): _url = "/applications" _repr_...
591
Python
.py
16
33.125
80
0.74386
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,104
secure_files.py
python-gitlab_python-gitlab/gitlab/v4/objects/secure_files.py
""" GitLab API: https://docs.gitlab.com/ee/api/secure_files.html """ from typing import Any, Callable, cast, Iterator, Optional, TYPE_CHECKING, Union import requests from gitlab import cli from gitlab import exceptions as exc from gitlab import utils from gitlab.base import RESTManager, RESTObject from gitlab.mixins...
2,521
Python
.py
60
34.283333
80
0.665169
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,105
appearance.py
python-gitlab_python-gitlab/gitlab/v4/objects/appearance.py
from typing import Any, cast, Dict, Optional, Union from gitlab import exceptions as exc from gitlab.base import RESTManager, RESTObject from gitlab.mixins import GetWithoutIdMixin, SaveMixin, UpdateMixin from gitlab.types import RequiredOptional __all__ = [ "ApplicationAppearance", "ApplicationAppearanceMana...
1,932
Python
.py
52
28.865385
80
0.631889
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,106
export_import.py
python-gitlab_python-gitlab/gitlab/v4/objects/export_import.py
from typing import Any, cast from gitlab.base import RESTManager, RESTObject from gitlab.mixins import CreateMixin, DownloadMixin, GetWithoutIdMixin, RefreshMixin from gitlab.types import RequiredOptional __all__ = [ "GroupExport", "GroupExportManager", "GroupImport", "GroupImportManager", "Projec...
1,909
Python
.py
47
36
85
0.715761
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,107
commits.py
python-gitlab_python-gitlab/gitlab/v4/objects/commits.py
from typing import Any, cast, Dict, List, Optional, TYPE_CHECKING, Union import requests import gitlab from gitlab import cli from gitlab import exceptions as exc from gitlab.base import RESTManager, RESTObject from gitlab.mixins import CreateMixin, ListMixin, RefreshMixin, RetrieveMixin from gitlab.types import Requ...
8,972
Python
.py
204
35.607843
85
0.646175
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,108
deploy_keys.py
python-gitlab_python-gitlab/gitlab/v4/objects/deploy_keys.py
from typing import Any, cast, Dict, Union import requests from gitlab import cli from gitlab import exceptions as exc from gitlab.base import RESTManager, RESTObject from gitlab.mixins import CRUDMixin, ListMixin, ObjectDeleteMixin, SaveMixin from gitlab.types import RequiredOptional __all__ = [ "DeployKey", ...
1,947
Python
.py
50
32.82
88
0.676768
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,109
keys.py
python-gitlab_python-gitlab/gitlab/v4/objects/keys.py
from typing import Any, cast, Optional, TYPE_CHECKING, Union from gitlab.base import RESTManager, RESTObject from gitlab.mixins import GetMixin __all__ = [ "Key", "KeyManager", ] class Key(RESTObject): pass class KeyManager(GetMixin, RESTManager): _path = "/keys" _obj_cls = Key def get( ...
882
Python
.py
25
28.64
85
0.641509
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,110
__init__.py
python-gitlab_python-gitlab/gitlab/v4/objects/__init__.py
from .access_requests import * from .appearance import * from .applications import * from .artifacts import * from .audit_events import * from .award_emojis import * from .badges import * from .boards import * from .branches import * from .broadcast_messages import * from .bulk_imports import * from .ci_lint import * f...
2,101
Python
.py
78
25.923077
62
0.780415
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,111
bulk_imports.py
python-gitlab_python-gitlab/gitlab/v4/objects/bulk_imports.py
from typing import Any, cast, Union from gitlab.base import RESTManager, RESTObject from gitlab.mixins import CreateMixin, ListMixin, RefreshMixin, RetrieveMixin from gitlab.types import RequiredOptional __all__ = [ "BulkImport", "BulkImportManager", "BulkImportAllEntity", "BulkImportAllEntityManager"...
1,573
Python
.py
38
36.921053
88
0.722844
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,112
discussions.py
python-gitlab_python-gitlab/gitlab/v4/objects/discussions.py
from typing import Any, cast, Union from gitlab.base import RESTManager, RESTObject from gitlab.mixins import CreateMixin, RetrieveMixin, SaveMixin, UpdateMixin from gitlab.types import RequiredOptional from .notes import ( # noqa: F401 ProjectCommitDiscussionNoteManager, ProjectIssueDiscussionNoteManager, ...
3,457
Python
.py
71
43.647887
86
0.737734
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,113
events.py
python-gitlab_python-gitlab/gitlab/v4/objects/events.py
from typing import Any, cast, Union from gitlab.base import RESTManager, RESTObject from gitlab.mixins import ListMixin, RetrieveMixin __all__ = [ "Event", "EventManager", "GroupEpicResourceLabelEvent", "GroupEpicResourceLabelEventManager", "ProjectEvent", "ProjectEventManager", "ProjectIs...
7,067
Python
.py
159
38.522013
87
0.718791
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,114
container_registry.py
python-gitlab_python-gitlab/gitlab/v4/objects/container_registry.py
from typing import Any, cast, TYPE_CHECKING, Union from gitlab import cli from gitlab import exceptions as exc from gitlab.base import RESTManager, RESTObject from gitlab.mixins import ( DeleteMixin, GetMixin, ListMixin, ObjectDeleteMixin, RetrieveMixin, ) __all__ = [ "GroupRegistryRepositoryM...
3,360
Python
.py
76
37.578947
80
0.689338
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,115
topics.py
python-gitlab_python-gitlab/gitlab/v4/objects/topics.py
from typing import Any, cast, Dict, TYPE_CHECKING, Union from gitlab import cli from gitlab import exceptions as exc from gitlab import types from gitlab.base import RESTManager, RESTObject from gitlab.mixins import CRUDMixin, ObjectDeleteMixin, SaveMixin from gitlab.types import RequiredOptional __all__ = [ "Top...
2,208
Python
.py
57
31.491228
83
0.644694
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,116
branches.py
python-gitlab_python-gitlab/gitlab/v4/objects/branches.py
from typing import Any, cast, Union from gitlab.base import RESTManager, RESTObject from gitlab.mixins import ( CRUDMixin, NoUpdateMixin, ObjectDeleteMixin, SaveMixin, UpdateMethod, ) from gitlab.types import RequiredOptional __all__ = [ "ProjectBranch", "ProjectBranchManager", "Projec...
1,814
Python
.py
51
29.392157
84
0.667619
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,117
snippets.py
python-gitlab_python-gitlab/gitlab/v4/objects/snippets.py
from typing import Any, Callable, cast, Iterator, List, Optional, TYPE_CHECKING, Union import requests from gitlab import cli from gitlab import exceptions as exc from gitlab import utils from gitlab.base import RESTManager, RESTObject, RESTObjectList from gitlab.mixins import CRUDMixin, ObjectDeleteMixin, SaveMixin,...
8,176
Python
.py
203
30.788177
87
0.617536
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,118
iterations.py
python-gitlab_python-gitlab/gitlab/v4/objects/iterations.py
from gitlab import types from gitlab.base import RESTManager, RESTObject from gitlab.mixins import ListMixin __all__ = [ "ProjectIterationManager", "GroupIteration", "GroupIterationManager", ] class GroupIteration(RESTObject): _repr_attr = "title" class GroupIterationManager(ListMixin, RESTManager)...
1,561
Python
.py
46
28.26087
78
0.655172
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,119
groups.py
python-gitlab_python-gitlab/gitlab/v4/objects/groups.py
from typing import Any, BinaryIO, cast, Dict, List, Optional, Type, TYPE_CHECKING, Union import requests import gitlab from gitlab import cli from gitlab import exceptions as exc from gitlab import types from gitlab.base import RESTManager, RESTObject from gitlab.mixins import ( CreateMixin, CRUDMixin, De...
15,958
Python
.py
388
33.309278
93
0.662819
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,120
packages.py
python-gitlab_python-gitlab/gitlab/v4/objects/packages.py
""" GitLab API: https://docs.gitlab.com/ee/api/packages.html https://docs.gitlab.com/ee/user/packages/generic_packages/ """ from pathlib import Path from typing import ( Any, BinaryIO, Callable, cast, Iterator, Optional, TYPE_CHECKING, Union, ) import requests from gitlab import cli f...
7,225
Python
.py
189
29.835979
84
0.63331
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,121
hooks.py
python-gitlab_python-gitlab/gitlab/v4/objects/hooks.py
from typing import Any, cast, Union from gitlab import exceptions as exc from gitlab.base import RESTManager, RESTObject from gitlab.mixins import CRUDMixin, NoUpdateMixin, ObjectDeleteMixin, SaveMixin from gitlab.types import RequiredOptional __all__ = [ "Hook", "HookManager", "ProjectHook", "Project...
4,445
Python
.py
134
24.149254
87
0.570429
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,122
integrations.py
python-gitlab_python-gitlab/gitlab/v4/objects/integrations.py
""" GitLab API: https://docs.gitlab.com/ee/api/integrations.html """ from typing import Any, cast, List, Union from gitlab import cli from gitlab.base import RESTManager, RESTObject from gitlab.mixins import ( DeleteMixin, GetMixin, ListMixin, ObjectDeleteMixin, SaveMixin, UpdateMixin, ) __al...
9,229
Python
.py
279
20.508961
84
0.45769
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,123
custom_attributes.py
python-gitlab_python-gitlab/gitlab/v4/objects/custom_attributes.py
from typing import Any, cast, Union from gitlab.base import RESTManager, RESTObject from gitlab.mixins import DeleteMixin, ObjectDeleteMixin, RetrieveMixin, SetMixin __all__ = [ "GroupCustomAttribute", "GroupCustomAttributeManager", "ProjectCustomAttribute", "ProjectCustomAttributeManager", "UserC...
1,875
Python
.py
41
40.804878
87
0.72317
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,124
personal_access_tokens.py
python-gitlab_python-gitlab/gitlab/v4/objects/personal_access_tokens.py
from typing import Any, cast, Union from gitlab.base import RESTManager, RESTObject from gitlab.mixins import ( CreateMixin, DeleteMixin, ObjectDeleteMixin, ObjectRotateMixin, RetrieveMixin, RotateMixin, ) from gitlab.types import ArrayAttribute, RequiredOptional __all__ = [ "PersonalAcces...
1,315
Python
.py
37
31.108108
87
0.734017
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,125
clusters.py
python-gitlab_python-gitlab/gitlab/v4/objects/clusters.py
from typing import Any, cast, Dict, Optional, Union from gitlab import exceptions as exc from gitlab.base import RESTManager, RESTObject from gitlab.mixins import CreateMixin, CRUDMixin, ObjectDeleteMixin, SaveMixin from gitlab.types import RequiredOptional __all__ = [ "GroupCluster", "GroupClusterManager", ...
3,750
Python
.py
95
30.789474
88
0.621183
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,126
registry_protection_rules.py
python-gitlab_python-gitlab/gitlab/v4/objects/registry_protection_rules.py
from gitlab.base import RESTManager, RESTObject from gitlab.mixins import CreateMixin, ListMixin, SaveMixin, UpdateMethod, UpdateMixin from gitlab.types import RequiredOptional __all__ = [ "ProjectRegistryProtectionRule", "ProjectRegistryProtectionRuleManager", ] class ProjectRegistryProtectionRule(SaveMixin...
1,092
Python
.py
30
30.3
86
0.702933
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,127
notes.py
python-gitlab_python-gitlab/gitlab/v4/objects/notes.py
from typing import Any, cast, Union from gitlab.base import RESTManager, RESTObject from gitlab.mixins import ( CreateMixin, CRUDMixin, DeleteMixin, GetMixin, ObjectDeleteMixin, RetrieveMixin, SaveMixin, UpdateMixin, ) from gitlab.types import RequiredOptional from .award_emojis import...
8,588
Python
.py
209
35.492823
88
0.696853
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,128
environments.py
python-gitlab_python-gitlab/gitlab/v4/objects/environments.py
from typing import Any, cast, Dict, Union import requests from gitlab import cli from gitlab import exceptions as exc from gitlab.base import RESTManager, RESTObject from gitlab.mixins import ( CreateMixin, DeleteMixin, ObjectDeleteMixin, RetrieveMixin, SaveMixin, UpdateMixin, ) from gitlab.ty...
2,736
Python
.py
71
32.591549
87
0.688939
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,129
todos.py
python-gitlab_python-gitlab/gitlab/v4/objects/todos.py
from typing import Any, Dict, TYPE_CHECKING from gitlab import cli from gitlab import exceptions as exc from gitlab.base import RESTManager, RESTObject from gitlab.mixins import DeleteMixin, ListMixin, ObjectDeleteMixin __all__ = [ "Todo", "TodoManager", ] class Todo(ObjectDeleteMixin, RESTObject): @cli...
1,846
Python
.py
45
33.511111
74
0.657718
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,130
repositories.py
python-gitlab_python-gitlab/gitlab/v4/objects/repositories.py
""" GitLab API: https://docs.gitlab.com/ee/api/repositories.html Currently this module only contains repository-related methods for projects. """ from typing import Any, Callable, Dict, Iterator, List, Optional, TYPE_CHECKING, Union import requests import gitlab from gitlab import cli from gitlab import exceptions ...
11,221
Python
.py
251
34.98008
87
0.625824
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,131
pages.py
python-gitlab_python-gitlab/gitlab/v4/objects/pages.py
from typing import Any, cast, Union from gitlab.base import RESTManager, RESTObject from gitlab.mixins import ( CRUDMixin, DeleteMixin, GetWithoutIdMixin, ListMixin, ObjectDeleteMixin, RefreshMixin, SaveMixin, UpdateMethod, UpdateMixin, ) from gitlab.types import RequiredOptional _...
1,868
Python
.py
53
30.54717
84
0.710951
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,132
reviewers.py
python-gitlab_python-gitlab/gitlab/v4/objects/reviewers.py
from gitlab.base import RESTManager, RESTObject from gitlab.mixins import ListMixin __all__ = [ "ProjectMergeRequestReviewerDetail", "ProjectMergeRequestReviewerDetailManager", ] class ProjectMergeRequestReviewerDetail(RESTObject): pass class ProjectMergeRequestReviewerDetailManager(ListMixin, RESTMana...
517
Python
.py
12
39.666667
71
0.786
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,133
milestones.py
python-gitlab_python-gitlab/gitlab/v4/objects/milestones.py
from typing import Any, cast, TYPE_CHECKING, Union from gitlab import cli from gitlab import exceptions as exc from gitlab import types from gitlab.base import RESTManager, RESTObject, RESTObjectList from gitlab.mixins import ( CRUDMixin, ObjectDeleteMixin, PromoteMixin, SaveMixin, UpdateMethod, ) ...
7,073
Python
.py
153
38.333333
87
0.672521
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,134
files.py
python-gitlab_python-gitlab/gitlab/v4/objects/files.py
import base64 from typing import ( Any, Callable, Dict, Iterator, List, Optional, Tuple, TYPE_CHECKING, Union, ) import requests from gitlab import cli from gitlab import exceptions as exc from gitlab import utils from gitlab.base import RESTManager, RESTObject from gitlab.mixins i...
11,674
Python
.py
292
31.113014
86
0.620656
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,135
labels.py
python-gitlab_python-gitlab/gitlab/v4/objects/labels.py
from typing import Any, cast, Dict, Optional, Union from gitlab import exceptions as exc from gitlab.base import RESTManager, RESTObject from gitlab.mixins import ( CreateMixin, DeleteMixin, ObjectDeleteMixin, PromoteMixin, RetrieveMixin, SaveMixin, SubscribableMixin, UpdateMixin, ) fro...
4,736
Python
.py
124
31.241935
88
0.639991
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,136
triggers.py
python-gitlab_python-gitlab/gitlab/v4/objects/triggers.py
from typing import Any, cast, Union from gitlab.base import RESTManager, RESTObject from gitlab.mixins import CRUDMixin, ObjectDeleteMixin, SaveMixin from gitlab.types import RequiredOptional __all__ = [ "ProjectTrigger", "ProjectTriggerManager", ] class ProjectTrigger(SaveMixin, ObjectDeleteMixin, RESTObje...
824
Python
.py
20
37.05
76
0.730238
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,137
boards.py
python-gitlab_python-gitlab/gitlab/v4/objects/boards.py
from typing import Any, cast, Union from gitlab.base import RESTManager, RESTObject from gitlab.mixins import CRUDMixin, ObjectDeleteMixin, SaveMixin from gitlab.types import RequiredOptional __all__ = [ "GroupBoardList", "GroupBoardListManager", "GroupBoard", "GroupBoardManager", "ProjectBoardLis...
2,680
Python
.py
62
38.193548
88
0.695686
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,138
access_requests.py
python-gitlab_python-gitlab/gitlab/v4/objects/access_requests.py
from gitlab.base import RESTManager, RESTObject from gitlab.mixins import ( AccessRequestMixin, CreateMixin, DeleteMixin, ListMixin, ObjectDeleteMixin, ) __all__ = [ "GroupAccessRequest", "GroupAccessRequestManager", "ProjectAccessRequest", "ProjectAccessRequestManager", ] class G...
923
Python
.py
26
31.538462
84
0.765766
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,139
merge_trains.py
python-gitlab_python-gitlab/gitlab/v4/objects/merge_trains.py
from gitlab.base import RESTManager, RESTObject from gitlab.mixins import ListMixin __all__ = [ "ProjectMergeTrain", "ProjectMergeTrainManager", ] class ProjectMergeTrain(RESTObject): pass class ProjectMergeTrainManager(ListMixin, RESTManager): _path = "/projects/{project_id}/merge_trains" _obj...
422
Python
.py
13
28.923077
55
0.737624
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,140
members.py
python-gitlab_python-gitlab/gitlab/v4/objects/members.py
from typing import Any, cast, Union from gitlab import types from gitlab.base import RESTManager, RESTObject from gitlab.mixins import ( CRUDMixin, DeleteMixin, ListMixin, ObjectDeleteMixin, RetrieveMixin, SaveMixin, ) from gitlab.types import RequiredOptional __all__ = [ "GroupBillableMem...
3,902
Python
.py
104
32.221154
78
0.683037
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,141
deploy_tokens.py
python-gitlab_python-gitlab/gitlab/v4/objects/deploy_tokens.py
from typing import Any, cast, Union from gitlab import types from gitlab.base import RESTManager, RESTObject from gitlab.mixins import ( CreateMixin, DeleteMixin, ListMixin, ObjectDeleteMixin, RetrieveMixin, ) from gitlab.types import RequiredOptional __all__ = [ "DeployToken", "DeployToke...
2,110
Python
.py
68
24.970588
86
0.653998
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,142
service_accounts.py
python-gitlab_python-gitlab/gitlab/v4/objects/service_accounts.py
from gitlab.base import RESTManager, RESTObject from gitlab.mixins import CreateMixin from gitlab.types import RequiredOptional __all__ = ["GroupServiceAccount", "GroupServiceAccountManager"] class GroupServiceAccount(RESTObject): pass class GroupServiceAccountManager(CreateMixin, RESTManager): _path = "/g...
517
Python
.py
13
35.923077
63
0.757515
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,143
jobs.py
python-gitlab_python-gitlab/gitlab/v4/objects/jobs.py
from typing import Any, Callable, cast, Dict, Iterator, Optional, TYPE_CHECKING, Union import requests from gitlab import cli from gitlab import exceptions as exc from gitlab import utils from gitlab.base import RESTManager, RESTObject from gitlab.mixins import RefreshMixin, RetrieveMixin from gitlab.types import Arr...
9,140
Python
.py
215
33.023256
88
0.6268
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,144
conf.py
python-gitlab_python-gitlab/docs/conf.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # python-gitlab documentation build configuration file, created by # sphinx-quickstart on Mon Dec 8 15:17:39 2014. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in thi...
9,858
Python
.py
241
38.356846
83
0.712232
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,145
docstrings.py
python-gitlab_python-gitlab/docs/ext/docstrings.py
import inspect import os import jinja2 import sphinx import sphinx.ext.napoleon as napoleon from sphinx.ext.napoleon.docstring import GoogleDocstring def classref(value, short=True): return value if not inspect.isclass(value): return f":class:{value}" tilde = "~" if short else "" return f":c...
1,722
Python
.py
39
38.25641
88
0.681055
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,146
conftest.py
python-gitlab_python-gitlab/tests/conftest.py
import pathlib import _pytest.config import pytest import gitlab @pytest.fixture(scope="session") def test_dir(pytestconfig: _pytest.config.Config) -> pathlib.Path: return pytestconfig.rootdir / "tests" # type: ignore @pytest.fixture(autouse=True) def mock_clean_config(monkeypatch: pytest.MonkeyPatch) -> Non...
1,090
Python
.py
28
35.857143
81
0.750476
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,147
conftest.py
python-gitlab_python-gitlab/tests/unit/conftest.py
import pytest import responses import gitlab from tests.unit import helpers @pytest.fixture def fake_manager(gl): return helpers.FakeManager(gl) @pytest.fixture def fake_manager_with_parent(gl, fake_manager): return helpers.FakeManagerWithParent( gl, parent=helpers.FakeParent(manager=fake_manager, ...
3,194
Python
.py
111
23.81982
81
0.681818
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,148
test_types.py
python-gitlab_python-gitlab/tests/unit/test_types.py
import pytest from gitlab import types class TestRequiredOptional: def test_requiredoptional_empty(self): b = types.RequiredOptional() assert not b.required assert not b.optional assert not b.exclusive def test_requiredoptional_values_no_keywords(self): b = types.Requ...
4,011
Python
.py
91
37.43956
82
0.632622
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,149
test_cli.py
python-gitlab_python-gitlab/tests/unit/test_cli.py
import argparse import contextlib import io import os import sys import tempfile from unittest import mock import pytest import gitlab.base from gitlab import cli from gitlab.exceptions import GitlabError from gitlab.mixins import CreateMixin, UpdateMixin from gitlab.types import RequiredOptional from gitlab.v4 impor...
7,536
Python
.py
190
33.484211
89
0.646204
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,150
test_graphql.py
python-gitlab_python-gitlab/tests/unit/test_graphql.py
import httpx import pytest import respx import gitlab @pytest.fixture def gl_gql() -> gitlab.GraphQL: return gitlab.GraphQL("https://gitlab.example.com") def test_import_error_includes_message(monkeypatch: pytest.MonkeyPatch): monkeypatch.setattr(gitlab.client, "_GQL_INSTALLED", False) with pytest.rais...
1,830
Python
.py
46
34.478261
85
0.69887
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,151
test_gitlab_auth.py
python-gitlab_python-gitlab/tests/unit/test_gitlab_auth.py
import pathlib import pytest import requests import responses from requests import PreparedRequest from gitlab import Gitlab from gitlab._backends import JobTokenAuth, OAuthTokenAuth, PrivateTokenAuth from gitlab.config import GitlabConfigParser @pytest.fixture def netrc(monkeypatch: pytest.MonkeyPatch, tmp_path: p...
7,347
Python
.py
225
23.391111
86
0.558811
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,152
test_utils.py
python-gitlab_python-gitlab/tests/unit/test_utils.py
import json import logging import warnings import pytest import requests import responses from gitlab import types, utils @pytest.mark.parametrize( "content_type,expected_type", [ ("application/json", "application/json"), ("application/json; charset=utf-8", "application/json"), ("", ...
7,272
Python
.py
188
31.718085
88
0.63113
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,153
test_exceptions.py
python-gitlab_python-gitlab/tests/unit/test_exceptions.py
import pytest from gitlab import exceptions @pytest.mark.parametrize( "kwargs,expected", [ ({"error_message": "foo"}, "foo"), ({"error_message": "foo", "response_code": "400"}, "400: foo"), ], ) def test_gitlab_error(kwargs, expected): error = exceptions.GitlabError(**kwargs) asse...
800
Python
.py
22
31.181818
82
0.692208
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,154
test_retry.py
python-gitlab_python-gitlab/tests/unit/test_retry.py
import time from unittest import mock import pytest from gitlab import utils def test_handle_retry_on_status_ignores_unknown_status_code(): retry = utils.Retry(max_retries=1, retry_transient_errors=True) assert retry.handle_retry_on_status(418) is False def test_handle_retry_on_status_accepts_retry_after_...
1,232
Python
.py
28
39.964286
73
0.742233
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,155
test_gitlab_http_methods.py
python-gitlab_python-gitlab/tests/unit/test_gitlab_http_methods.py
import copy import warnings import pytest import requests import responses from gitlab import GitlabHttpError, GitlabList, GitlabParsingError, RedirectError from gitlab.const import RETRYABLE_TRANSIENT_ERROR_CODES from tests.unit import helpers def test_build_url(gl): r = gl._build_url("http://localhost/api/v4"...
25,196
Python
.py
723
28.22545
86
0.653936
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,156
test_config.py
python-gitlab_python-gitlab/tests/unit/test_config.py
import io import sys from pathlib import Path from textwrap import dedent from unittest import mock import pytest import gitlab from gitlab import config, const custom_user_agent = "my-package/1.0.0" valid_config = """[global] default = one ssl_verify = true timeout = 2 [one] url = http://one.url private_token = A...
11,083
Python
.py
327
28.235474
88
0.665263
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,157
helpers.py
python-gitlab_python-gitlab/tests/unit/helpers.py
import datetime import io import json from typing import Optional import requests import responses from gitlab import base MATCH_EMPTY_QUERY_PARAMS = [responses.matchers.query_param_matcher({})] class FakeObject(base.RESTObject): pass class FakeObjectWithoutId(base.RESTObject): _id_attr = None class Fa...
2,695
Python
.py
78
29.487179
88
0.694444
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,158
test_gitlab.py
python-gitlab_python-gitlab/tests/unit/test_gitlab.py
import copy import logging import pickle from http.client import HTTPConnection import pytest import requests import responses import gitlab from gitlab.config import GitlabConfigMissingError, GitlabDataError from tests.unit import helpers localhost = "http://localhost" token = "abc123" @pytest.fixture def resp_ge...
12,171
Python
.py
340
29.364706
87
0.626958
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,159
conftest.py
python-gitlab_python-gitlab/tests/unit/objects/conftest.py
"""Common mocks for resources in gitlab.v4.objects""" import re import pytest import responses @pytest.fixture def binary_content(): return b"binary content" @pytest.fixture def accepted_content(): return {"message": "202 Accepted"} @pytest.fixture def created_content(): return {"message": "201 Crea...
2,212
Python
.py
67
25.014925
79
0.593809
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,160
test_releases.py
python-gitlab_python-gitlab/tests/unit/objects/test_releases.py
""" GitLab API: https://docs.gitlab.com/ee/api/releases/index.html https://docs.gitlab.com/ee/api/releases/links.html """ import re import pytest import responses from gitlab.v4.objects import ProjectReleaseLink tag_name = "v1.0.0" release_name = "demo-release" release_description = "my-rel-desc" released_at = "201...
4,215
Python
.py
134
25.320896
99
0.655964
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,161
test_applications.py
python-gitlab_python-gitlab/tests/unit/objects/test_applications.py
""" GitLab API: https://docs.gitlab.com/ce/api/applications.html """ import pytest import responses title = "GitLab Test Instance" description = "gitlab-test.example.com" new_title = "new-title" new_description = "new-description" @pytest.fixture def resp_application_create(): content = { "name": "test_...
1,137
Python
.py
37
24.027027
62
0.610247
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,162
test_pipelines.py
python-gitlab_python-gitlab/tests/unit/objects/test_pipelines.py
""" GitLab API: https://docs.gitlab.com/ee/api/pipelines.html """ import pytest import responses from gitlab.v4.objects import ( ProjectPipeline, ProjectPipelineTestReport, ProjectPipelineTestReportSummary, ) pipeline_content = { "id": 46, "project_id": 1, "status": "pending", "ref": "mai...
8,488
Python
.py
258
25.468992
105
0.607374
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,163
test_resource_groups.py
python-gitlab_python-gitlab/tests/unit/objects/test_resource_groups.py
""" GitLab API: https://docs.gitlab.com/ee/api/resource_groups.html """ import pytest import responses from gitlab.v4.objects import ProjectResourceGroup, ProjectResourceGroupUpcomingJob from .test_jobs import failed_job_content resource_group_content = { "id": 3, "key": "production", "process_mode": "u...
2,438
Python
.py
63
32.15873
94
0.693808
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,164
test_issues.py
python-gitlab_python-gitlab/tests/unit/objects/test_issues.py
""" GitLab API: https://docs.gitlab.com/ce/api/issues.html """ import re import pytest import responses from gitlab.v4.objects import ( GroupIssuesStatistics, IssuesStatistics, ProjectIssuesStatistics, ) @pytest.fixture def resp_list_issues(): content = [{"name": "name", "id": 1}, {"name": "other_n...
3,000
Python
.py
84
28.654762
83
0.639571
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,165
test_badges.py
python-gitlab_python-gitlab/tests/unit/objects/test_badges.py
""" GitLab API: https://docs.gitlab.com/ee/api/project_badges.html GitLab API: https://docs.gitlab.com/ee/api/group_badges.html """ import re import pytest import responses from gitlab.v4.objects import GroupBadge, ProjectBadge link_url = ( "http://example.com/ci_status.svg?project=example-org/example-project&r...
5,724
Python
.py
164
28.676829
84
0.661469
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,166
test_runners.py
python-gitlab_python-gitlab/tests/unit/objects/test_runners.py
import re import pytest import responses import gitlab from gitlab.v4.objects.runners import Runner, RunnerAll runner_detail = { "active": True, "architecture": "amd64", "description": "test-1-20150125", "id": 6, "ip_address": "127.0.0.1", "is_shared": False, "contacted_at": "2016-01-25T1...
8,133
Python
.py
249
25.104418
109
0.596299
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,167
test_job_token_scope.py
python-gitlab_python-gitlab/tests/unit/objects/test_job_token_scope.py
""" GitLab API: https://docs.gitlab.com/ee/api/project_job_token_scopes.html """ import pytest import responses from gitlab.v4.objects import ProjectJobTokenScope from gitlab.v4.objects.job_token_scope import ( AllowlistGroupManager, AllowlistProjectManager, ) job_token_scope_content = { "inbound_enabled...
6,210
Python
.py
161
31.503106
95
0.662783
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,168
test_invitations.py
python-gitlab_python-gitlab/tests/unit/objects/test_invitations.py
""" GitLab API: https://docs.gitlab.com/ce/api/invitations.html """ import re import pytest import responses from gitlab.exceptions import GitlabInvitationError create_content = {"email": "email@example.com", "access_level": 30} success_content = {"status": "success"} error_content = { "status": "error", "m...
4,748
Python
.py
125
31.24
90
0.679015
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,169
test_project_statistics.py
python-gitlab_python-gitlab/tests/unit/objects/test_project_statistics.py
""" GitLab API: https://docs.gitlab.com/ce/api/project_statistics.html """ import pytest import responses from gitlab.v4.objects import ProjectAdditionalStatistics @pytest.fixture def resp_project_statistics(): content = {"fetches": {"total": 50, "days": [{"count": 10, "date": "2018-01-10"}]}} with respons...
824
Python
.py
22
31.409091
87
0.690566
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,170
test_resource_iteration_events.py
python-gitlab_python-gitlab/tests/unit/objects/test_resource_iteration_events.py
""" GitLab API: https://docs.gitlab.com/ee/api/resource_iteration_events.html """ import pytest import responses from gitlab.v4.objects import ProjectIssueResourceIterationEvent issue_event_content = {"id": 1, "resource_type": "Issue"} @pytest.fixture() def resp_list_project_issue_iteration_events(): with resp...
1,717
Python
.py
43
33.627907
90
0.712996
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,171
test_draft_notes.py
python-gitlab_python-gitlab/tests/unit/objects/test_draft_notes.py
""" GitLab API: https://docs.gitlab.com/ee/api/draft_notes.html """ from copy import deepcopy import pytest import responses from gitlab.v4.objects import ProjectMergeRequestDraftNote draft_note_content = { "id": 1, "author_id": 23, "merge_request_id": 1, "resolve_discussion": False, "discussion...
5,089
Python
.py
143
28.818182
95
0.663546
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,172
test_registry_protection_rules.py
python-gitlab_python-gitlab/tests/unit/objects/test_registry_protection_rules.py
""" GitLab API: https://docs.gitlab.com/ee/api/project_container_registry_protection_rules.html """ import pytest import responses from gitlab.v4.objects import ProjectRegistryProtectionRule protected_registry_content = { "id": 1, "project_id": 7, "repository_path_pattern": "test/image", "minimum_acc...
2,627
Python
.py
66
32.80303
91
0.691159
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,173
test_audit_events.py
python-gitlab_python-gitlab/tests/unit/objects/test_audit_events.py
""" GitLab API: https://docs.gitlab.com/ee/api/audit_events.html#project-audit-events """ import re import pytest import responses from gitlab.v4.objects.audit_events import ( AuditEvent, GroupAuditEvent, ProjectAuditEvent, ) id = 5 audit_events_content = { "id": 5, "author_id": 1, "entity_...
2,928
Python
.py
86
28.360465
72
0.671869
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,174
test_resource_label_events.py
python-gitlab_python-gitlab/tests/unit/objects/test_resource_label_events.py
""" GitLab API: https://docs.gitlab.com/ee/api/resource_label_events.html """ import pytest import responses from gitlab.v4.objects import ( GroupEpicResourceLabelEvent, ProjectIssueResourceLabelEvent, ProjectMergeRequestResourceLabelEvent, ) @pytest.fixture() def resp_group_epic_request_label_events():...
3,424
Python
.py
91
29.879121
92
0.649895
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,175
test_personal_access_tokens.py
python-gitlab_python-gitlab/tests/unit/objects/test_personal_access_tokens.py
""" GitLab API: https://docs.gitlab.com/ee/api/personal_access_tokens.html https://docs.gitlab.com/ee/api/users.html#create-a-personal-access-token """ import pytest import responses from gitlab.v4.objects import PersonalAccessToken user_id = 1 token_id = 1 token_name = "Test Token" token_url = "http://localhost/ap...
4,464
Python
.py
124
29.491935
83
0.673171
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,176
test_appearance.py
python-gitlab_python-gitlab/tests/unit/objects/test_appearance.py
""" GitLab API: https://docs.gitlab.com/ce/api/appearance.html """ import pytest import responses title = "GitLab Test Instance" description = "gitlab-test.example.com" new_title = "new-title" new_description = "new-description" @pytest.fixture def resp_application_appearance(): content = { "title": tit...
2,063
Python
.py
54
31.074074
79
0.664164
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,177
test_project_merge_request_approvals.py
python-gitlab_python-gitlab/tests/unit/objects/test_project_merge_request_approvals.py
""" Gitlab API: https://docs.gitlab.com/ee/api/merge_request_approvals.html """ import copy import pytest import responses import gitlab from gitlab.mixins import UpdateMethod approval_rule_id = 7 approval_rule_name = "security" approvals_required = 3 user_ids = [5, 50] group_ids = [5] new_approval_rule_name = "ne...
15,314
Python
.py
367
30.166213
88
0.573193
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,178
test_project_import_export.py
python-gitlab_python-gitlab/tests/unit/objects/test_project_import_export.py
""" GitLab API: https://docs.gitlab.com/ce/api/project_import_export.html """ import pytest import responses @pytest.fixture def resp_import_project(): content = { "id": 1, "description": None, "name": "api-project", "name_with_namespace": "Administrator / api-project", "p...
6,454
Python
.py
189
26.592593
85
0.614038
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,179
test_jobs.py
python-gitlab_python-gitlab/tests/unit/objects/test_jobs.py
""" GitLab API: https://docs.gitlab.com/ee/api/jobs.html """ from functools import partial import pytest import responses from gitlab.v4.objects import ProjectJob failed_job_content = { "commit": { "author_email": "admin@example.com", "author_name": "Administrator", }, "coverage": None, ...
5,248
Python
.py
145
28.124138
101
0.603387
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,180
test_keys.py
python-gitlab_python-gitlab/tests/unit/objects/test_keys.py
""" GitLab API: https://docs.gitlab.com/ce/api/keys.html """ import pytest import responses from gitlab.v4.objects import Key key_content = {"id": 1, "title": "title", "key": "ssh-keytype AAAAC3Nza/key comment"} @pytest.fixture def resp_get_key_by_id(): with responses.RequestsMock() as rsps: rsps.add( ...
1,330
Python
.py
42
25.119048
85
0.632941
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,181
test_submodules.py
python-gitlab_python-gitlab/tests/unit/objects/test_submodules.py
""" GitLab API: https://docs.gitlab.com/ce/api/repository_submodules.html """ import pytest import responses @pytest.fixture def resp_update_submodule(): content = { "id": "ed899a2f4b50b4370feeea94676502b42383c746", "short_id": "ed899a2f4b5", "title": "Message", "author_name": "Au...
1,455
Python
.py
41
28.195122
85
0.635653
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,182
test_commits.py
python-gitlab_python-gitlab/tests/unit/objects/test_commits.py
""" GitLab API: https://docs.gitlab.com/ce/api/commits.html """ import pytest import responses @pytest.fixture def resp_create_commit(): content = { "id": "ed899a2f4b50b4370feeea94676502b42383c746", "short_id": "ed899a2f", "title": "Commit message", } with responses.RequestsMock(...
3,938
Python
.py
115
26.295652
91
0.615
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,183
test_merge_requests.py
python-gitlab_python-gitlab/tests/unit/objects/test_merge_requests.py
""" GitLab API: https://docs.gitlab.com/ce/api/merge_requests.html https://docs.gitlab.com/ee/api/deployments.html#list-of-merge-requests-associated-with-a-deployment """ import re import pytest import responses from gitlab.base import RESTObjectList from gitlab.v4.objects import ( ProjectDeploymentMergeRequest,...
7,271
Python
.py
201
27.432836
114
0.590071
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,184
test_remote_mirrors.py
python-gitlab_python-gitlab/tests/unit/objects/test_remote_mirrors.py
""" GitLab API: https://docs.gitlab.com/ce/api/remote_mirrors.html """ import pytest import responses from gitlab.v4.objects import ProjectRemoteMirror @pytest.fixture def resp_remote_mirrors(): content = { "enabled": True, "id": 1, "last_error": None, "last_successful_update_at"...
2,607
Python
.py
67
31.044776
79
0.643423
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,185
test_projects.py
python-gitlab_python-gitlab/tests/unit/objects/test_projects.py
""" GitLab API: https://docs.gitlab.com/ce/api/projects.html """ from unittest.mock import mock_open, patch import pytest import responses from gitlab import exceptions from gitlab.const import DEVELOPER_ACCESS, SEARCH_SCOPE_ISSUES from gitlab.v4.objects import ( Project, ProjectFork, ProjectUser, St...
21,091
Python
.py
634
25.68612
103
0.630534
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,186
test_environments.py
python-gitlab_python-gitlab/tests/unit/objects/test_environments.py
""" GitLab API: https://docs.gitlab.com/ce/api/environments.html """ import pytest import responses from gitlab.v4.objects import ProjectEnvironment, ProjectProtectedEnvironment @pytest.fixture def resp_get_environment(): content = {"name": "environment_name", "id": 1, "last_deployment": "sometime"} with r...
1,722
Python
.py
44
32.409091
82
0.697479
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,187
test_packages.py
python-gitlab_python-gitlab/tests/unit/objects/test_packages.py
""" GitLab API: https://docs.gitlab.com/ce/api/packages.html """ import re import pytest import responses from gitlab import exceptions as exc from gitlab.v4.objects import ( GenericPackage, GroupPackage, ProjectPackage, ProjectPackageFile, ProjectPackagePipeline, ) package_content = { "id":...
12,878
Python
.py
359
27.384401
118
0.611357
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,188
test_statistics.py
python-gitlab_python-gitlab/tests/unit/objects/test_statistics.py
""" GitLab API: https://docs.gitlab.com/ee/api/statistics.html """ import pytest import responses content = { "forks": "10", "issues": "76", "merge_requests": "27", "notes": "954", "snippets": "50", "ssh_keys": "10", "milestones": "40", "users": "50", "groups": "10", "projects"...
1,334
Python
.py
41
27.073171
65
0.652411
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,189
test_pipeline_schedules.py
python-gitlab_python-gitlab/tests/unit/objects/test_pipeline_schedules.py
""" GitLab API: https://docs.gitlab.com/ce/api/pipeline_schedules.html """ import pytest import responses from gitlab.v4.objects import ProjectPipelineSchedulePipeline pipeline_content = { "id": 48, "iid": 13, "project_id": 29, "status": "pending", "source": "scheduled", "ref": "new-pipeline"...
3,223
Python
.py
92
27.858696
109
0.633708
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,190
test_package_protection_rules.py
python-gitlab_python-gitlab/tests/unit/objects/test_package_protection_rules.py
""" GitLab API: https://docs.gitlab.com/ee/api/project_packages_protection_rules.html """ import pytest import responses from gitlab.v4.objects import ProjectPackageProtectionRule protected_package_content = { "id": 1, "project_id": 7, "package_name_pattern": "v*", "package_type": "npm", "minimum...
2,951
Python
.py
78
30.679487
82
0.67578
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,191
test_secure_files.py
python-gitlab_python-gitlab/tests/unit/objects/test_secure_files.py
""" GitLab API: https://docs.gitlab.com/ee/api/secure_files.html """ import pytest import responses from gitlab.v4.objects import ProjectSecureFile secure_file_content = { "id": 1, "name": "myfile.jks", "checksum": "16630b189ab34b2e3504f4758e1054d2e478deda510b2b08cc0ef38d12e80aac", "checksum_algorith...
2,942
Python
.py
80
29.5375
86
0.659866
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,192
test_cluster_agents.py
python-gitlab_python-gitlab/tests/unit/objects/test_cluster_agents.py
""" GitLab API: https://docs.gitlab.com/ee/api/cluster_agents.html """ import pytest import responses from gitlab.v4.objects import ProjectClusterAgent agent_content = { "id": 1, "name": "agent-1", "config_project": { "id": 20, "description": "", "name": "test", "name_with...
2,710
Python
.py
78
27.705128
82
0.647532
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,193
test_variables.py
python-gitlab_python-gitlab/tests/unit/objects/test_variables.py
""" GitLab API: https://docs.gitlab.com/ee/api/instance_level_ci_variables.html https://docs.gitlab.com/ee/api/project_level_variables.html https://docs.gitlab.com/ee/api/group_level_variables.html """ import re import pytest import responses from gitlab.v4.objects import GroupVariable, ProjectVariable, Variable ke...
5,173
Python
.py
144
30.131944
82
0.69717
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,194
test_todos.py
python-gitlab_python-gitlab/tests/unit/objects/test_todos.py
""" GitLab API: https://docs.gitlab.com/ce/api/todos.html """ import pytest import responses from gitlab.v4.objects import Todo @pytest.fixture def json_content(): return [ { "id": 102, "project": { "id": 2, "name": "Gitlab Ce", "na...
2,193
Python
.py
73
19.876712
77
0.504983
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,195
test_bridges.py
python-gitlab_python-gitlab/tests/unit/objects/test_bridges.py
""" GitLab API: https://docs.gitlab.com/ee/api/jobs.html#list-pipeline-bridges """ import pytest import responses from gitlab.v4.objects import ProjectPipelineBridge @pytest.fixture def resp_list_bridges(): export_bridges_content = { "commit": { "author_email": "admin@example.com", ...
3,665
Python
.py
101
26.366337
109
0.546554
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,196
test_users.py
python-gitlab_python-gitlab/tests/unit/objects/test_users.py
""" GitLab API: https://docs.gitlab.com/ce/api/users.html https://docs.gitlab.com/ee/api/projects.html#list-projects-starred-by-a-user """ import pytest import responses from gitlab.v4.objects import StarredProject, User, UserMembership, UserStatus from .test_projects import project_content @pytest.fixture def res...
8,577
Python
.py
268
23.578358
110
0.590716
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,197
test_resource_milestone_events.py
python-gitlab_python-gitlab/tests/unit/objects/test_resource_milestone_events.py
""" GitLab API: https://docs.gitlab.com/ee/api/resource_milestone_events.html """ import pytest import responses from gitlab.v4.objects import ( ProjectIssueResourceMilestoneEvent, ProjectMergeRequestResourceMilestoneEvent, ) @pytest.fixture() def resp_merge_request_milestone_events(): mr_content = {"ii...
2,458
Python
.py
63
31.507937
96
0.671698
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,198
test_services.py
python-gitlab_python-gitlab/tests/unit/objects/test_services.py
""" GitLab API: https://docs.gitlab.com/ce/api/integrations.html """ import pytest import responses from gitlab.v4.objects import ProjectIntegration, ProjectService @pytest.fixture def resp_integration(): content = { "id": 100152, "title": "Pipelines emails", "slug": "pipelines-email", ...
3,169
Python
.py
84
29.833333
82
0.657003
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)
23,199
test_project_access_tokens.py
python-gitlab_python-gitlab/tests/unit/objects/test_project_access_tokens.py
""" GitLab API: https://docs.gitlab.com/ee/api/project_access_tokens.html """ import pytest import responses from gitlab.v4.objects import ProjectAccessToken @pytest.fixture def resp_list_project_access_token(token_content): with responses.RequestsMock(assert_all_requests_are_fired=False) as rsps: rsps....
3,982
Python
.py
106
29.707547
80
0.647288
python-gitlab/python-gitlab
2,230
648
106
LGPL-3.0
9/5/2024, 5:13:26 PM (Europe/Amsterdam)