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,000 | connection.py | Tribler_tribler/src/tribler/core/socks5/connection.py | from __future__ import annotations
import logging
from asyncio import BaseTransport, Protocol, WriteTransport, ensure_future
from typing import TYPE_CHECKING, cast
from ipv8.messaging.serialization import PackError
from tribler.core.socks5.conversion import (
REP_COMMAND_NOT_SUPPORTED,
REP_SUCCEEDED,
REQ... | 8,342 | Python | .py | 177 | 37.836158 | 119 | 0.656738 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,001 | aiohttp_connector.py | Tribler_tribler/src/tribler/core/socks5/aiohttp_connector.py | from __future__ import annotations
import socket
from asyncio import BaseTransport, wait_for
from typing import TYPE_CHECKING, Callable
from aiohttp import TCPConnector
from aiohttp.abc import AbstractResolver
from tribler.core.socks5.client import Socks5Client, Socks5ClientUDPConnection
if TYPE_CHECKING:
from ... | 2,118 | Python | .py | 53 | 31.226415 | 107 | 0.617073 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,002 | server.py | Tribler_tribler/src/tribler/core/socks5/server.py | from __future__ import annotations
import logging
from asyncio import get_event_loop
from typing import TYPE_CHECKING, List
from tribler.core.socks5.connection import Socks5Connection
if TYPE_CHECKING:
from asyncio.base_events import Server
from ipv8_rust_tunnels.endpoint import RustEndpoint
from tribl... | 2,282 | Python | .py | 55 | 32.436364 | 105 | 0.631555 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,003 | community.py | Tribler_tribler/src/tribler/core/knowledge/community.py | import random
from binascii import unhexlify
from cryptography.exceptions import InvalidSignature
from ipv8.community import Community, CommunitySettings
from ipv8.keyvault.private.libnaclkey import LibNaCLSK
from ipv8.lazy_community import lazy_wrapper
from ipv8.types import Key, Peer
from pony.orm import db_session
... | 8,061 | Python | .py | 169 | 38.449704 | 115 | 0.67401 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,004 | payload.py | Tribler_tribler/src/tribler/core/knowledge/payload.py | from ipv8.messaging.lazy_payload import VariablePayload, vp_compile
@vp_compile
class StatementOperation(VariablePayload):
"""
Do not change the format of the StatementOperation, because this will result in an invalid signature.
"""
names = ["subject_type", "subject", "predicate", "object", "operatio... | 1,836 | Python | .py | 53 | 30.075472 | 120 | 0.705448 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,005 | content_bundling.py | Tribler_tribler/src/tribler/core/knowledge/content_bundling.py | from __future__ import annotations
import logging
import math
import re
from collections import defaultdict
from itertools import chain
from typing import Dict, Iterable, TypedDict, cast
logger = logging.getLogger(__name__)
class DictWithName(TypedDict):
"""
A dictionary that has a "name" key.... | 3,575 | Python | .py | 70 | 43.942857 | 120 | 0.664745 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,006 | operations_requests.py | Tribler_tribler/src/tribler/core/knowledge/operations_requests.py | from __future__ import annotations
from collections import defaultdict
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from ipv8.types import Peer
class PeerValidationError(ValueError):
"""
A peer has exceeded their number of responses.
"""
class OperationsRequests:
"""
This class is de... | 1,721 | Python | .py | 41 | 34.804878 | 117 | 0.673065 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,007 | knowledge_endpoint.py | Tribler_tribler/src/tribler/core/knowledge/restapi/knowledge_endpoint.py | from __future__ import annotations
import binascii
from typing import TYPE_CHECKING
from aiohttp import web
from aiohttp_apispec import docs
from ipv8.REST.schema import schema
from marshmallow import Schema
from marshmallow.fields import Boolean, List, String
from pony.orm import db_session
from typing_extensions im... | 6,741 | Python | .py | 136 | 40.058824 | 116 | 0.660027 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,008 | tribler_database.py | Tribler_tribler/src/tribler/core/database/tribler_database.py | from __future__ import annotations
import logging
import os
from pathlib import Path
from typing import TYPE_CHECKING, cast
from pony import orm
from pony.orm import Database, db_session
from tribler.core.database.layers.health import HealthDataAccessLayer
from tribler.core.database.layers.knowledge import Knowledge... | 3,901 | Python | .py | 102 | 30.411765 | 118 | 0.631174 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,009 | queries.py | Tribler_tribler/src/tribler/core/database/queries.py | from __future__ import annotations
import re
from dataclasses import dataclass, field
fts_query_re = re.compile(r"\w+", re.UNICODE)
@dataclass
class Query:
"""
A simple unpacking of a user query.
"""
original_query: str
tags: set[str] = field(default_factory=set)
fts_text: str = ""
def to... | 599 | Python | .py | 22 | 22.727273 | 63 | 0.642606 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,010 | serialization.py | Tribler_tribler/src/tribler/core/database/serialization.py | from __future__ import annotations
import struct
from binascii import hexlify
from datetime import datetime, timedelta
from typing import TYPE_CHECKING
from ipv8.keyvault.crypto import default_eccrypto
from ipv8.messaging.lazy_payload import VariablePayload, vp_compile
from ipv8.messaging.serialization import VarLenU... | 9,665 | Python | .py | 255 | 31.941176 | 114 | 0.671201 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,011 | ranks.py | Tribler_tribler/src/tribler/core/database/ranks.py | """
Search utilities.
Author(s): Jelle Roozenburg, Arno Bakker, Alexander Kozlovsky
"""
from __future__ import annotations
import re
import time
from collections import deque
SECONDS_IN_DAY = 60 * 60 * 24
def item_rank(query: str, item: dict) -> float:
"""
Calculates the torrent rank for item received from... | 7,457 | Python | .py | 135 | 49.614815 | 120 | 0.69515 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,012 | store.py | Tribler_tribler/src/tribler/core/database/store.py | from __future__ import annotations
import enum
import logging
import re
import threading
from asyncio import get_running_loop
from dataclasses import dataclass, field
from datetime import datetime, timedelta
from os.path import getsize
from pathlib import Path
from time import sleep, time
from typing import TYPE_CHECK... | 33,115 | Python | .py | 655 | 39.662595 | 120 | 0.619717 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,013 | database_endpoint.py | Tribler_tribler/src/tribler/core/database/restapi/database_endpoint.py | from __future__ import annotations
import asyncio
import json
import typing
from binascii import unhexlify
from dataclasses import asdict
from aiohttp import web
from aiohttp_apispec import docs, querystring_schema
from ipv8.REST.schema import schema
from marshmallow.fields import Boolean, Integer, String
from pony.o... | 13,906 | Python | .py | 319 | 32.040752 | 117 | 0.575489 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,014 | schema.py | Tribler_tribler/src/tribler/core/database/restapi/schema.py | from marshmallow import Schema
from marshmallow.fields import Boolean, Float, Integer, List, String
class MetadataParameters(Schema):
"""
The REST API schema for metadata parameters.
"""
first = Integer(default=1, description="Limit the range of the query")
last = Integer(default=50, description=... | 2,200 | Python | .py | 59 | 31.661017 | 116 | 0.681583 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,015 | layer.py | Tribler_tribler/src/tribler/core/database/layers/layer.py | from __future__ import annotations
from typing import TypeVar
from pony.orm.core import Entity
EntityImpl = TypeVar("EntityImpl", bound=Entity)
class Layer:
"""
A generic database layer.
"""
def get_or_create(self, cls: type[EntityImpl], create_kwargs: dict | None = None, **kwargs) -> EntityImpl:
... | 811 | Python | .py | 22 | 29.363636 | 110 | 0.636829 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,016 | knowledge.py | Tribler_tribler/src/tribler/core/database/layers/knowledge.py | from __future__ import annotations
import datetime
import logging
from dataclasses import dataclass
from enum import IntEnum
from typing import TYPE_CHECKING, Callable, Iterator, List, Set
from pony import orm
from pony.orm import raw_sql
from pony.orm.core import Database, Entity, Query, UnrepeatableReadError, selec... | 21,968 | Python | .py | 447 | 38.651007 | 120 | 0.626792 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,017 | health.py | Tribler_tribler/src/tribler/core/database/layers/health.py | from __future__ import annotations
import logging
from binascii import hexlify
from datetime import datetime
from enum import IntEnum
from typing import TYPE_CHECKING
from pony import orm
from tribler.core.database.layers.layer import EntityImpl, Layer
if TYPE_CHECKING:
import dataclasses
from pony.orm imp... | 5,002 | Python | .py | 135 | 28.851852 | 101 | 0.633823 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,018 | torrent_state.py | Tribler_tribler/src/tribler/core/database/orm_bindings/torrent_state.py | from __future__ import annotations
from typing import TYPE_CHECKING
from pony import orm
from typing_extensions import Self
from tribler.core.torrent_checker.dataclasses import HealthInfo
if TYPE_CHECKING:
from dataclasses import dataclass
from pony.orm import Database
from tribler.core.database.orm_b... | 2,353 | Python | .py | 53 | 36.471698 | 109 | 0.667982 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,019 | torrent_metadata.py | Tribler_tribler/src/tribler/core/database/orm_bindings/torrent_metadata.py | from __future__ import annotations
import random
from binascii import hexlify, unhexlify
from datetime import datetime
from struct import unpack
from typing import TYPE_CHECKING, Any
from lz4.frame import LZ4FrameCompressor
from pony import orm
from pony.orm import Database, db_session
from typing_extensions import S... | 14,336 | Python | .py | 282 | 41.404255 | 118 | 0.642765 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,020 | tracker_state.py | Tribler_tribler/src/tribler/core/database/orm_bindings/tracker_state.py | from __future__ import annotations
from typing import TYPE_CHECKING, Any
from pony import orm
from tribler.core.libtorrent.trackers import MalformedTrackerURLException, get_uniformed_tracker_url
if TYPE_CHECKING:
from dataclasses import dataclass
from pony.orm import Database
from tribler.core.databas... | 2,012 | Python | .py | 49 | 32.571429 | 102 | 0.630658 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,021 | __init__.py | Tribler_tribler/src/tribler/core/database/orm_bindings/__init__.py | """
This subpackage contains bindings of various Tribler metadata classes for PonyORM.
"""
| 91 | Python | .py | 3 | 29.333333 | 82 | 0.806818 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,022 | misc.py | Tribler_tribler/src/tribler/core/database/orm_bindings/misc.py | from __future__ import annotations
from typing import TYPE_CHECKING
from pony import orm
if TYPE_CHECKING:
import dataclasses
from pony.orm import Database
@dataclasses.dataclass
class MiscData:
"""
A miscellaneous key value mapping in the database.
"""
name: str
... | 940 | Python | .py | 29 | 25.517241 | 90 | 0.614955 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,023 | trackers.py | Tribler_tribler/src/tribler/core/libtorrent/trackers.py | from __future__ import annotations
import re
from http.client import HTTP_PORT, HTTPS_PORT
from json import dumps
from urllib.parse import ParseResult, parse_qsl, unquote, urlencode, urlparse, urlsplit
UDP = "udp"
HTTP = "http"
HTTPS = "https"
SUPPORTED_SCHEMES = {UDP, HTTP, HTTPS}
DEFAULT_PORTS = {HTTP: HTTP_PORT, H... | 6,975 | Python | .py | 156 | 38.076923 | 111 | 0.648162 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,024 | torrentdef.py | Tribler_tribler/src/tribler/core/libtorrent/torrentdef.py | """
Author(s): Arno Bakker.
"""
from __future__ import annotations
import itertools
import logging
from asyncio import get_running_loop
from contextlib import suppress
from functools import cached_property
from hashlib import sha1
from pathlib import Path
from typing import TYPE_CHECKING, Any, Generator, Iterable, Lit... | 25,588 | Python | .py | 556 | 35.606115 | 118 | 0.591862 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,025 | uris.py | Tribler_tribler/src/tribler/core/libtorrent/uris.py | import logging
import os
from pathlib import Path
from aiohttp import ClientSession
from aiohttp.hdrs import LOCATION
from yarl import URL
logger = logging.getLogger(__name__)
def url_to_path(file_url: str) -> str:
"""
Convert a URL to a path.
Example:
-------
'file:///path/to/file' -> '/pa... | 1,715 | Python | .py | 44 | 32.568182 | 117 | 0.628244 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,026 | torrent_file_tree.py | Tribler_tribler/src/tribler/core/libtorrent/torrent_file_tree.py | from __future__ import annotations
import os
import re
from bisect import bisect
from dataclasses import dataclass, field
from pathlib import Path
from typing import TYPE_CHECKING, Dict, Generator, ItemsView, cast
if TYPE_CHECKING:
import libtorrent
class TorrentFileTree:
"""
A tree of directories that ... | 16,984 | Python | .py | 326 | 40.947853 | 120 | 0.605699 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,027 | torrents.py | Tribler_tribler/src/tribler/core/libtorrent/torrents.py | from __future__ import annotations
import logging
from asyncio import CancelledError, Future
from contextlib import suppress
from hashlib import sha1
from os.path import getsize
from typing import TYPE_CHECKING, Callable, Iterable, TypedDict, TypeVar
import libtorrent as lt
from typing_extensions import ParamSpec
if... | 7,156 | Python | .py | 168 | 35.10119 | 118 | 0.658695 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,028 | torrentinfo_endpoint.py | Tribler_tribler/src/tribler/core/libtorrent/restapi/torrentinfo_endpoint.py | from __future__ import annotations
import json
import logging
from asyncio.exceptions import TimeoutError as AsyncTimeoutError
from binascii import hexlify, unhexlify
from copy import deepcopy
from ssl import SSLError
from typing import TYPE_CHECKING, Iterable
import libtorrent as lt
from aiohttp import (
BaseCon... | 11,147 | Python | .py | 226 | 37.845133 | 116 | 0.618077 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,029 | create_torrent_endpoint.py | Tribler_tribler/src/tribler/core/libtorrent/restapi/create_torrent_endpoint.py | import asyncio
import base64
import json
from importlib.metadata import PackageNotFoundError, version
from pathlib import Path
import libtorrent as lt
from aiohttp import web
from aiohttp.abc import Request
from aiohttp_apispec import docs, json_schema
from ipv8.REST.schema import schema
from marshmallow.fields import... | 5,483 | Python | .py | 125 | 34.688 | 114 | 0.633621 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,030 | downloads_endpoint.py | Tribler_tribler/src/tribler/core/libtorrent/restapi/downloads_endpoint.py | from __future__ import annotations
import mimetypes
from asyncio import get_event_loop, shield, wait_for
from binascii import hexlify, unhexlify
from pathlib import Path, PurePosixPath
from typing import TYPE_CHECKING, Any, Optional, TypedDict, cast
import libtorrent as lt
from aiohttp import web
from aiohttp.web_exc... | 42,983 | Python | .py | 974 | 31.788501 | 120 | 0.562342 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,031 | libtorrent_endpoint.py | Tribler_tribler/src/tribler/core/libtorrent/restapi/libtorrent_endpoint.py | from __future__ import annotations
from asyncio import Future
from binascii import hexlify
from typing import TYPE_CHECKING
from aiohttp import web
from aiohttp_apispec import docs
from ipv8.REST.schema import schema
from marshmallow.fields import Integer
from tribler.core.restapi.rest_endpoint import RESTEndpoint, ... | 4,195 | Python | .py | 98 | 32.459184 | 113 | 0.603824 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,032 | download.py | Tribler_tribler/src/tribler/core/libtorrent/download_manager/download.py | """
A wrapper around a libtorrent download.
Author(s): Arno Bakker, Egbert Bouman
"""
from __future__ import annotations
import asyncio
import base64
import itertools
import logging
from asyncio import CancelledError, Future, get_running_loop, sleep, wait_for
from binascii import hexlify
from collections import defau... | 46,001 | Python | .py | 955 | 37.882723 | 119 | 0.617129 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,033 | stream.py | Tribler_tribler/src/tribler/core/libtorrent/download_manager/stream.py | """
There are 2 types of prioritisation implemented:
1-STATIC PRIORITISATION: Header + Footer + Prebuffer Prioritisation:
When a file in torrent is set to stream, predefined size of heeder + footer + prebuffer is
set to prio:7 deadline:0 and rest of the files and pieces are set to prio:0 (which means dont download at a... | 26,995 | Python | .py | 558 | 38.919355 | 118 | 0.637236 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,034 | download_manager.py | Tribler_tribler/src/tribler/core/libtorrent/download_manager/download_manager.py | """
A wrapper around libtorrent.
Author(s): Egbert Bouman
"""
from __future__ import annotations
import asyncio
import dataclasses
import logging
import os
import time
from asyncio import CancelledError, Future, gather, iscoroutine, shield, sleep, wait_for
from binascii import hexlify, unhexlify
from collections impo... | 52,290 | Python | .py | 970 | 42.314433 | 120 | 0.619183 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,035 | download_config.py | Tribler_tribler/src/tribler/core/libtorrent/download_manager/download_config.py | from __future__ import annotations
import base64
from io import StringIO
from pathlib import Path
from typing import TYPE_CHECKING, Any, Dict, Literal, TypedDict, cast, overload
import libtorrent as lt
from configobj import ConfigObj
from validate import Validator
if TYPE_CHECKING:
from tribler.tribler_config im... | 9,338 | Python | .py | 239 | 31.619247 | 102 | 0.634443 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,036 | dht_health_manager.py | Tribler_tribler/src/tribler/core/libtorrent/download_manager/dht_health_manager.py | from __future__ import annotations
import math
from asyncio import Future
from binascii import hexlify
from typing import Awaitable
import libtorrent as lt
from ipv8.taskmanager import TaskManager
from tribler.core.torrent_checker.dataclasses import HealthInfo
class DHTHealthManager(TaskManager):
"""
This ... | 6,215 | Python | .py | 120 | 42.55 | 120 | 0.655013 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,037 | download_state.py | Tribler_tribler/src/tribler/core/libtorrent/download_manager/download_state.py | """
Contains a snapshot of the state of the Download at a specific point in time.
Author(s): Arno Bakker
"""
from __future__ import annotations
import logging
from enum import Enum
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from pathlib import Path
import libtorrent
from tribler.core.libtorrent... | 11,648 | Python | .py | 275 | 33.396364 | 119 | 0.63359 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,038 | community.py | Tribler_tribler/src/tribler/core/rendezvous/community.py | from __future__ import annotations
from typing import TYPE_CHECKING
from ipv8.community import Community, CommunitySettings
from ipv8.lazy_community import lazy_wrapper
from tribler.core.rendezvous.payload import PullRecordPayload, RecordPayload
if TYPE_CHECKING:
from ipv8.types import Peer
from tribler.co... | 2,092 | Python | .py | 49 | 35.612245 | 118 | 0.686914 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,039 | rendezvous_hook.py | Tribler_tribler/src/tribler/core/rendezvous/rendezvous_hook.py | import logging
import time
from ipv8.peerdiscovery.network import Network, PeerObserver
from ipv8.types import Peer
from tribler.core.rendezvous.database import RendezvousDatabase
class RendezvousHook(PeerObserver):
"""
Keep track of peers that we have seen.
"""
def __init__(self, rendezvous_db: Re... | 1,422 | Python | .py | 40 | 28.025 | 101 | 0.632192 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,040 | payload.py | Tribler_tribler/src/tribler/core/rendezvous/payload.py | from __future__ import annotations
from ipv8.messaging.lazy_payload import VariablePayloadWID, vp_compile
@vp_compile
class RecordPayload(VariablePayloadWID):
"""
A network payload containing a query and corresponding infohashes with their perceived preference.
"""
msg_id = 1
names = ["public_k... | 712 | Python | .py | 25 | 24 | 102 | 0.662722 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,041 | database.py | Tribler_tribler/src/tribler/core/rendezvous/database.py | from __future__ import annotations
import socket
from pathlib import Path
from typing import TYPE_CHECKING
from ipv8.messaging.interfaces.udp.endpoint import UDPv6Address
from pony.orm import Database, db_session, select
from tribler.core.rendezvous.orm_bindings import certificate
if TYPE_CHECKING:
from os impo... | 2,517 | Python | .py | 59 | 32.694915 | 106 | 0.619067 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,042 | certificate.py | Tribler_tribler/src/tribler/core/rendezvous/orm_bindings/certificate.py | from __future__ import annotations
from typing import TYPE_CHECKING, Iterator
from pony.orm import Database, Required
from typing_extensions import Self
if TYPE_CHECKING:
import dataclasses
class IterRendezvousCertificate(type): # noqa: D101
def __iter__(cls) -> Iterator[RendezvousCertificate]: .... | 1,353 | Python | .py | 35 | 31.285714 | 104 | 0.657209 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,043 | test_hidden_services.py | Tribler_tribler/src/tribler/test_integration/test_hidden_services.py | from __future__ import annotations
from asyncio import sleep
from typing import TYPE_CHECKING, cast
from unittest.mock import Mock
import libtorrent
from ipv8.community import CommunitySettings
from ipv8.keyvault.crypto import default_eccrypto
from ipv8.messaging.anonymization.tunnel import PEER_FLAG_EXIT_BT
from ipv... | 9,536 | Python | .py | 193 | 41.150259 | 120 | 0.690048 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,044 | test_anon_download.py | Tribler_tribler/src/tribler/test_integration/test_anon_download.py | from __future__ import annotations
from asyncio import sleep
from typing import TYPE_CHECKING, cast
from unittest.mock import Mock
import libtorrent
from ipv8.community import CommunitySettings
from ipv8.keyvault.crypto import default_eccrypto
from ipv8.messaging.anonymization.tunnel import PEER_FLAG_EXIT_BT
from ipv... | 8,188 | Python | .py | 170 | 39.8 | 120 | 0.687618 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,045 | mypy.yml | Tribler_tribler/.github/workflows/mypy.yml | name: Mypy
on: [pull_request, workflow_dispatch]
jobs:
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: Setup Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.9
cache:... | 641 | Python | .py | 21 | 22.333333 | 121 | 0.587097 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,046 | conf.py | Tribler_tribler/doc/conf.py | #
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# ruff: noqa: A001
# -- Path setup --------------------------------------------------------------
... | 6,104 | Python | .py | 148 | 39.108108 | 98 | 0.662771 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,047 | locate-python.py | Tribler_tribler/build/win/locate-python.py | """
Print the directory where Python is installed.
Author(s): Lipu Fei
"""
import os
import sys
if __name__ == "__main__":
print(os.path.abspath(os.path.dirname(sys.executable)))
| 185 | Python | .pyt | 8 | 21.375 | 59 | 0.708571 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,048 | test_dataclasses.py | Tribler_tribler/src/tribler/test_unit/core/torrent_checker/test_dataclasses.py | import sys
from ipv8.test.base import TestBase
from tribler.core.torrent_checker.dataclasses import HealthInfo
class TestHealthInfo(TestBase):
"""
Tests for the HealthInfo class.
"""
def test_is_valid_no_seeders(self) -> None:
"""
Test if health info with negative seeders is invalid... | 4,690 | Python | .tac | 104 | 36.75 | 112 | 0.618242 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,049 | dataclasses.py | Tribler_tribler/src/tribler/core/torrent_checker/dataclasses.py | from __future__ import annotations
import time
from dataclasses import dataclass, field
from enum import IntEnum
MINUTE = 60
HOUR = MINUTE * 60
TOLERABLE_TIME_DRIFT = MINUTE # When receiving health from another peer, how far the timestamp can be in the future?
TORRENT_CHECK_WINDOW = MINUTE # When asking multiple tr... | 3,497 | Python | .tac | 82 | 35.329268 | 119 | 0.65812 | Tribler/tribler | 4,768 | 443 | 131 | GPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,050 | client.py | python-gitlab_python-gitlab/gitlab/client.py | """Wrapper for the GitLab API."""
from __future__ import annotations
import os
import re
from typing import (
Any,
BinaryIO,
cast,
Dict,
List,
Optional,
Tuple,
Type,
TYPE_CHECKING,
Union,
)
from urllib import parse
import requests
import gitlab
import gitlab.config
import git... | 51,217 | Python | .py | 1,179 | 32.547074 | 88 | 0.594066 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,051 | config.py | python-gitlab_python-gitlab/gitlab/config.py | import configparser
import os
import shlex
import subprocess
from os.path import expanduser, expandvars
from pathlib import Path
from typing import List, Optional, Union
from gitlab.const import USER_AGENT
_DEFAULT_FILES: List[str] = [
"/etc/python-gitlab.cfg",
str(Path.home() / ".python-gitlab.cfg"),
]
HELP... | 9,088 | Python | .py | 235 | 28.225532 | 87 | 0.584934 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,052 | mixins.py | python-gitlab_python-gitlab/gitlab/mixins.py | import enum
from types import ModuleType
from typing import (
Any,
Callable,
Dict,
Iterator,
List,
Optional,
Tuple,
Type,
TYPE_CHECKING,
Union,
)
import requests
import gitlab
from gitlab import base, cli
from gitlab import exceptions as exc
from gitlab import utils
__all__ = ... | 36,645 | Python | .py | 894 | 32.350112 | 88 | 0.636699 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,053 | _version.py | python-gitlab_python-gitlab/gitlab/_version.py | __author__ = "Gauvain Pocentek, python-gitlab team"
__copyright__ = "Copyright 2013-2019 Gauvain Pocentek, 2019-2023 python-gitlab team"
__email__ = "gauvainpocentek@gmail.com"
__license__ = "LGPL3"
__title__ = "python-gitlab"
__version__ = "4.13.0"
| 250 | Python | .py | 6 | 40.666667 | 84 | 0.696721 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,054 | cli.py | python-gitlab_python-gitlab/gitlab/cli.py | import argparse
import dataclasses
import functools
import os
import pathlib
import re
import sys
from types import ModuleType
from typing import (
Any,
Callable,
cast,
Dict,
NoReturn,
Optional,
Tuple,
Type,
TYPE_CHECKING,
TypeVar,
Union,
)
from requests.structures import Ca... | 12,416 | Python | .py | 374 | 25.754011 | 86 | 0.599867 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,055 | const.py | python-gitlab_python-gitlab/gitlab/const.py | from enum import Enum, IntEnum
from gitlab._version import __title__, __version__
class GitlabEnum(str, Enum):
"""An enum mixed in with str to make it JSON-serializable."""
# https://gitlab.com/gitlab-org/gitlab/-/blob/e97357824bedf007e75f8782259fe07435b64fbb/lib/gitlab/access.rb#L12-18
class AccessLevel(IntEn... | 5,352 | Python | .py | 140 | 34.485714 | 130 | 0.738233 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,056 | utils.py | python-gitlab_python-gitlab/gitlab/utils.py | import dataclasses
import email.message
import logging
import pathlib
import time
import traceback
import urllib.parse
import warnings
from typing import (
Any,
Callable,
Dict,
Iterator,
Literal,
MutableMapping,
Optional,
Tuple,
Type,
Union,
)
import requests
from gitlab import... | 9,027 | Python | .py | 241 | 30.016598 | 107 | 0.632737 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,057 | __init__.py | python-gitlab_python-gitlab/gitlab/__init__.py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2013-2019 Gauvain Pocentek, 2019-2023 python-gitlab team
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# ... | 1,406 | Python | .py | 42 | 30.928571 | 81 | 0.701987 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,058 | base.py | python-gitlab_python-gitlab/gitlab/base.py | import copy
import importlib
import json
import pprint
import textwrap
from types import ModuleType
from typing import Any, Dict, Iterable, Optional, Type, TYPE_CHECKING, Union
import gitlab
from gitlab import types as g_types
from gitlab.exceptions import GitlabParsingError
from .client import Gitlab, GitlabList
__... | 13,810 | Python | .py | 324 | 33.469136 | 88 | 0.592203 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,059 | exceptions.py | python-gitlab_python-gitlab/gitlab/exceptions.py | import functools
from typing import Any, Callable, cast, Optional, Type, TYPE_CHECKING, TypeVar, Union
class GitlabError(Exception):
def __init__(
self,
error_message: Union[str, bytes] = "",
response_code: Optional[int] = None,
response_body: Optional[bytes] = None,
) -> None:... | 8,390 | Python | .py | 270 | 26.022222 | 85 | 0.767144 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,060 | types.py | python-gitlab_python-gitlab/gitlab/types.py | import dataclasses
from typing import Any, Dict, List, Optional, Tuple, TYPE_CHECKING
@dataclasses.dataclass(frozen=True)
class RequiredOptional:
required: Tuple[str, ...] = ()
optional: Tuple[str, ...] = ()
exclusive: Tuple[str, ...] = ()
def validate_attrs(
self,
*,
data: Di... | 3,312 | Python | .py | 78 | 33.782051 | 84 | 0.603056 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,061 | protocol.py | python-gitlab_python-gitlab/gitlab/_backends/protocol.py | import abc
import sys
from typing import Any, Dict, Optional, Union
import requests
from requests_toolbelt.multipart.encoder import MultipartEncoder # type: ignore
if sys.version_info >= (3, 8):
from typing import Protocol
else:
from typing_extensions import Protocol
class BackendResponse(Protocol):
@a... | 842 | Python | .py | 26 | 27 | 80 | 0.679012 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,062 | __init__.py | python-gitlab_python-gitlab/gitlab/_backends/__init__.py | """
Defines http backends for processing http requests
"""
from .requests_backend import (
JobTokenAuth,
OAuthTokenAuth,
PrivateTokenAuth,
RequestsBackend,
RequestsResponse,
)
DefaultBackend = RequestsBackend
DefaultResponse = RequestsResponse
__all__ = [
"DefaultBackend",
"DefaultRespons... | 392 | Python | .py | 19 | 17.368421 | 50 | 0.745946 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,063 | graphql.py | python-gitlab_python-gitlab/gitlab/_backends/graphql.py | from typing import Any
import httpx
from gql.transport.httpx import HTTPXTransport
class GitlabTransport(HTTPXTransport):
"""A gql httpx transport that reuses an existing httpx.Client.
By default, gql's transports do not have a keep-alive session
and do not enable providing your own session that's kept o... | 737 | Python | .py | 18 | 35.611111 | 72 | 0.702665 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,064 | requests_backend.py | python-gitlab_python-gitlab/gitlab/_backends/requests_backend.py | from __future__ import annotations
import dataclasses
from typing import Any, BinaryIO, Dict, Optional, TYPE_CHECKING, Union
import requests
from requests import PreparedRequest
from requests.auth import AuthBase
from requests.structures import CaseInsensitiveDict
from requests_toolbelt.multipart.encoder import Multi... | 5,534 | Python | .py | 135 | 31.62963 | 84 | 0.615356 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,065 | cli.py | python-gitlab_python-gitlab/gitlab/v4/cli.py | import argparse
import json
import operator
import sys
from typing import Any, Dict, List, Optional, Type, TYPE_CHECKING, Union
import gitlab
import gitlab.base
import gitlab.v4.objects
from gitlab import cli
from gitlab.exceptions import GitlabCiLintError
class GitlabCLI:
def __init__(
self,
gl:... | 22,721 | Python | .py | 525 | 31.619048 | 88 | 0.560997 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,066 | artifacts.py | python-gitlab_python-gitlab/gitlab/v4/objects/artifacts.py | """
GitLab API:
https://docs.gitlab.com/ee/api/job_artifacts.html
"""
from typing import Any, Callable, 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
__all__ = ["ProjectArt... | 5,098 | Python | .py | 126 | 31.007937 | 78 | 0.620279 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,067 | users.py | python-gitlab_python-gitlab/gitlab/v4/objects/users.py | """
GitLab API:
https://docs.gitlab.com/ee/api/users.html
https://docs.gitlab.com/ee/api/projects.html#list-projects-starred-by-a-user
"""
from typing import Any, cast, Dict, List, Optional, Union
import requests
from gitlab import cli
from gitlab import exceptions as exc
from gitlab import types
from gitlab.base im... | 21,381 | Python | .py | 569 | 29.757469 | 88 | 0.634868 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,068 | project_access_tokens.py | python-gitlab_python-gitlab/gitlab/v4/objects/project_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__ = [
"ProjectAccess... | 1,043 | Python | .py | 31 | 29.322581 | 80 | 0.720398 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,069 | templates.py | python-gitlab_python-gitlab/gitlab/v4/objects/templates.py | from typing import Any, cast, Union
from gitlab.base import RESTManager, RESTObject
from gitlab.mixins import RetrieveMixin
__all__ = [
"Dockerfile",
"DockerfileManager",
"Gitignore",
"GitignoreManager",
"Gitlabciyml",
"GitlabciymlManager",
"License",
"LicenseManager",
]
class Docker... | 1,726 | Python | .py | 45 | 33.577778 | 88 | 0.679325 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,070 | ldap.py | python-gitlab_python-gitlab/gitlab/v4/objects/ldap.py | from typing import Any, List, Union
from gitlab import exceptions as exc
from gitlab.base import RESTManager, RESTObject, RESTObjectList
__all__ = [
"LDAPGroup",
"LDAPGroupManager",
]
class LDAPGroup(RESTObject):
_id_attr = None
class LDAPGroupManager(RESTManager):
_path = "/ldap/groups"
_obj_... | 1,662 | Python | .py | 40 | 33.05 | 76 | 0.635404 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,071 | issues.py | python-gitlab_python-gitlab/gitlab/v4/objects/issues.py | from typing import Any, cast, Dict, List, Optional, Tuple, TYPE_CHECKING, Union
import requests
from gitlab import cli, client
from gitlab import exceptions as exc
from gitlab import types
from gitlab.base import RESTManager, RESTObject
from gitlab.mixins import (
CreateMixin,
CRUDMixin,
DeleteMixin,
... | 10,393 | Python | .py | 288 | 28.197917 | 88 | 0.636156 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,072 | badges.py | python-gitlab_python-gitlab/gitlab/v4/objects/badges.py | from typing import Any, cast, Union
from gitlab.base import RESTManager, RESTObject
from gitlab.mixins import BadgeRenderMixin, CRUDMixin, ObjectDeleteMixin, SaveMixin
from gitlab.types import RequiredOptional
__all__ = [
"GroupBadge",
"GroupBadgeManager",
"ProjectBadge",
"ProjectBadgeManager",
]
cl... | 1,464 | Python | .py | 32 | 41.25 | 88 | 0.711268 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,073 | merge_requests.py | python-gitlab_python-gitlab/gitlab/v4/objects/merge_requests.py | """
GitLab API:
https://docs.gitlab.com/ee/api/merge_requests.html
https://docs.gitlab.com/ee/api/merge_request_approvals.html
"""
from typing import Any, cast, Dict, Optional, TYPE_CHECKING, Union
import requests
import gitlab
from gitlab import cli
from gitlab import exceptions as exc
from gitlab import types
from... | 18,532 | Python | .py | 468 | 31.200855 | 96 | 0.64945 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,074 | award_emojis.py | python-gitlab_python-gitlab/gitlab/v4/objects/award_emojis.py | from typing import Any, cast, Union
from gitlab.base import RESTManager, RESTObject
from gitlab.mixins import NoUpdateMixin, ObjectDeleteMixin
from gitlab.types import RequiredOptional
__all__ = [
"GroupEpicAwardEmoji",
"GroupEpicAwardEmojiManager",
"GroupEpicNoteAwardEmoji",
"GroupEpicNoteAwardEmojiM... | 5,881 | Python | .py | 132 | 38.780303 | 88 | 0.704573 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,075 | broadcast_messages.py | python-gitlab_python-gitlab/gitlab/v4/objects/broadcast_messages.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__ = [
"BroadcastMessage",
"BroadcastMessageManager",
]
class BroadcastMessage(SaveMixin, Objec... | 1,103 | Python | .py | 32 | 27.96875 | 83 | 0.65381 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,076 | geo_nodes.py | python-gitlab_python-gitlab/gitlab/v4/objects/geo_nodes.py | from typing import Any, cast, Dict, List, TYPE_CHECKING, Union
from gitlab import cli
from gitlab import exceptions as exc
from gitlab.base import RESTManager, RESTObject
from gitlab.mixins import (
DeleteMixin,
ObjectDeleteMixin,
RetrieveMixin,
SaveMixin,
UpdateMixin,
)
from gitlab.types import Re... | 3,686 | Python | .py | 89 | 33.393258 | 85 | 0.651566 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,077 | epics.py | python-gitlab_python-gitlab/gitlab/v4/objects/epics.py | from typing import Any, cast, Dict, Optional, TYPE_CHECKING, Union
from gitlab import exceptions as exc
from gitlab import types
from gitlab.base import RESTManager, RESTObject
from gitlab.mixins import (
CreateMixin,
CRUDMixin,
DeleteMixin,
ListMixin,
ObjectDeleteMixin,
SaveMixin,
UpdateMi... | 4,150 | Python | .py | 99 | 34.868687 | 87 | 0.665177 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,078 | settings.py | python-gitlab_python-gitlab/gitlab/v4/objects/settings.py | from typing import Any, cast, Dict, Optional, Union
from gitlab import exceptions as exc
from gitlab import types
from gitlab.base import RESTManager, RESTObject
from gitlab.mixins import GetWithoutIdMixin, SaveMixin, UpdateMixin
from gitlab.types import RequiredOptional
__all__ = [
"ApplicationSettings",
"Ap... | 4,295 | Python | .py | 109 | 29.165138 | 78 | 0.604551 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,079 | merge_request_approvals.py | python-gitlab_python-gitlab/gitlab/v4/objects/merge_request_approvals.py | from typing import Any, cast, List, Optional, TYPE_CHECKING, Union
from gitlab import exceptions as exc
from gitlab.base import RESTManager, RESTObject
from gitlab.mixins import (
CreateMixin,
CRUDMixin,
DeleteMixin,
GetWithoutIdMixin,
ListMixin,
ObjectDeleteMixin,
SaveMixin,
UpdateMeth... | 6,424 | Python | .py | 152 | 34.776316 | 86 | 0.673662 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,080 | notification_settings.py | python-gitlab_python-gitlab/gitlab/v4/objects/notification_settings.py | from typing import Any, cast
from gitlab.base import RESTManager, RESTObject
from gitlab.mixins import GetWithoutIdMixin, SaveMixin, UpdateMixin
from gitlab.types import RequiredOptional
__all__ = [
"NotificationSettings",
"NotificationSettingsManager",
"GroupNotificationSettings",
"GroupNotificationS... | 2,061 | Python | .py | 51 | 33.72549 | 79 | 0.707329 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,081 | invitations.py | python-gitlab_python-gitlab/gitlab/v4/objects/invitations.py | from typing import Any, cast, Union
from gitlab.base import RESTManager, RESTObject
from gitlab.exceptions import GitlabInvitationError
from gitlab.mixins import CRUDMixin, ObjectDeleteMixin, SaveMixin
from gitlab.types import ArrayAttribute, CommaSeparatedListAttribute, RequiredOptional
__all__ = [
"ProjectInvit... | 2,734 | Python | .py | 75 | 29.693333 | 86 | 0.649641 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,082 | namespaces.py | python-gitlab_python-gitlab/gitlab/v4/objects/namespaces.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 RetrieveMixin
from gitlab.utils import EncodedId
__all__ = [
"Namespace",
"NamespaceManager",
]
class Namespace(RESTObject)... | 1,535 | Python | .py | 38 | 33.736842 | 87 | 0.674293 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,083 | wikis.py | python-gitlab_python-gitlab/gitlab/v4/objects/wikis.py | from typing import Any, cast, Union
from gitlab.base import RESTManager, RESTObject
from gitlab.mixins import CRUDMixin, ObjectDeleteMixin, SaveMixin, UploadMixin
from gitlab.types import RequiredOptional
__all__ = [
"ProjectWiki",
"ProjectWikiManager",
"GroupWiki",
"GroupWikiManager",
]
class Proje... | 1,775 | Python | .py | 42 | 37.452381 | 87 | 0.679256 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,084 | features.py | python-gitlab_python-gitlab/gitlab/v4/objects/features.py | """
GitLab API:
https://docs.gitlab.com/ee/api/features.html
"""
from typing import Any, Optional, TYPE_CHECKING, Union
from gitlab import exceptions as exc
from gitlab import utils
from gitlab.base import RESTManager, RESTObject
from gitlab.mixins import DeleteMixin, ListMixin, ObjectDeleteMixin
__all__ = [
"Fe... | 1,973 | Python | .py | 58 | 26.068966 | 75 | 0.617122 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,085 | statistics.py | python-gitlab_python-gitlab/gitlab/v4/objects/statistics.py | from typing import Any, cast
from gitlab.base import RESTManager, RESTObject
from gitlab.mixins import GetWithoutIdMixin, RefreshMixin
from gitlab.types import ArrayAttribute
__all__ = [
"GroupIssuesStatistics",
"GroupIssuesStatisticsManager",
"ProjectAdditionalStatistics",
"ProjectAdditionalStatistic... | 2,638 | Python | .py | 60 | 39.25 | 73 | 0.744022 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,086 | ci_lint.py | python-gitlab_python-gitlab/gitlab/v4/objects/ci_lint.py | """
GitLab API:
https://docs.gitlab.com/ee/api/lint.html
"""
from typing import Any, cast
from gitlab.base import RESTManager, RESTObject
from gitlab.cli import register_custom_action
from gitlab.exceptions import GitlabCiLintError
from gitlab.mixins import CreateMixin, GetWithoutIdMixin
from gitlab.types import Requ... | 2,308 | Python | .py | 60 | 32.566667 | 79 | 0.665022 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,087 | audit_events.py | python-gitlab_python-gitlab/gitlab/v4/objects/audit_events.py | """
GitLab API:
https://docs.gitlab.com/ee/api/audit_events.html
"""
from typing import Any, cast, Union
from gitlab.base import RESTManager, RESTObject
from gitlab.mixins import RetrieveMixin
__all__ = [
"AuditEvent",
"AuditEventManager",
"GroupAuditEvent",
"GroupAuditEventManager",
"ProjectAudi... | 1,910 | Python | .py | 51 | 32.960784 | 88 | 0.696244 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,088 | tags.py | python-gitlab_python-gitlab/gitlab/v4/objects/tags.py | from typing import Any, cast, Union
from gitlab.base import RESTManager, RESTObject
from gitlab.mixins import NoUpdateMixin, ObjectDeleteMixin
from gitlab.types import RequiredOptional
__all__ = [
"ProjectTag",
"ProjectTagManager",
"ProjectProtectedTag",
"ProjectProtectedTagManager",
]
class Project... | 1,453 | Python | .py | 36 | 35.583333 | 88 | 0.695374 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,089 | deployments.py | python-gitlab_python-gitlab/gitlab/v4/objects/deployments.py | """
GitLab API:
https://docs.gitlab.com/ee/api/deployments.html
"""
from typing import Any, cast, Dict, Optional, TYPE_CHECKING, Union
from gitlab import cli
from gitlab import exceptions as exc
from gitlab.base import RESTManager, RESTObject
from gitlab.mixins import CreateMixin, RetrieveMixin, SaveMixin, UpdateMixi... | 2,889 | Python | .py | 74 | 31.310811 | 94 | 0.651429 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,090 | cluster_agents.py | python-gitlab_python-gitlab/gitlab/v4/objects/cluster_agents.py | from typing import Any, cast, Union
from gitlab.base import RESTManager, RESTObject
from gitlab.mixins import NoUpdateMixin, ObjectDeleteMixin, SaveMixin
from gitlab.types import RequiredOptional
__all__ = [
"ProjectClusterAgent",
"ProjectClusterAgentManager",
]
class ProjectClusterAgent(SaveMixin, ObjectDe... | 817 | Python | .py | 19 | 38.894737 | 81 | 0.73957 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,091 | job_token_scope.py | python-gitlab_python-gitlab/gitlab/v4/objects/job_token_scope.py | from typing import Any, cast
from gitlab.base import RESTManager, RESTObject
from gitlab.mixins import (
CreateMixin,
DeleteMixin,
GetWithoutIdMixin,
ListMixin,
ObjectDeleteMixin,
RefreshMixin,
SaveMixin,
UpdateMethod,
UpdateMixin,
)
from gitlab.types import RequiredOptional
__all_... | 2,622 | Python | .py | 59 | 38.864407 | 80 | 0.713949 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,092 | draft_notes.py | python-gitlab_python-gitlab/gitlab/v4/objects/draft_notes.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__ = [
"ProjectMergeRequestDraftNote",
"ProjectMergeRequestDraftNoteManager",
]
class ProjectMergeRequestDraftN... | 1,450 | Python | .py | 35 | 34.828571 | 81 | 0.673063 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,093 | pipelines.py | python-gitlab_python-gitlab/gitlab/v4/objects/pipelines.py | from typing import Any, cast, Dict, Optional, TYPE_CHECKING, Union
import requests
from gitlab import cli
from gitlab import exceptions as exc
from gitlab.base import RESTManager, RESTObject
from gitlab.mixins import (
CreateMixin,
CRUDMixin,
DeleteMixin,
GetWithoutIdMixin,
ListMixin,
ObjectDe... | 10,664 | Python | .py | 239 | 37.485356 | 88 | 0.690154 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,094 | variables.py | python-gitlab_python-gitlab/gitlab/v4/objects/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
"""
from typing import Any, cast, Union
from gitlab.base import RESTManager, RESTObject
from gitlab.mixins import CRUDMi... | 2,627 | Python | .py | 65 | 35.446154 | 86 | 0.678459 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,095 | push_rules.py | python-gitlab_python-gitlab/gitlab/v4/objects/push_rules.py | from typing import Any, cast
from gitlab.base import RESTManager, RESTObject
from gitlab.mixins import (
CreateMixin,
DeleteMixin,
GetWithoutIdMixin,
ObjectDeleteMixin,
SaveMixin,
UpdateMixin,
)
from gitlab.types import RequiredOptional
__all__ = [
"GroupPushRules",
"GroupPushRulesMana... | 3,041 | Python | .py | 97 | 22.721649 | 73 | 0.589359 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,096 | sidekiq.py | python-gitlab_python-gitlab/gitlab/v4/objects/sidekiq.py | from typing import Any, Dict, Union
import requests
from gitlab import cli
from gitlab import exceptions as exc
from gitlab.base import RESTManager
__all__ = [
"SidekiqManager",
]
class SidekiqManager(RESTManager):
"""Manager for the Sidekiq methods.
This manager doesn't actually manage objects but pr... | 2,996 | Python | .py | 69 | 35.202899 | 87 | 0.66988 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,097 | runners.py | python-gitlab_python-gitlab/gitlab/v4/objects/runners.py | from typing import Any, cast, List, Optional, 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 (
CreateMixin,
CRUDMixin,
DeleteMixin,
ListMixin,
ObjectDeleteMixin,
SaveMixin,
)
fr... | 4,917 | Python | .py | 131 | 30.259542 | 84 | 0.638562 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,098 | group_access_tokens.py | python-gitlab_python-gitlab/gitlab/v4/objects/group_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__ = [
"GroupAccessTo... | 1,023 | Python | .py | 31 | 28.677419 | 78 | 0.714721 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |
23,099 | package_protection_rules.py | python-gitlab_python-gitlab/gitlab/v4/objects/package_protection_rules.py | from gitlab.base import RESTManager, RESTObject
from gitlab.mixins import (
CreateMixin,
DeleteMixin,
ListMixin,
ObjectDeleteMixin,
SaveMixin,
UpdateMethod,
UpdateMixin,
)
from gitlab.types import RequiredOptional
__all__ = [
"ProjectPackageProtectionRule",
"ProjectPackageProtection... | 1,129 | Python | .py | 38 | 23.842105 | 77 | 0.686004 | python-gitlab/python-gitlab | 2,230 | 648 | 106 | LGPL-3.0 | 9/5/2024, 5:13:26 PM (Europe/Amsterdam) |