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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
31,500 | NetConf.py | blueman-project_blueman/blueman/main/NetConf.py | import errno
import os
import ipaddress
import socket
from tempfile import mkstemp
from time import sleep
import logging
import signal
from typing import List, Tuple, Optional, Type
from blueman.Constants import DHCP_CONFIG_FILE
from blueman.Functions import have
from _blueman import create_bridge, destroy_bridge, Bri... | 12,231 | Python | .py | 275 | 33.52 | 117 | 0.562716 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,501 | DbusService.py | blueman-project_blueman/blueman/main/DbusService.py | import logging
import sys
import traceback
from typing import Dict, Tuple, Callable, Set, Optional, Any, Collection, Mapping, Union, overload, TYPE_CHECKING
from gi.repository import Gio, GLib
if TYPE_CHECKING:
from typing_extensions import Literal
class DbusError(Exception):
_name = "org.blueman.Error"
... | 7,543 | Python | .py | 151 | 38.384106 | 118 | 0.577231 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,502 | DhcpClient.py | blueman-project_blueman/blueman/main/DhcpClient.py | from typing import List
from gi.repository import GObject
from gi.repository import GLib
import socket
import subprocess
import logging
from blueman.Functions import have, get_local_interfaces
from blueman.bluemantyping import GSignals
class DhcpClient(GObject.GObject):
__gsignals__: GSignals = {
# arg: ... | 2,610 | Python | .py | 65 | 30.876923 | 95 | 0.595812 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,503 | PPPConnection.py | blueman-project_blueman/blueman/main/PPPConnection.py | import errno
import logging
import os
import re
import subprocess
import termios
import tty
from typing import Any, List, Iterable, Callable, Optional, Tuple, Union, MutableSequence, IO
from gi.repository import GObject
from gi.repository import GLib
from blueman.Functions import open_rfcomm
from blueman.bluemantypi... | 8,696 | Python | .py | 179 | 38.368715 | 119 | 0.604272 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,504 | MechanismApplication.py | blueman-project_blueman/blueman/main/MechanismApplication.py | import importlib
import logging
import os
from typing import Optional
import blueman.plugins.mechanism
from blueman.Constants import POLKIT
from gi.repository import GLib, Gio
from blueman.main.DbusService import DbusService, DbusError
from blueman.plugins.MechanismPlugin import MechanismPlugin
class Timer:
def... | 3,249 | Python | .py | 82 | 28.853659 | 120 | 0.574833 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,505 | DBusProxies.py | blueman-project_blueman/blueman/main/DBusProxies.py | from gettext import gettext as _
import logging
from gi.repository import Gio, GLib
from blueman.gobject import SingletonGObjectMeta
from blueman.gui.Notification import Notification
class DBusProxyFailed(Exception):
pass
class ProxyBase(Gio.DBusProxy, metaclass=SingletonGObjectMeta):
def __init__(self, n... | 3,842 | Python | .py | 78 | 38.487179 | 111 | 0.612463 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,506 | SpeedCalc.py | blueman-project_blueman/blueman/main/SpeedCalc.py | import time
from typing import List, Tuple
class SpeedCalc:
def __init__(self, moving_avg: float = 3.0) -> None:
self.moving_avg = moving_avg
self.log: List[Tuple[float, float]] = []
self.reference: float = 0
def calc(self, amount: float) -> float:
if not self.log:
... | 1,065 | Python | .py | 29 | 25.931034 | 63 | 0.518482 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,507 | Applet.py | blueman-project_blueman/blueman/main/Applet.py | import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gio, GLib, Gtk
import logging
import signal
from typing import Any, cast
from blueman.bluemantyping import ObjectPath
from blueman.Functions import *
from blueman.bluez.Manager import Manager
from blueman.bluez.Adapter import AnyAdapter
from blueman... | 5,960 | Python | .py | 117 | 43.358974 | 113 | 0.697831 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,508 | PluginManager.py | blueman-project_blueman/blueman/main/PluginManager.py | from gettext import gettext as _
import os
import logging
import traceback
import importlib
from types import ModuleType
from typing import Dict, List, Type, TypeVar, Iterable, Optional, Generic
from gi.repository import GObject, Gio
from blueman.Functions import bmexit
from blueman.gui.CommonUi import ErrorDialog
fr... | 9,652 | Python | .py | 212 | 32.830189 | 115 | 0.540592 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,509 | Services.py | blueman-project_blueman/blueman/main/Services.py | import os
import logging
import importlib
import signal
from typing import Optional
from blueman.main.Builder import Builder
from blueman.Functions import log_system_info
import blueman.plugins.services
from blueman.plugins.ServicePlugin import ServicePlugin
import gi
gi.require_version("Gtk", "3.0")
from gi.reposito... | 3,979 | Python | .py | 91 | 34.032967 | 104 | 0.615146 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,510 | Adapter.py | blueman-project_blueman/blueman/main/Adapter.py | from gettext import gettext as _
import os.path
import logging
import gettext
import signal
from typing import Dict, TypedDict, Optional, Any
from blueman.bluemantyping import ObjectPath
from blueman.Functions import *
from blueman.bluez.Manager import Manager
from blueman.bluez.Adapter import Adapter
from blueman.mai... | 9,403 | Python | .py | 200 | 36.935 | 117 | 0.618678 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,511 | StatusNotifierItem.py | blueman-project_blueman/blueman/main/indicators/StatusNotifierItem.py | from collections import OrderedDict
from typing import Iterable, TYPE_CHECKING, Callable, List, Tuple, Dict, Union, TypeVar, Any
from gi.repository import Gio, GLib, Pango
from blueman.main.DbusService import DbusService
from blueman.main.Tray import BluemanTray
from blueman.main.indicators.IndicatorInterface import ... | 7,716 | Python | .py | 138 | 45.086957 | 120 | 0.5922 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,512 | IndicatorInterface.py | blueman-project_blueman/blueman/main/indicators/IndicatorInterface.py | from abc import abstractmethod, ABCMeta
from typing import Iterable, TYPE_CHECKING
if TYPE_CHECKING:
from blueman.plugins.applet.Menu import MenuItemDict
class IndicatorNotAvailable(RuntimeError):
pass
class IndicatorInterface(metaclass=ABCMeta):
@abstractmethod
def set_icon(self, icon_name: str) -... | 693 | Python | .py | 22 | 26.090909 | 63 | 0.68429 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,513 | GtkStatusIcon.py | blueman-project_blueman/blueman/main/indicators/GtkStatusIcon.py | from typing import Callable, Iterable, TYPE_CHECKING, overload, cast, Optional, Tuple
import gi
from blueman.main.Tray import BluemanTray
from blueman.main.indicators.IndicatorInterface import IndicatorInterface
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk
from blueman.Functions import create_menui... | 3,532 | Python | .py | 73 | 39.876712 | 114 | 0.640198 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,514 | BluezAgent.py | blueman-project_blueman/blueman/main/applet/BluezAgent.py | import logging
from gettext import gettext as _
from html import escape
from xml.etree import ElementTree
from typing import Dict, Optional, overload, Callable, Union, TYPE_CHECKING, Tuple, Any, List
from blueman.bluemantyping import ObjectPath
from blueman.bluez.Device import Device
from blueman.bluez.AgentManager im... | 11,452 | Python | .py | 216 | 42.694444 | 120 | 0.618775 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,515 | AutoConnectConfig.py | blueman-project_blueman/blueman/config/AutoConnectConfig.py | from typing import Tuple
from blueman.bluemantyping import BtAddress
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk
from gi.repository import Gio
class AutoConnectConfig(Gio.Settings):
def __init__(self) -> None:
super().__init__(schema_id="org.blueman.plugins.autoconnect")
... | 1,009 | Python | .py | 22 | 37.727273 | 93 | 0.635438 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,516 | DeviceSelectorList.py | blueman-project_blueman/blueman/gui/DeviceSelectorList.py | from html import escape
from typing import Optional, Any, List
from blueman.bluez.Device import Device
from blueman.gui.DeviceList import DeviceList
from gi.repository import Pango
import gi
from blueman.gui.GenericList import ListDataDict
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk
class Devic... | 2,510 | Python | .py | 49 | 41.612245 | 113 | 0.618464 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,517 | GsmSettings.py | blueman-project_blueman/blueman/gui/GsmSettings.py | from gettext import gettext as _
from blueman.main.Builder import Builder
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk
from gi.repository import Gio
class GsmSettings(Gtk.Dialog):
def __init__(self, bd_address: str) -> None:
super().__init__()
self.set_name("GsmSetti... | 1,232 | Python | .py | 26 | 39.153846 | 88 | 0.643755 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,518 | Notification.py | blueman-project_blueman/blueman/gui/Notification.py | from typing import Dict, List, Callable, Optional, Iterable, Tuple, Union, Type
import gi
gi.require_version("Gtk", "3.0")
gi.require_version("Gdk", "3.0")
from gi.repository import Gtk
from gi.repository import Gdk
from gi.repository import GdkPixbuf
from gi.repository import GLib
from gi.repository import Gio
from b... | 10,896 | Python | .py | 233 | 36.244635 | 116 | 0.5894 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,519 | DeviceSelectorWidget.py | blueman-project_blueman/blueman/gui/DeviceSelectorWidget.py | from gettext import gettext as _
import os
import logging
from typing import Optional, Tuple
from blueman.bluez.Adapter import Adapter
from blueman.gui.DeviceSelectorList import DeviceSelectorList
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk
class DeviceSelectorWidget(Gtk.Box):
def _... | 4,976 | Python | .py | 100 | 38.41 | 115 | 0.620803 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,520 | CommonUi.py | blueman-project_blueman/blueman/gui/CommonUi.py | from datetime import datetime
from gettext import gettext as _
from typing import Optional, overload, TYPE_CHECKING
from blueman.Constants import WEBSITE, VERSION
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk
if TYPE_CHECKING:
from typing_extensions import Literal
class ErrorDialog(G... | 2,900 | Python | .py | 60 | 39.016667 | 118 | 0.640043 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,521 | Animation.py | blueman-project_blueman/blueman/gui/Animation.py | from typing import Iterable, Optional
from gi import require_version
require_version("Gtk", "3.0")
from gi.repository import GLib, Gtk
class Animation:
def __init__(self, icon: Gtk.Image, icons: Iterable[str], rate: int = 1) -> None:
self.icon_names = list(icons)
self.timer: Optional[int] = None
... | 1,217 | Python | .py | 34 | 27.352941 | 85 | 0.586031 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,522 | GenericList.py | blueman-project_blueman/blueman/gui/GenericList.py | from typing import Dict, Optional, TYPE_CHECKING, Iterable, Mapping, Callable, Tuple, Collection, Any
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk
if TYPE_CHECKING:
from typing_extensions import TypedDict
class _ListDataDictBase(TypedDict):
id: str
type: type
... | 4,368 | Python | .py | 99 | 34.272727 | 117 | 0.605331 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,523 | DeviceList.py | blueman-project_blueman/blueman/gui/DeviceList.py | from datetime import datetime
import logging
from typing import Dict, List, Optional, Any, Callable
from blueman.Functions import adapter_path_to_name
from blueman.gui.GenericList import GenericList, ListDataDict
from blueman.Constants import ICON_PATH
from blueman.bluez.Manager import Manager
from blueman.bluez.Devic... | 12,932 | Python | .py | 265 | 37.645283 | 114 | 0.603811 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,524 | GtkAnimation.py | blueman-project_blueman/blueman/gui/GtkAnimation.py | from typing import List, Optional, Collection, Iterable, TYPE_CHECKING
import cairo
import gi
from blueman.bluemantyping import GSignals
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk
gi.require_version("Gdk", "3.0")
from gi.repository import Gdk
from gi.repository import GObject
from gi.repository i... | 7,533 | Python | .py | 186 | 30.822581 | 118 | 0.596183 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,525 | DeviceSelectorDialog.py | blueman-project_blueman/blueman/gui/DeviceSelectorDialog.py | from gettext import gettext as _
from typing import Optional, Tuple
from blueman.bluez.Device import Device
from blueman.gui.DeviceList import DeviceList
from blueman.gui.DeviceSelectorWidget import DeviceSelectorWidget
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk
class DeviceSelectorDia... | 2,320 | Python | .py | 42 | 47.285714 | 119 | 0.689046 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,526 | PluginDialog.py | blueman-project_blueman/blueman/gui/applet/PluginDialog.py | from gettext import gettext as _
import logging
from typing import TYPE_CHECKING, Type, Dict, cast, Optional, TypeVar
from blueman.main.Builder import Builder
from blueman.main.PluginManager import PluginManager
from blueman.plugins.AppletPlugin import AppletPlugin
from blueman.plugins.BasePlugin import Option, BasePl... | 13,652 | Python | .py | 274 | 39.518248 | 120 | 0.618833 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,527 | ManagerMenu.py | blueman-project_blueman/blueman/gui/manager/ManagerMenu.py | from gettext import gettext as _
import logging
from typing import Dict, Tuple, TYPE_CHECKING, Any, Optional, Sequence
from blueman.bluemantyping import ObjectPath
from blueman.bluez.Adapter import Adapter
from blueman.bluez.Device import Device
from blueman.bluez.Manager import Manager
from blueman.gui.manager.Manage... | 10,111 | Python | .py | 178 | 46.61236 | 117 | 0.655235 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,528 | ManagerDeviceMenu.py | blueman-project_blueman/blueman/gui/manager/ManagerDeviceMenu.py | import logging
from enum import Enum, auto
from gettext import gettext as _
from operator import attrgetter
from typing import Dict, List, Tuple, Optional, TYPE_CHECKING, Union, Iterable
from blueman.bluemantyping import BtAddress
from blueman.bluemantyping import ObjectPath
from blueman.Functions import create_menuit... | 18,480 | Python | .py | 364 | 39.744505 | 115 | 0.620215 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,529 | ManagerDeviceList.py | blueman-project_blueman/blueman/gui/manager/ManagerDeviceList.py | from gettext import gettext as _
from typing import Optional, TYPE_CHECKING, List, Any, cast, Callable, Set, Dict
import html
import logging
import cairo
import os
from blueman.bluemantyping import ObjectPath, BtAddress
from blueman.bluez.Adapter import Adapter
from blueman.bluez.Battery import Battery
from blueman.bl... | 28,176 | Python | .py | 557 | 38.64991 | 119 | 0.579418 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,530 | ManagerProgressbar.py | blueman-project_blueman/blueman/gui/manager/ManagerProgressbar.py | from gettext import gettext as _
import logging
from typing import List, TYPE_CHECKING, Callable
import gi
from blueman.bluemantyping import GSignals
gi.require_version("Gtk", "3.0")
gi.require_version("Gdk", "3.0")
from gi.repository import Pango
from gi.repository import GObject
from gi.repository import Gtk
from ... | 6,126 | Python | .py | 142 | 33.246479 | 106 | 0.617157 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,531 | ManagerToolbar.py | blueman-project_blueman/blueman/gui/manager/ManagerToolbar.py | from gettext import gettext as _
import logging
from typing import TYPE_CHECKING, Callable, Tuple, Optional
from blueman.bluemantyping import ObjectPath
import gi
from blueman.bluez.Adapter import Adapter
from blueman.bluez.Device import Device
from blueman.gui.manager.ManagerDeviceList import ManagerDeviceList
gi.r... | 5,021 | Python | .py | 86 | 49 | 117 | 0.666124 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,532 | ManagerStats.py | blueman-project_blueman/blueman/gui/manager/ManagerStats.py | from typing import TYPE_CHECKING, Optional
from _blueman import device_info
from gi.repository import GLib
from gi.repository import Gtk
from blueman.gui.Animation import Animation
from blueman.gui.manager.ManagerDeviceList import ManagerDeviceList
from blueman.main.SpeedCalc import SpeedCalc
from blueman.Functions i... | 4,080 | Python | .py | 86 | 38.290698 | 114 | 0.62418 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,533 | Functions.py | blueman-project_blueman/blueman/services/Functions.py | import inspect
import logging
from typing import Optional, List
from blueman.Service import Service
from blueman.Sdp import ServiceUUID
from blueman.bluez.Device import Device
from blueman.bluez.errors import BluezDBusException
import blueman.services
def get_service(device: Device, uuid: str) -> Optional[Service]:
... | 823 | Python | .py | 21 | 34.142857 | 75 | 0.730238 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,534 | __init__.py | blueman-project_blueman/blueman/services/__init__.py | from blueman.services.DialupNetwork import DialupNetwork as DialupNetwork
from blueman.services.GroupNetwork import GroupNetwork as GroupNetwork
from blueman.services.NetworkAccessPoint import NetworkAccessPoint as NetworkAccessPoint
from blueman.services.SerialPort import SerialPort as SerialPort
from blueman.services... | 507 | Python | .py | 6 | 83.333333 | 110 | 0.848 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,535 | SerialPort.py | blueman-project_blueman/blueman/services/SerialPort.py | from blueman.services.meta import SerialService
from blueman.Sdp import SERIAL_PORT_SVCLASS_ID
class SerialPort(SerialService):
__svclass_id__ = SERIAL_PORT_SVCLASS_ID
__icon__ = "blueman-serial"
__priority__ = 50
| 228 | Python | .py | 6 | 34.666667 | 47 | 0.745455 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,536 | GroupNetwork.py | blueman-project_blueman/blueman/services/GroupNetwork.py | from blueman.services.meta import NetworkService
from blueman.Sdp import GN_SVCLASS_ID
class GroupNetwork(NetworkService):
__svclass_id__ = GN_SVCLASS_ID
__icon__ = "network-wireless-symbolic"
__priority__ = 80
| 225 | Python | .py | 6 | 34.166667 | 48 | 0.746544 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,537 | DialupNetwork.py | blueman-project_blueman/blueman/services/DialupNetwork.py | from gettext import gettext as _
from typing import Set
from blueman.Service import Action
from blueman.services.meta import SerialService
from blueman.Sdp import DIALUP_NET_SVCLASS_ID
from blueman.gui.GsmSettings import GsmSettings
class DialupNetwork(SerialService):
__svclass_id__ = DIALUP_NET_SVCLASS_ID
_... | 726 | Python | .py | 22 | 25.954545 | 51 | 0.639485 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,538 | NetworkAccessPoint.py | blueman-project_blueman/blueman/services/NetworkAccessPoint.py | from blueman.services.meta import NetworkService
from blueman.Sdp import NAP_SVCLASS_ID
class NetworkAccessPoint(NetworkService):
__svclass_id__ = NAP_SVCLASS_ID
__icon__ = "network-wireless-symbolic"
__priority__ = 81
| 233 | Python | .py | 6 | 35.5 | 48 | 0.755556 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,539 | SerialService.py | blueman-project_blueman/blueman/services/meta/SerialService.py | from gettext import gettext as _
import logging
import os
import subprocess
from typing import Callable, Dict, Optional, List
from gi.repository import Gio, GLib
from blueman.bluez.Adapter import Adapter
from _blueman import create_rfcomm_device, get_rfcomm_channel, RFCOMMError, rfcomm_list
from blueman.Service impor... | 4,580 | Python | .py | 116 | 29.482759 | 119 | 0.593659 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,540 | __init__.py | blueman-project_blueman/blueman/services/meta/__init__.py | from blueman.services.meta.NetworkService import NetworkService as NetworkService
from blueman.services.meta.SerialService import SerialService as SerialService
__all__ = ["NetworkService", "SerialService"]
| 208 | Python | .py | 3 | 68 | 81 | 0.848039 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,541 | NetworkService.py | blueman-project_blueman/blueman/services/meta/NetworkService.py | from gettext import gettext as _
from typing import Optional, Callable, List, Set
from blueman.main.DBusProxies import AppletService
from blueman.Service import Service, Action, Instance
from blueman.bluez.Device import Device
from blueman.bluez.Network import Network
from blueman.bluez.errors import BluezDBusExcepti... | 1,813 | Python | .py | 44 | 34.136364 | 98 | 0.667804 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,542 | Battery.py | blueman-project_blueman/blueman/bluez/Battery.py | from blueman.bluez.AnyBase import AnyBase
from blueman.bluez.Base import Base
_INTERFACE = "org.bluez.Battery1"
class Battery(Base):
_interface_name = _INTERFACE
class AnyBattery(AnyBase):
def __init__(self) -> None:
super().__init__(_INTERFACE)
| 268 | Python | .py | 8 | 29.75 | 41 | 0.724409 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,543 | errors.py | blueman-project_blueman/blueman/bluez/errors.py | from gi.repository import GLib
class BluezDBusException(Exception):
def __init__(self, reason: str):
self.reason = reason
def __str__(self) -> str:
return self.reason
class DBusFailedError(BluezDBusException):
pass
class DBusInvalidArgumentsError(BluezDBusException):
pass
class ... | 3,753 | Python | .py | 83 | 37.156627 | 101 | 0.748201 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,544 | Network.py | blueman-project_blueman/blueman/bluez/Network.py | from typing import Optional, Callable
from blueman.bluemantyping import ObjectPath
from blueman.bluez.Base import Base
from blueman.bluez.AnyBase import AnyBase
from gi.repository import GLib
from blueman.bluez.errors import BluezDBusException
class Network(Base):
_interface_name = 'org.bluez.Network1'
def... | 1,169 | Python | .py | 27 | 37.37037 | 94 | 0.681377 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,545 | Manager.py | blueman-project_blueman/blueman/bluez/Manager.py | import logging
from typing import List, Optional, Callable
from gi.repository import GObject, Gio
from blueman.bluez.Adapter import Adapter
from blueman.bluez.Device import Device
from blueman.bluez.errors import DBusNoSuchAdapterError
from blueman.gobject import SingletonGObjectMeta
from blueman.bluemantyping import... | 7,290 | Python | .py | 133 | 44.06015 | 110 | 0.64475 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,546 | AnyBase.py | blueman-project_blueman/blueman/bluez/AnyBase.py | import weakref
from gi.repository import GObject, GLib
from gi.repository import Gio
from blueman.bluemantyping import GSignals
class AnyBase(GObject.GObject):
__gsignals__: GSignals = {
'property-changed': (GObject.SignalFlags.NO_HOOKS, None, (str, object, str))
}
connect_signal = GObject.GObj... | 1,435 | Python | .py | 39 | 25.897436 | 91 | 0.570707 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,547 | NetworkServer.py | blueman-project_blueman/blueman/bluez/NetworkServer.py | from blueman.bluemantyping import ObjectPath
from blueman.bluez.Base import Base
from gi.repository import GLib
class NetworkServer(Base):
_interface_name = 'org.bluez.NetworkServer1'
def __init__(self, obj_path: ObjectPath):
super().__init__(obj_path=obj_path)
def register(self, uuid: str, bri... | 561 | Python | .py | 13 | 37.384615 | 55 | 0.664207 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,548 | AgentManager.py | blueman-project_blueman/blueman/bluez/AgentManager.py | from blueman.bluemantyping import ObjectPath
from blueman.bluez.Base import Base
from gi.repository import GLib
class AgentManager(Base):
_interface_name = 'org.bluez.AgentManager1'
_obj_path = ObjectPath('/org/bluez')
def __init__(self) -> None:
super().__init__(obj_path=self._obj_path)
de... | 818 | Python | .py | 17 | 41.352941 | 99 | 0.65283 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,549 | Base.py | blueman-project_blueman/blueman/bluez/Base.py | from typing import List, Callable, Optional, Any, Union, Dict
from blueman.bluemantyping import GSignals, ObjectPath
from gi.repository import Gio, GLib, GObject
from gi.types import GObjectMeta
from blueman.bluez.errors import parse_dbus_error, BluezDBusException
import logging
class BaseMeta(GObjectMeta):
def ... | 5,406 | Python | .py | 124 | 31.717742 | 117 | 0.553038 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,550 | Device.py | blueman-project_blueman/blueman/bluez/Device.py | from typing import Optional, Callable
from blueman.bluemantyping import ObjectPath
from blueman.bluez.Base import Base
from blueman.bluez.AnyBase import AnyBase
from blueman.bluez.errors import BluezDBusException
class Device(Base):
_interface_name = 'org.bluez.Device1'
def __init__(self, obj_path: ObjectPa... | 1,440 | Python | .py | 34 | 36 | 90 | 0.668338 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,551 | Adapter.py | blueman-project_blueman/blueman/bluez/Adapter.py | from typing import Optional, Callable
from blueman.bluemantyping import ObjectPath
from gi.repository import GLib
from blueman.bluez.AnyBase import AnyBase
from blueman.bluez.Base import Base
from blueman.bluez.Device import Device
from blueman.bluez.errors import BluezDBusException
class Adapter(Base):
_interf... | 1,125 | Python | .py | 26 | 37.807692 | 108 | 0.691812 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,552 | Manager.py | blueman-project_blueman/blueman/bluez/obex/Manager.py | import logging
import weakref
from typing import Dict, Callable, List, Tuple
from blueman.bluemantyping import ObjectPath
from gi.repository import GObject, Gio
from blueman.bluez.obex.Transfer import Transfer
from blueman.gobject import SingletonGObjectMeta
from blueman.bluemantyping import GSignals
class Manager(... | 3,902 | Python | .py | 70 | 46.914286 | 112 | 0.676988 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,553 | Transfer.py | blueman-project_blueman/blueman/bluez/obex/Transfer.py | import logging
from typing import List, Optional
from blueman.bluemantyping import ObjectPath
from blueman.bluez.obex.Base import Base
from gi.repository import GObject, Gio, GLib
from blueman.bluemantyping import GSignals
class Transfer(Base):
__gsignals__: GSignals = {
'progress': (GObject.SignalFlags... | 1,709 | Python | .py | 43 | 31.139535 | 90 | 0.609063 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,554 | ObjectPush.py | blueman-project_blueman/blueman/bluez/obex/ObjectPush.py | import logging
from typing import Dict
from blueman.bluemantyping import ObjectPath
from blueman.bluez.errors import BluezDBusException
from blueman.bluez.obex.Base import Base
from gi.repository import GObject, GLib
from blueman.bluemantyping import GSignals
class ObjectPush(Base):
__gsignals__: GSignals = {
... | 1,363 | Python | .py | 27 | 43.777778 | 105 | 0.682504 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,555 | Session.py | blueman-project_blueman/blueman/bluez/obex/Session.py | from blueman.bluemantyping import ObjectPath, BtAddress
from blueman.bluez.obex.Base import Base
class Session(Base):
_interface_name = 'org.bluez.obex.Session1'
def __init__(self, obj_path: ObjectPath):
super().__init__(obj_path=obj_path)
@property
def address(self) -> BtAddress:
de... | 479 | Python | .py | 14 | 28.285714 | 55 | 0.663043 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,556 | AgentManager.py | blueman-project_blueman/blueman/bluez/obex/AgentManager.py | from blueman.bluemantyping import ObjectPath
import logging
from blueman.bluez.errors import BluezDBusException
from blueman.bluez.obex.Base import Base
from gi.repository import GLib
class AgentManager(Base):
_interface_name = 'org.bluez.obex.AgentManager1'
_obj_path: ObjectPath = ObjectPath('/org/bluez/obe... | 1,240 | Python | .py | 24 | 44.416667 | 111 | 0.681592 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,557 | Base.py | blueman-project_blueman/blueman/bluez/obex/Base.py | from blueman.bluez.Base import Base as BlueZBase
from gi.repository import Gio
class Base(BlueZBase):
__bus_type = Gio.BusType.SESSION
__name = 'org.bluez.obex'
| 171 | Python | .py | 5 | 31.2 | 48 | 0.756098 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,558 | Client.py | blueman-project_blueman/blueman/bluez/obex/Client.py | import logging
from blueman.bluez.errors import BluezDBusException
from blueman.bluez.obex.Base import Base
from gi.repository import GObject, GLib
from blueman.bluemantyping import GSignals, ObjectPath, BtAddress
class Client(Base):
__gsignals__: GSignals = {
'session-failed': (GObject.SignalFlags.NO_H... | 1,814 | Python | .py | 32 | 48.25 | 109 | 0.655367 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,559 | ManagerPlugin.py | blueman-project_blueman/blueman/plugins/ManagerPlugin.py | from typing import TYPE_CHECKING
from blueman.plugins.BasePlugin import BasePlugin
if TYPE_CHECKING:
from blueman.main.Manager import Blueman
class ManagerPlugin(BasePlugin):
def __init__(self, parent: "Blueman"):
super().__init__()
self.parent = parent
def on_unload(self) -> None:
... | 329 | Python | .py | 10 | 27.8 | 49 | 0.703822 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,560 | BasePlugin.py | blueman-project_blueman/blueman/plugins/BasePlugin.py | import logging
import weakref
from gettext import gettext as _
from typing import List, TYPE_CHECKING, Dict, Tuple, Any, TypeVar, Type, Optional
from gi.repository import Gio
if TYPE_CHECKING:
from typing_extensions import TypedDict
# type is actually Type[T] and default is T but this is not supported https... | 3,252 | Python | .py | 87 | 29.425287 | 116 | 0.589605 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,561 | ServicePlugin.py | blueman-project_blueman/blueman/plugins/ServicePlugin.py | from typing import List, Tuple, Union, TYPE_CHECKING
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk
if TYPE_CHECKING:
from typing_extensions import Literal
from blueman.main.Services import BluemanServices
class ServicePlugin:
_options: List[str]
instances: List["ServiceP... | 1,651 | Python | .py | 44 | 30.545455 | 100 | 0.647355 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,562 | AppletPlugin.py | blueman-project_blueman/blueman/plugins/AppletPlugin.py | from typing import Tuple, Callable, Set, Any, TYPE_CHECKING
from blueman.bluemantyping import ObjectPath
from blueman.plugins.BasePlugin import BasePlugin
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk
if TYPE_CHECKING:
from blueman.main.Applet import BluemanApplet
class AppletPlugin(... | 3,150 | Python | .py | 65 | 40.738462 | 116 | 0.650441 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,563 | MechanismPlugin.py | blueman-project_blueman/blueman/plugins/MechanismPlugin.py | from typing import TYPE_CHECKING
if TYPE_CHECKING:
from blueman.main.MechanismApplication import MechanismApplication
class MechanismPlugin:
def __init__(self, parent: "MechanismApplication"):
self.parent = parent
self.timer = self.parent.timer
self.confirm_authorization = self.paren... | 413 | Python | .py | 11 | 31.272727 | 70 | 0.719697 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,564 | ConnectionNotifier.py | blueman-project_blueman/blueman/plugins/applet/ConnectionNotifier.py | import logging
from gettext import gettext as _
from typing import Any, Dict, Union
from blueman.bluemantyping import ObjectPath
from blueman.bluez.Device import Device
from blueman.gui.Notification import Notification, _NotificationBubble, _NotificationDialog
from blueman.main.BatteryWatcher import BatteryWatcher
fro... | 1,843 | Python | .py | 38 | 39.289474 | 101 | 0.659432 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,565 | PowerManager.py | blueman-project_blueman/blueman/plugins/applet/PowerManager.py | from enum import Enum
from gettext import gettext as _
import logging
from typing import Callable, Any, Optional
from blueman.bluemantyping import ObjectPath
from blueman.plugins.AppletPlugin import AppletPlugin
from blueman.bluez.Adapter import Adapter
from gi.repository import GLib
from blueman.plugins.applet.Stat... | 7,555 | Python | .py | 154 | 37.24026 | 119 | 0.606337 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,566 | TransferService.py | blueman-project_blueman/blueman/plugins/applet/TransferService.py | from datetime import datetime
from gettext import gettext as _, ngettext
import os
import shutil
import logging
from html import escape
from typing import List, Dict, TYPE_CHECKING, Callable, Tuple, Optional, Union
from blueman.bluemantyping import ObjectPath, BtAddress
from blueman.bluez.obex.AgentManager import Agen... | 14,107 | Python | .py | 279 | 37.688172 | 120 | 0.574315 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,567 | PPPSupport.py | blueman-project_blueman/blueman/plugins/applet/PPPSupport.py | from gettext import gettext as _
from typing import TYPE_CHECKING, Callable, Union
from _blueman import RFCOMMError
from blueman.services.meta.SerialService import SerialService
from blueman.bluez.Device import Device
from blueman.plugins.AppletPlugin import AppletPlugin
from blueman.gui.Notification import Notificat... | 3,743 | Python | .py | 74 | 41.972973 | 114 | 0.662733 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,568 | RecentConns.py | blueman-project_blueman/blueman/plugins/applet/RecentConns.py | from gettext import gettext as _
from operator import itemgetter
import html
import time
import logging
from typing import List, TYPE_CHECKING, Optional, Callable, cast, Union
from blueman.bluemantyping import ObjectPath, BtAddress
from blueman.bluez.Device import Device
from blueman.bluez.errors import DBusNoSuchAdap... | 8,003 | Python | .py | 182 | 33.527473 | 109 | 0.582047 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,569 | StatusNotifierItem.py | blueman-project_blueman/blueman/plugins/applet/StatusNotifierItem.py | from gettext import gettext as _
from typing import Tuple
from blueman.plugins.AppletPlugin import AppletPlugin
from blueman.plugins.applet.StatusIcon import StatusIconImplementationProvider
class StatusNotifierItem(AppletPlugin, StatusIconImplementationProvider):
__description__ = _("Provides a StatusNotifierI... | 494 | Python | .py | 9 | 51.111111 | 78 | 0.802083 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,570 | PulseAudioProfile.py | blueman-project_blueman/blueman/plugins/applet/PulseAudioProfile.py | import logging
from gettext import gettext as _
from html import escape
from typing import TYPE_CHECKING, Any, Dict, List, Mapping, Callable
from blueman.main.PulseAudioUtils import EventType, PulseAudioUtils
from blueman.plugins.AppletPlugin import AppletPlugin
from blueman.Sdp import (AUDIO_SINK_SVCLASS_ID, AUDIO_SO... | 6,029 | Python | .py | 128 | 35.179688 | 106 | 0.575468 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,571 | ExitItem.py | blueman-project_blueman/blueman/plugins/applet/ExitItem.py | from gettext import gettext as _
from blueman.plugins.AppletPlugin import AppletPlugin
class ExitItem(AppletPlugin):
__depends__ = ["Menu"]
__description__ = _("Adds an exit menu item to quit the applet")
__author__ = "Walmis"
__icon__ = "application-exit-symbolic"
def on_load(self) -> None:
... | 568 | Python | .py | 12 | 39.583333 | 103 | 0.644928 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,572 | AuthAgent.py | blueman-project_blueman/blueman/plugins/applet/AuthAgent.py | from gettext import gettext as _
from blueman.plugins.AppletPlugin import AppletPlugin
from blueman.main.applet.BluezAgent import BluezAgent
class AuthAgent(AppletPlugin):
__description__ = _("Provides passkey, authentication services for BlueZ daemon")
__icon__ = "blueman-pair-symbolic"
__author__ = "Wa... | 752 | Python | .py | 19 | 31.947368 | 85 | 0.649243 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,573 | DBusService.py | blueman-project_blueman/blueman/plugins/applet/DBusService.py | from gettext import gettext as _
from typing import Callable, Union, TYPE_CHECKING
from blueman.bluemantyping import ObjectPath
from _blueman import RFCOMMError
from gi.repository import GLib
from blueman.Service import Service
from blueman.bluez.errors import BluezDBusException
if TYPE_CHECKING:
from blueman.mai... | 5,907 | Python | .py | 99 | 47.646465 | 113 | 0.643895 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,574 | Menu.py | blueman-project_blueman/blueman/plugins/applet/Menu.py | from gettext import gettext as _
from typing import List, Union, Iterable, Dict, Optional, Callable, \
TYPE_CHECKING, Tuple, Iterator, Mapping, Sequence
from gi.repository import GLib
from blueman.plugins.AppletPlugin import AppletPlugin
if TYPE_CHECKING:
from typing_extensions import TypedDict
class Su... | 6,837 | Python | .py | 141 | 38.744681 | 120 | 0.605947 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,575 | StandardItems.py | blueman-project_blueman/blueman/plugins/applet/StandardItems.py | from gettext import gettext as _
from typing import Optional
from blueman.Functions import launch
from blueman.main.DBusProxies import ManagerService
from blueman.plugins.AppletPlugin import AppletPlugin
from blueman.gui.CommonUi import show_about_dialog
from blueman.gui.applet.PluginDialog import PluginDialog
import... | 4,816 | Python | .py | 95 | 38.947368 | 108 | 0.602907 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,576 | NetUsage.py | blueman-project_blueman/blueman/plugins/applet/NetUsage.py | from html import escape
import time
import datetime
from gettext import gettext as _, ngettext
import logging
from typing import List, Any, Optional
from blueman.Functions import *
from blueman.main.Builder import Builder
from blueman.plugins.AppletPlugin import AppletPlugin
from blueman.bluez.Device import Device
fro... | 12,618 | Python | .py | 265 | 37.132075 | 114 | 0.59614 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,577 | NMDUNSupport.py | blueman-project_blueman/blueman/plugins/applet/NMDUNSupport.py | from gettext import gettext as _
from typing import Callable, Union
from gi.repository import GLib
from blueman.Service import Service
from blueman.plugins.AppletPlugin import AppletPlugin
from blueman.main.NetworkManager import NMDUNConnection, NMConnectionError
from blueman.Sdp import DIALUP_NET_SVCLASS_ID
from blu... | 1,425 | Python | .py | 29 | 41.344828 | 109 | 0.686147 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,578 | AutoConnect.py | blueman-project_blueman/blueman/plugins/applet/AutoConnect.py | from gettext import gettext as _
from typing import TYPE_CHECKING, Union, Optional, Any
from blueman.bluemantyping import ObjectPath, BtAddress
from gi.repository import GLib
from blueman.Sdp import ServiceUUID
from blueman.bluez.Device import Device
from blueman.config.AutoConnectConfig import AutoConnectConfig
from... | 2,716 | Python | .py | 58 | 38.017241 | 106 | 0.633573 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,579 | SerialManager.py | blueman-project_blueman/blueman/plugins/applet/SerialManager.py | from gettext import gettext as _
from typing import Dict, Any, Callable, Tuple # noqa: F401
from blueman.bluemantyping import ObjectPath, BtAddress
from blueman.plugins.AppletPlugin import AppletPlugin
from blueman.gui.Notification import Notification
from blueman.Sdp import SERIAL_PORT_SVCLASS_ID
from blueman.plugin... | 5,945 | Python | .py | 119 | 38.02521 | 109 | 0.593103 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,580 | GameControllerWakelock.py | blueman-project_blueman/blueman/plugins/applet/GameControllerWakelock.py | from gettext import gettext as _
import logging
from typing import Any
from blueman.bluemantyping import ObjectPath
from blueman.bluez.Device import Device
from blueman.Functions import launch
from blueman.plugins.AppletPlugin import AppletPlugin
from blueman.plugins.errors import UnsupportedPlatformError
import gi
g... | 2,582 | Python | .py | 64 | 30.671875 | 110 | 0.605673 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,581 | NMPANSupport.py | blueman-project_blueman/blueman/plugins/applet/NMPANSupport.py | from gettext import gettext as _
from typing import Callable, Union
from gi.repository import GLib
from blueman.Service import Service
from blueman.plugins.AppletPlugin import AppletPlugin
from blueman.main.NetworkManager import NMPANConnection, NMConnectionError
from blueman.plugins.applet.DBusService import Service... | 1,434 | Python | .py | 29 | 41.655172 | 111 | 0.693907 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,582 | DhcpClient.py | blueman-project_blueman/blueman/plugins/applet/DhcpClient.py | from gettext import gettext as _
import logging
from typing import List, Any
from blueman.bluemantyping import ObjectPath
from gi.repository import GLib
from blueman.bluez.Network import AnyNetwork, Network
from blueman.gui.Notification import Notification
from blueman.plugins.AppletPlugin import AppletPlugin
from bl... | 2,454 | Python | .py | 47 | 41.638298 | 116 | 0.619087 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,583 | DisconnectItems.py | blueman-project_blueman/blueman/plugins/applet/DisconnectItems.py | from gettext import gettext as _
from typing import Any, TYPE_CHECKING, cast, Callable
from blueman.plugins.AppletPlugin import AppletPlugin
if TYPE_CHECKING:
from blueman.main.Applet import BluemanApplet
class DisconnectItems(AppletPlugin):
__depends__ = ["Menu"]
__icon__ = "bluetooth-disconnected-symb... | 1,460 | Python | .py | 32 | 36.75 | 102 | 0.622003 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,584 | StatusIcon.py | blueman-project_blueman/blueman/plugins/applet/StatusIcon.py | from gettext import gettext as _
from operator import itemgetter
from typing import Optional, Tuple, List
from gi.repository import GObject, GLib, Gio
from blueman.Functions import launch
from blueman.main.PluginManager import PluginManager
from blueman.plugins.AppletPlugin import AppletPlugin
class StatusIconImplem... | 5,778 | Python | .py | 118 | 40.305085 | 110 | 0.653457 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,585 | ShowConnected.py | blueman-project_blueman/blueman/plugins/applet/ShowConnected.py | from gettext import gettext as _
import logging
from typing import Optional, Any, List, Set
from blueman.bluemantyping import ObjectPath
from gi.repository import GLib
from blueman.bluez.Battery import Battery
from blueman.bluez.Device import Device
from blueman.bluez.errors import BluezDBusException
from blueman.mai... | 4,741 | Python | .py | 96 | 38.770833 | 106 | 0.639706 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,586 | DiscvManager.py | blueman-project_blueman/blueman/plugins/applet/DiscvManager.py | from gettext import gettext as _
from typing import Any, Optional
from blueman.bluez.Adapter import Adapter
from blueman.bluez.errors import DBusNoSuchAdapterError
from blueman.plugins.AppletPlugin import AppletPlugin
from gi.repository import GLib
import logging
class DiscvManager(AppletPlugin):
__depends__ = [... | 4,624 | Python | .py | 108 | 31.12037 | 120 | 0.57092 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,587 | KillSwitch.py | blueman-project_blueman/blueman/plugins/applet/KillSwitch.py | from gettext import gettext as _
import os
from typing import Dict, Callable, Any, Optional
from gi.repository import GLib, Gio
import struct
import logging
from blueman.main.DBusProxies import Mechanism
from blueman.plugins.AppletPlugin import AppletPlugin
from blueman.plugins.applet.PowerManager import PowerManager... | 5,716 | Python | .py | 123 | 37.195122 | 116 | 0.62889 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,588 | Networking.py | blueman-project_blueman/blueman/plugins/applet/Networking.py | from gettext import gettext as _
from typing import Dict, Optional
from blueman.bluemantyping import ObjectPath
from gi.repository import GLib
from gi.repository import Gio
from blueman.bluez.NetworkServer import NetworkServer
from blueman.main.DBusProxies import Mechanism
from blueman.main.DNSServerProvider import D... | 3,313 | Python | .py | 69 | 37.73913 | 118 | 0.626087 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,589 | PulseAudioProfile.py | blueman-project_blueman/blueman/plugins/manager/PulseAudioProfile.py | from gettext import gettext as _
import logging
from typing import Dict, List, TYPE_CHECKING, Mapping, Sequence
from blueman.bluez.Device import Device
from blueman.plugins.ManagerPlugin import ManagerPlugin
from blueman.main.PulseAudioUtils import PulseAudioUtils, EventType
from blueman.gui.manager.ManagerDeviceMenu ... | 5,008 | Python | .py | 108 | 34.972222 | 102 | 0.597328 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,590 | Info.py | blueman-project_blueman/blueman/plugins/manager/Info.py | from gettext import gettext as _
from typing import List, Tuple, Iterable, Callable, Any, Optional
from gi.repository import Gtk, Gdk
import logging
from gi.repository.GObject import GObject
from blueman.Functions import create_menuitem
from blueman.Sdp import ServiceUUID
from blueman.bluez.Device import Device
fro... | 4,479 | Python | .py | 107 | 34.130841 | 116 | 0.638454 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,591 | Notes.py | blueman-project_blueman/blueman/plugins/manager/Notes.py | import datetime
from gettext import gettext as _
from tempfile import NamedTemporaryFile
from typing import List
from blueman.Functions import create_menuitem, launch
from blueman.bluez.Device import Device
from blueman.gui.manager.ManagerDeviceMenu import MenuItemsProvider, ManagerDeviceMenu, DeviceMenuItem
from blue... | 2,391 | Python | .py | 53 | 38.924528 | 106 | 0.693167 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,592 | Services.py | blueman-project_blueman/blueman/plugins/manager/Services.py | from typing import List, Callable
from blueman.bluemantyping import BtAddress
import cairo
from blueman.bluez.Device import Device
from blueman.config.AutoConnectConfig import AutoConnectConfig
from blueman.gui.manager.ManagerDeviceMenu import MenuItemsProvider, ManagerDeviceMenu, DeviceMenuItem
from blueman.plugins.... | 4,367 | Python | .py | 81 | 42.851852 | 114 | 0.662292 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,593 | Network.py | blueman-project_blueman/blueman/plugins/services/Network.py | from gettext import gettext as _
from random import randint
import logging
import ipaddress
from typing import List, Tuple, cast, Union, TYPE_CHECKING
from blueman.Functions import have, get_local_interfaces
from blueman.main.Builder import Builder
from blueman.plugins.ServicePlugin import ServicePlugin
from blueman.m... | 10,197 | Python | .py | 195 | 40.348718 | 117 | 0.607057 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,594 | Transfer.py | blueman-project_blueman/blueman/plugins/services/Transfer.py | from gettext import gettext as _
import logging
from blueman.main.Builder import Builder
from blueman.plugins.ServicePlugin import ServicePlugin
from blueman.main.DBusProxies import AppletService
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, Gio
class Transfer(ServicePlugin):
__plugi... | 2,631 | Python | .py | 53 | 39.735849 | 96 | 0.631538 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,595 | Network.py | blueman-project_blueman/blueman/plugins/mechanism/Network.py | from typing import Callable, Union, Dict, Type, TYPE_CHECKING
from blueman.bluemantyping import ObjectPath
from blueman.bluez.Network import Network as BluezNetwork
from blueman.plugins.MechanismPlugin import MechanismPlugin
from blueman.main.NetConf import NetConf, DnsMasqHandler, DhcpdHandler, UdhcpdHandler
if TYPE... | 2,208 | Python | .py | 42 | 44.380952 | 113 | 0.671621 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,596 | Rfcomm.py | blueman-project_blueman/blueman/plugins/mechanism/Rfcomm.py | import os
import subprocess
import signal
from blueman.Constants import RFCOMM_WATCHER_PATH
from blueman.plugins.MechanismPlugin import MechanismPlugin
class Rfcomm(MechanismPlugin):
def on_load(self) -> None:
self.parent.add_method("OpenRFCOMM", ("n",), "", self._open_rfcomm)
self.parent.add_meth... | 883 | Python | .py | 17 | 45.294118 | 104 | 0.663573 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,597 | RfKill.py | blueman-project_blueman/blueman/plugins/mechanism/RfKill.py | import os
import struct
from blueman.plugins.MechanismPlugin import MechanismPlugin
from blueman.plugins.applet.KillSwitch import RFKILL_TYPE_BLUETOOTH, RFKILL_OP_CHANGE_ALL
if not os.path.exists('/dev/rfkill'):
raise ImportError("Hardware kill switch not found")
class RfKill(MechanismPlugin):
def on_load(se... | 751 | Python | .py | 13 | 52.769231 | 113 | 0.719346 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,598 | Ppp.py | blueman-project_blueman/blueman/plugins/mechanism/Ppp.py | from typing import Callable
from blueman.main.PPPConnection import PPPConnection
from blueman.plugins.MechanismPlugin import MechanismPlugin
class Ppp(MechanismPlugin):
def on_load(self) -> None:
self.parent.add_method("PPPConnect", ("u", "s", "s"), "s", self._ppp_connect, pass_sender=True, is_async=True... | 1,086 | Python | .py | 20 | 46.65 | 118 | 0.655955 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |
31,599 | _blueman.pyx | blueman-project_blueman/module/_blueman.pyx | #!/usr/bin/env python3
# coding=utf-8
#cython: language_level=3
cdef extern from "malloc.h":
cdef void free(void *ptr)
cdef extern from "string.h":
cdef char* strerror(int errnum)
cdef extern from "bluetooth/bluetooth.h":
ctypedef struct bdaddr_t:
unsigned char b[6]
int ba2str(bdaddr_t *ba, ... | 7,506 | Python | .py | 227 | 26.563877 | 115 | 0.625173 | blueman-project/blueman | 1,227 | 187 | 70 | GPL-3.0 | 9/5/2024, 5:14:22 PM (Europe/Amsterdam) |