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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8,400 | expressions.py | rembo10_headphones/lib/apscheduler/triggers/cron/expressions.py | """This module contains the expressions applicable for CronTrigger's fields."""
from calendar import monthrange
import re
from apscheduler.util import asint
__all__ = ('AllExpression', 'RangeExpression', 'WeekdayRangeExpression',
'WeekdayPositionExpression', 'LastDayOfMonthExpression')
WEEKDAYS = ['mon'... | 9,184 | Python | .py | 191 | 38.225131 | 96 | 0.581552 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,401 | __init__.py | rembo10_headphones/lib/apscheduler/triggers/cron/__init__.py | from datetime import datetime, timedelta
from tzlocal import get_localzone
import six
from apscheduler.triggers.base import BaseTrigger
from apscheduler.triggers.cron.fields import (
BaseField, MonthField, WeekField, DayOfMonthField, DayOfWeekField, DEFAULT_VALUES)
from apscheduler.util import (
datetime_ceil... | 9,251 | Python | .py | 202 | 34.420792 | 98 | 0.579228 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,402 | fields.py | rembo10_headphones/lib/apscheduler/triggers/cron/fields.py | """Fields represent CronTrigger options which map to :class:`~datetime.datetime` fields."""
from calendar import monthrange
import re
import six
from apscheduler.triggers.cron.expressions import (
AllExpression, RangeExpression, WeekdayPositionExpression, LastDayOfMonthExpression,
WeekdayRangeExpression, Mon... | 3,510 | Python | .py | 76 | 37.763158 | 96 | 0.633127 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,403 | redis.py | rembo10_headphones/lib/apscheduler/jobstores/redis.py | from __future__ import absolute_import
from datetime import datetime
from pytz import utc
import six
from apscheduler.jobstores.base import BaseJobStore, JobLookupError, ConflictingIdError
from apscheduler.util import datetime_to_utc_timestamp, utc_timestamp_to_datetime
from apscheduler.job import Job
try:
impor... | 5,483 | Python | .py | 120 | 35.433333 | 98 | 0.616726 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,404 | memory.py | rembo10_headphones/lib/apscheduler/jobstores/memory.py | from __future__ import absolute_import
from apscheduler.jobstores.base import BaseJobStore, JobLookupError, ConflictingIdError
from apscheduler.util import datetime_to_utc_timestamp
class MemoryJobStore(BaseJobStore):
"""
Stores jobs in an array in RAM. Provides no persistence support.
Plugin alias: ``m... | 3,655 | Python | .py | 85 | 33.447059 | 99 | 0.598534 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,405 | rethinkdb.py | rembo10_headphones/lib/apscheduler/jobstores/rethinkdb.py | from __future__ import absolute_import
from apscheduler.jobstores.base import BaseJobStore, JobLookupError, ConflictingIdError
from apscheduler.util import maybe_ref, datetime_to_utc_timestamp, utc_timestamp_to_datetime
from apscheduler.job import Job
try:
import cPickle as pickle
except ImportError: # pragma: n... | 5,863 | Python | .py | 124 | 38.306452 | 99 | 0.632446 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,406 | sqlalchemy.py | rembo10_headphones/lib/apscheduler/jobstores/sqlalchemy.py | from __future__ import absolute_import
from apscheduler.jobstores.base import BaseJobStore, JobLookupError, ConflictingIdError
from apscheduler.util import maybe_ref, datetime_to_utc_timestamp, utc_timestamp_to_datetime
from apscheduler.job import Job
try:
import cPickle as pickle
except ImportError: # pragma: n... | 6,529 | Python | .py | 136 | 38.610294 | 97 | 0.638191 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,407 | base.py | rembo10_headphones/lib/apscheduler/jobstores/base.py | from abc import ABCMeta, abstractmethod
import logging
import six
class JobLookupError(KeyError):
"""Raised when the job store cannot find a job for update or removal."""
def __init__(self, job_id):
super(JobLookupError, self).__init__(u'No job by the id of %s was found' % job_id)
class Conflictin... | 4,523 | Python | .py | 107 | 34.018692 | 98 | 0.634703 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,408 | mongodb.py | rembo10_headphones/lib/apscheduler/jobstores/mongodb.py | from __future__ import absolute_import
import warnings
from apscheduler.jobstores.base import BaseJobStore, JobLookupError, ConflictingIdError
from apscheduler.util import maybe_ref, datetime_to_utc_timestamp, utc_timestamp_to_datetime
from apscheduler.job import Job
try:
import cPickle as pickle
except ImportErr... | 5,347 | Python | .py | 114 | 37.114035 | 109 | 0.627161 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,409 | zookeeper.py | rembo10_headphones/lib/apscheduler/jobstores/zookeeper.py | from __future__ import absolute_import
from datetime import datetime
from pytz import utc
from kazoo.exceptions import NoNodeError, NodeExistsError
from apscheduler.jobstores.base import BaseJobStore, JobLookupError, ConflictingIdError
from apscheduler.util import maybe_ref, datetime_to_utc_timestamp, utc_timestamp_... | 6,363 | Python | .py | 150 | 32.546667 | 98 | 0.599838 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,410 | gevent.py | rembo10_headphones/lib/apscheduler/schedulers/gevent.py | from __future__ import absolute_import
from apscheduler.schedulers.blocking import BlockingScheduler
from apscheduler.schedulers.base import BaseScheduler
try:
from gevent.event import Event
from gevent.lock import RLock
import gevent
except ImportError: # pragma: nocover
raise ImportError('GeventSch... | 1,031 | Python | .py | 26 | 33.692308 | 66 | 0.715863 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,411 | twisted.py | rembo10_headphones/lib/apscheduler/schedulers/twisted.py | from __future__ import absolute_import
from functools import wraps
from apscheduler.schedulers.base import BaseScheduler
from apscheduler.util import maybe_ref
try:
from twisted.internet import reactor as default_reactor
except ImportError: # pragma: nocover
raise ImportError('TwistedScheduler requires Twis... | 1,844 | Python | .py | 46 | 33.782609 | 82 | 0.640292 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,412 | asyncio.py | rembo10_headphones/lib/apscheduler/schedulers/asyncio.py | from __future__ import absolute_import
import asyncio
from functools import wraps, partial
from apscheduler.schedulers.base import BaseScheduler
from apscheduler.util import maybe_ref
def run_in_event_loop(func):
@wraps(func)
def wrapper(self, *args, **kwargs):
wrapped = partial(func, self, *args, **... | 1,994 | Python | .py | 49 | 33.959184 | 81 | 0.619295 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,413 | tornado.py | rembo10_headphones/lib/apscheduler/schedulers/tornado.py | from __future__ import absolute_import
from datetime import timedelta
from functools import wraps
from apscheduler.schedulers.base import BaseScheduler
from apscheduler.util import maybe_ref
try:
from tornado.ioloop import IOLoop
except ImportError: # pragma: nocover
raise ImportError('TornadoScheduler requ... | 1,926 | Python | .py | 47 | 34.787234 | 98 | 0.634997 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,414 | qt.py | rembo10_headphones/lib/apscheduler/schedulers/qt.py | from __future__ import absolute_import
from apscheduler.schedulers.base import BaseScheduler
try:
from PyQt5.QtCore import QObject, QTimer
except (ImportError, RuntimeError): # pragma: nocover
try:
from PyQt4.QtCore import QObject, QTimer
except ImportError:
try:
from PySide6.... | 1,613 | Python | .py | 40 | 30.225 | 99 | 0.609085 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,415 | background.py | rembo10_headphones/lib/apscheduler/schedulers/background.py | from __future__ import absolute_import
from threading import Thread, Event
from apscheduler.schedulers.base import BaseScheduler
from apscheduler.schedulers.blocking import BlockingScheduler
from apscheduler.util import asbool
class BackgroundScheduler(BlockingScheduler):
"""
A scheduler that runs in the ba... | 1,566 | Python | .py | 32 | 41.8125 | 92 | 0.601445 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,416 | __init__.py | rembo10_headphones/lib/apscheduler/schedulers/__init__.py | class SchedulerAlreadyRunningError(Exception):
"""Raised when attempting to start or configure the scheduler when it's already running."""
def __str__(self):
return 'Scheduler is already running'
class SchedulerNotRunningError(Exception):
"""Raised when attempting to shutdown the scheduler when i... | 406 | Python | .py | 8 | 45.25 | 95 | 0.730964 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,417 | blocking.py | rembo10_headphones/lib/apscheduler/schedulers/blocking.py | from __future__ import absolute_import
from threading import Event
from apscheduler.schedulers.base import BaseScheduler, STATE_STOPPED
from apscheduler.util import TIMEOUT_MAX
class BlockingScheduler(BaseScheduler):
"""
A scheduler that runs in the foreground
(:meth:`~apscheduler.schedulers.base.BaseSc... | 985 | Python | .py | 26 | 30.846154 | 74 | 0.661053 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,418 | base.py | rembo10_headphones/lib/apscheduler/schedulers/base.py | from __future__ import print_function
from abc import ABCMeta, abstractmethod
from threading import RLock
from datetime import datetime, timedelta
from logging import getLogger
import warnings
import sys
from pkg_resources import iter_entry_points
from tzlocal import get_localzone
import six
from apscheduler.schedul... | 43,228 | Python | .py | 838 | 38.899761 | 99 | 0.602412 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,419 | __init__.py | rembo10_headphones/lib/zc/lockfile/__init__.py | ##############################################################################
#
# Copyright (c) 2001, 2002 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# TH... | 3,521 | Python | .py | 103 | 26.252427 | 78 | 0.569788 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,420 | tests.py | rembo10_headphones/lib/zc/lockfile/tests.py | ##############################################################################
#
# Copyright (c) 2004 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... | 5,814 | Python | .py | 165 | 29.018182 | 80 | 0.595582 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,421 | more.pyi | rembo10_headphones/lib/more_itertools/more.pyi | """Stubs for more_itertools.more"""
from typing import (
Any,
Callable,
Container,
Dict,
Generic,
Hashable,
Iterable,
Iterator,
List,
Optional,
Reversible,
Sequence,
Sized,
Tuple,
Union,
TypeVar,
type_check_only,
)
from types import TracebackType
from... | 20,006 | Python | .py | 635 | 28.103937 | 78 | 0.587581 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,422 | more.py | rembo10_headphones/lib/more_itertools/more.py | import warnings
from collections import Counter, defaultdict, deque, abc
from collections.abc import Sequence
from concurrent.futures import ThreadPoolExecutor
from functools import partial, reduce, wraps
from heapq import merge, heapify, heapreplace, heappop
from itertools import (
chain,
compress,
count,... | 132,578 | Python | .py | 3,371 | 31.167606 | 79 | 0.572489 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,423 | recipes.pyi | rembo10_headphones/lib/more_itertools/recipes.pyi | """Stubs for more_itertools.recipes"""
from typing import (
Any,
Callable,
Iterable,
Iterator,
List,
Optional,
Tuple,
TypeVar,
Union,
)
from typing_extensions import overload, Type
# Type and type variable definitions
_T = TypeVar('_T')
_U = TypeVar('_U')
def take(n: int, iterable:... | 3,925 | Python | .py | 110 | 33.390909 | 78 | 0.617624 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,424 | __init__.py | rembo10_headphones/lib/more_itertools/__init__.py | from .more import * # noqa
from .recipes import * # noqa
__version__ = '8.12.0'
| 83 | Python | .py | 3 | 26.333333 | 30 | 0.632911 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,425 | recipes.py | rembo10_headphones/lib/more_itertools/recipes.py | """Imported from the recipes section of the itertools documentation.
All functions taken from the recipes section of the itertools library docs
[1]_.
Some backward-compatible usability improvements have been made.
.. [1] http://docs.python.org/library/itertools.html#recipes
"""
import warnings
from collections impor... | 18,410 | Python | .py | 514 | 29.256809 | 79 | 0.595867 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,426 | client.py | rembo10_headphones/lib/qbittorrentv2/client.py | import requests
import json
class LoginRequired(Exception):
def __str__(self):
return 'Please login first.'
class Client(object):
"""class to interact with qBittorrent WEB API"""
def __init__(self, url, verify=True):
"""
Initialize the client
:param url: Base URL of the ... | 26,319 | Python | .py | 628 | 32.272293 | 116 | 0.604679 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,427 | error.py | rembo10_headphones/lib/yaml/error.py |
__all__ = ['Mark', 'YAMLError', 'MarkedYAMLError']
class Mark:
def __init__(self, name, index, line, column, buffer, pointer):
self.name = name
self.index = index
self.line = line
self.column = column
self.buffer = buffer
self.pointer = pointer
def get_snippet... | 2,533 | Python | .py | 65 | 28.338462 | 90 | 0.544752 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,428 | emitter.py | rembo10_headphones/lib/yaml/emitter.py |
# Emitter expects events obeying the following grammar:
# stream ::= STREAM-START document* STREAM-END
# document ::= DOCUMENT-START node DOCUMENT-END
# node ::= SCALAR | sequence | mapping
# sequence ::= SEQUENCE-START node* SEQUENCE-END
# mapping ::= MAPPING-START (node node)* MAPPING-END
__all__ = ['Emitter', 'Emi... | 43,006 | Python | .py | 1,021 | 28.627816 | 85 | 0.523156 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,429 | serializer.py | rembo10_headphones/lib/yaml/serializer.py |
__all__ = ['Serializer', 'SerializerError']
from .error import YAMLError
from .events import *
from .nodes import *
class SerializerError(YAMLError):
pass
class Serializer:
ANCHOR_TEMPLATE = 'id%03d'
def __init__(self, encoding=None,
explicit_start=None, explicit_end=None, version=None, ta... | 4,165 | Python | .py | 97 | 30.865979 | 82 | 0.581401 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,430 | nodes.py | rembo10_headphones/lib/yaml/nodes.py |
class Node(object):
def __init__(self, tag, value, start_mark, end_mark):
self.tag = tag
self.value = value
self.start_mark = start_mark
self.end_mark = end_mark
def __repr__(self):
value = self.value
#if isinstance(value, list):
# if len(value) == 0:
... | 1,440 | Python | .py | 43 | 25.744186 | 82 | 0.529116 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,431 | constructor.py | rembo10_headphones/lib/yaml/constructor.py |
__all__ = [
'BaseConstructor',
'SafeConstructor',
'FullConstructor',
'UnsafeConstructor',
'Constructor',
'ConstructorError'
]
from .error import *
from .nodes import *
import collections.abc, datetime, base64, binascii, re, sys, types
class ConstructorError(MarkedYAMLError):
pass
class ... | 28,639 | Python | .py | 655 | 32.651908 | 112 | 0.594242 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,432 | tokens.py | rembo10_headphones/lib/yaml/tokens.py |
class Token(object):
def __init__(self, start_mark, end_mark):
self.start_mark = start_mark
self.end_mark = end_mark
def __repr__(self):
attributes = [key for key in self.__dict__
if not key.endswith('_mark')]
attributes.sort()
arguments = ', '.join(['%s=... | 2,573 | Python | .py | 81 | 25.888889 | 71 | 0.618064 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,433 | representer.py | rembo10_headphones/lib/yaml/representer.py |
__all__ = ['BaseRepresenter', 'SafeRepresenter', 'Representer',
'RepresenterError']
from .error import *
from .nodes import *
import datetime, copyreg, types, base64, collections
class RepresenterError(YAMLError):
pass
class BaseRepresenter:
yaml_representers = {}
yaml_multi_representers = {}
... | 14,190 | Python | .py | 324 | 34.015432 | 91 | 0.614013 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,434 | loader.py | rembo10_headphones/lib/yaml/loader.py |
__all__ = ['BaseLoader', 'FullLoader', 'SafeLoader', 'Loader', 'UnsafeLoader']
from .reader import *
from .scanner import *
from .parser import *
from .composer import *
from .constructor import *
from .resolver import *
class BaseLoader(Reader, Scanner, Parser, Composer, BaseConstructor, BaseResolver):
def __i... | 2,061 | Python | .py | 51 | 34.078431 | 83 | 0.644645 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,435 | dumper.py | rembo10_headphones/lib/yaml/dumper.py |
__all__ = ['BaseDumper', 'SafeDumper', 'Dumper']
from .emitter import *
from .serializer import *
from .representer import *
from .resolver import *
class BaseDumper(Emitter, Serializer, BaseRepresenter, BaseResolver):
def __init__(self, stream,
default_style=None, default_flow_style=False,
... | 2,837 | Python | .py | 53 | 42.396226 | 75 | 0.642162 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,436 | __init__.py | rembo10_headphones/lib/yaml/__init__.py |
from .error import *
from .tokens import *
from .events import *
from .nodes import *
from .loader import *
from .dumper import *
__version__ = '6.0'
try:
from .cyaml import *
__with_libyaml__ = True
except ImportError:
__with_libyaml__ = False
import io
#----------------------------------------------... | 12,309 | Python | .py | 344 | 29.625 | 90 | 0.664653 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,437 | events.py | rembo10_headphones/lib/yaml/events.py |
# Abstract classes.
class Event(object):
def __init__(self, start_mark=None, end_mark=None):
self.start_mark = start_mark
self.end_mark = end_mark
def __repr__(self):
attributes = [key for key in ['anchor', 'tag', 'implicit', 'value']
if hasattr(self, key)]
argu... | 2,445 | Python | .py | 69 | 28.449275 | 77 | 0.642221 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,438 | composer.py | rembo10_headphones/lib/yaml/composer.py |
__all__ = ['Composer', 'ComposerError']
from .error import MarkedYAMLError
from .events import *
from .nodes import *
class ComposerError(MarkedYAMLError):
pass
class Composer:
def __init__(self):
self.anchors = {}
def check_node(self):
# Drop the STREAM-START event.
if self.ch... | 4,883 | Python | .py | 117 | 31.213675 | 89 | 0.597597 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,439 | reader.py | rembo10_headphones/lib/yaml/reader.py | # This module contains abstractions for the input stream. You don't have to
# looks further, there are no pretty code.
#
# We define two classes here.
#
# Mark(source, line, column)
# It's just a record and its only use is producing nice error messages.
# Parser does not use it for any other purposes.
#
# Reader(so... | 6,794 | Python | .py | 167 | 29.634731 | 107 | 0.561507 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,440 | parser.py | rembo10_headphones/lib/yaml/parser.py |
# The following YAML grammar is LL(1) and is parsed by a recursive descent
# parser.
#
# stream ::= STREAM-START implicit_document? explicit_document* STREAM-END
# implicit_document ::= block_node DOCUMENT-END*
# explicit_document ::= DIRECTIVE* DOCUMENT-START block_node? DOCUMENT-END*
# block_node_or_inden... | 25,495 | Python | .py | 531 | 36.124294 | 156 | 0.574596 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,441 | scanner.py | rembo10_headphones/lib/yaml/scanner.py |
# Scanner produces tokens of the following types:
# STREAM-START
# STREAM-END
# DIRECTIVE(name, value)
# DOCUMENT-START
# DOCUMENT-END
# BLOCK-SEQUENCE-START
# BLOCK-MAPPING-START
# BLOCK-END
# FLOW-SEQUENCE-START
# FLOW-MAPPING-START
# FLOW-SEQUENCE-END
# FLOW-MAPPING-END
# BLOCK-ENTRY
# FLOW-ENTRY
# KEY
# VALUE
# AL... | 51,279 | Python | .py | 1,216 | 30.636513 | 104 | 0.544283 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,442 | resolver.py | rembo10_headphones/lib/yaml/resolver.py |
__all__ = ['BaseResolver', 'Resolver']
from .error import *
from .nodes import *
import re
class ResolverError(YAMLError):
pass
class BaseResolver:
DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
yaml_im... | 9,004 | Python | .py | 203 | 32.463054 | 82 | 0.538453 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,443 | cyaml.py | rembo10_headphones/lib/yaml/cyaml.py |
__all__ = [
'CBaseLoader', 'CSafeLoader', 'CFullLoader', 'CUnsafeLoader', 'CLoader',
'CBaseDumper', 'CSafeDumper', 'CDumper'
]
from yaml._yaml import CParser, CEmitter
from .constructor import *
from .serializer import *
from .representer import *
from .resolver import *
class CBaseLoader(CParser, BaseCon... | 3,851 | Python | .py | 79 | 39.21519 | 76 | 0.6472 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,444 | redis.py | rembo10_headphones/lib/logutils/redis.py | #
# Copyright (C) 2011-2013 Vinay Sajip. See LICENSE.txt for details.
#
"""
This module contains classes which help you work with Redis queues.
"""
from logutils.queue import QueueHandler, QueueListener
try:
import pickle as pickle
except ImportError:
import pickle
class RedisQueueHandler(QueueHandler):
"... | 2,293 | Python | .py | 66 | 26.545455 | 67 | 0.61535 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,445 | queue.py | rembo10_headphones/lib/logutils/queue.py | #
# Copyright (C) 2010-2013 Vinay Sajip. See LICENSE.txt for details.
#
"""
This module contains classes which help you work with queues. A typical
application is when you want to log from performance-critical threads, but
where the handlers you want to use are slow (for example,
:class:`~logging.handlers.SMTPHandler`)... | 7,554 | Python | .py | 190 | 30.884211 | 78 | 0.636189 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,446 | dictconfig.py | rembo10_headphones/lib/logutils/dictconfig.py | #
# Copyright (C) 2009-2013 Vinay Sajip. See LICENSE.txt for details.
#
import logging.handlers
import re
import sys
import types
try:
str
except NameError:
str = str
try:
Exception
except NameError:
Exception = Exception
IDENTIFIER = re.compile('^[a-z_][a-z0-9_]*$', re.I)
def valid_ident(s):
... | 22,822 | Python | .py | 529 | 28.512287 | 80 | 0.517365 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,447 | colorize.py | rembo10_headphones/lib/logutils/colorize.py | #
# Copyright (C) 2010-2013 Vinay Sajip. All rights reserved.
#
import ctypes
import logging
import os
try:
str
except NameError:
str = None
class ColorizingStreamHandler(logging.StreamHandler):
"""
A stream handler which supports colorizing of console streams
under Windows, Linux and Mac OS X.
... | 6,696 | Python | .py | 173 | 26.231214 | 80 | 0.518006 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,448 | __init__.py | rembo10_headphones/lib/logutils/__init__.py | #
# Copyright (C) 2010-2013 Vinay Sajip. See LICENSE.txt for details.
#
"""
The logutils package provides a set of handlers for the Python standard
library's logging package.
Some of these handlers are out-of-scope for the standard library, and
so they are packaged here. Others are updated versions which have
appeared... | 6,219 | Python | .py | 161 | 31.118012 | 79 | 0.638648 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,449 | testing.py | rembo10_headphones/lib/logutils/testing.py | #
# Copyright (C) 2010-2013 Vinay Sajip. See LICENSE.txt for details.
#
import logging
from logging.handlers import BufferingHandler
class TestHandler(BufferingHandler):
"""
This handler collects records in a buffer for later inspection by
your unit test code.
:param matcher: The :class:`~logutils... | 5,208 | Python | .py | 132 | 29.530303 | 84 | 0.589314 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,450 | adapter.py | rembo10_headphones/lib/logutils/adapter.py | #
# Copyright (C) 2010-2013 Vinay Sajip. See LICENSE.txt for details.
#
import logging
import logutils
class LoggerAdapter(object):
"""
An adapter for loggers which makes it easier to specify contextual
information in logging output.
"""
def __init__(self, logger, extra):
"""
Initi... | 3,517 | Python | .py | 97 | 28.298969 | 74 | 0.61923 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,451 | http.py | rembo10_headphones/lib/logutils/http.py | #
# Copyright (C) 2010-2013 Vinay Sajip. See LICENSE.txt for details.
#
import logging
class HTTPHandler(logging.Handler):
"""
A class which sends records to a Web server, using either GET or
POST semantics.
:param host: The Web server to connect to.
:param url: The URL to use for the connection.
... | 3,301 | Python | .py | 82 | 28.670732 | 80 | 0.551358 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,452 | _itertools.py | rembo10_headphones/lib/importlib_resources/_itertools.py | from itertools import filterfalse
from typing import (
Callable,
Iterable,
Iterator,
Optional,
Set,
TypeVar,
Union,
)
# Type and type variable definitions
_T = TypeVar('_T')
_U = TypeVar('_U')
def unique_everseen(
iterable: Iterable[_T], key: Optional[Callable[[_T], _U]] = None
) -> ... | 884 | Python | .py | 31 | 22.354839 | 78 | 0.60424 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,453 | _compat.py | rembo10_headphones/lib/importlib_resources/_compat.py | # flake8: noqa
import abc
import sys
import pathlib
from contextlib import suppress
if sys.version_info >= (3, 10):
from zipfile import Path as ZipPath # type: ignore
else:
from zipp import Path as ZipPath # type: ignore
try:
from typing import runtime_checkable # type: ignore
except ImportError:
... | 2,704 | Python | .py | 75 | 27.653333 | 84 | 0.647352 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,454 | _legacy.py | rembo10_headphones/lib/importlib_resources/_legacy.py | import functools
import os
import pathlib
import types
import warnings
from typing import Union, Iterable, ContextManager, BinaryIO, TextIO, Any
from . import _common
Package = Union[types.ModuleType, str]
Resource = str
def deprecated(func):
@functools.wraps(func)
def wrapper(*args, **kwargs):
war... | 3,494 | Python | .py | 94 | 32.308511 | 80 | 0.696413 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,455 | abc.py | rembo10_headphones/lib/importlib_resources/abc.py | import abc
from typing import BinaryIO, Iterable, Text
from ._compat import runtime_checkable, Protocol
class ResourceReader(metaclass=abc.ABCMeta):
"""Abstract base class for loaders to provide resource reading support."""
@abc.abstractmethod
def open_resource(self, resource: Text) -> BinaryIO:
... | 3,886 | Python | .py | 108 | 28.564815 | 78 | 0.647906 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,456 | simple.py | rembo10_headphones/lib/importlib_resources/simple.py | """
Interface adapters for low-level readers.
"""
import abc
import io
import itertools
from typing import BinaryIO, List
from .abc import Traversable, TraversableResources
class SimpleReader(abc.ABC):
"""
The minimum, low-level interface required from a resource
provider.
"""
@abc.abstractprop... | 2,836 | Python | .py | 89 | 25.213483 | 85 | 0.641912 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,457 | __init__.py | rembo10_headphones/lib/importlib_resources/__init__.py | """Read resources contained within a package."""
from ._common import (
as_file,
files,
Package,
)
from ._legacy import (
contents,
open_binary,
read_binary,
open_text,
read_text,
is_resource,
path,
Resource,
)
from importlib_resources.abc import ResourceReader
__all__ =... | 525 | Python | .py | 31 | 12.806452 | 50 | 0.609407 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,458 | _common.py | rembo10_headphones/lib/importlib_resources/_common.py | import os
import pathlib
import tempfile
import functools
import contextlib
import types
import importlib
from typing import Union, Optional
from .abc import ResourceReader, Traversable
from ._compat import wrap_spec
Package = Union[types.ModuleType, str]
def files(package):
# type: (Package) -> Traversable
... | 2,741 | Python | .py | 83 | 28.108434 | 88 | 0.699659 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,459 | readers.py | rembo10_headphones/lib/importlib_resources/readers.py | import collections
import pathlib
import operator
from . import abc
from ._itertools import unique_everseen
from ._compat import ZipPath
def remove_duplicates(items):
return iter(collections.OrderedDict.fromkeys(items))
class FileReader(abc.TraversableResources):
def __init__(self, loader):
self.p... | 3,566 | Python | .py | 92 | 31.26087 | 81 | 0.648955 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,460 | _adapters.py | rembo10_headphones/lib/importlib_resources/_adapters.py | from contextlib import suppress
from io import TextIOWrapper
from . import abc
class SpecLoaderAdapter:
"""
Adapt a package spec to adapt the underlying loader.
"""
def __init__(self, spec, adapter=lambda spec: spec.loader):
self.spec = spec
self.loader = adapter(spec)
def __get... | 4,504 | Python | .py | 126 | 26.68254 | 87 | 0.594139 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,461 | client.py | rembo10_headphones/lib/slskd_api/client.py | # Copyright (C) 2023 bigoulours
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distribut... | 4,666 | Python | .py | 105 | 36.066667 | 110 | 0.634756 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,462 | __init__.py | rembo10_headphones/lib/slskd_api/__init__.py | # Copyright (C) 2023 bigoulours
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distribut... | 777 | Python | .py | 16 | 47.3125 | 74 | 0.775 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,463 | users.py | rembo10_headphones/lib/slskd_api/apis/users.py | # Copyright (C) 2023 bigoulours
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distribut... | 2,766 | Python | .py | 66 | 34.80303 | 96 | 0.656672 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,464 | public_chat.py | rembo10_headphones/lib/slskd_api/apis/public_chat.py | # Copyright (C) 2023 bigoulours
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distribut... | 1,313 | Python | .py | 35 | 32.342857 | 83 | 0.686661 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,465 | conversations.py | rembo10_headphones/lib/slskd_api/apis/conversations.py | # Copyright (C) 2023 bigoulours
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distribut... | 3,417 | Python | .py | 83 | 33.349398 | 96 | 0.651658 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,466 | rooms.py | rembo10_headphones/lib/slskd_api/apis/rooms.py | # Copyright (C) 2023 bigoulours
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distribut... | 3,731 | Python | .py | 96 | 31.177083 | 74 | 0.623326 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,467 | shares.py | rembo10_headphones/lib/slskd_api/apis/shares.py | # Copyright (C) 2023 bigoulours
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distribut... | 2,310 | Python | .py | 63 | 29.68254 | 74 | 0.633981 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,468 | searches.py | rembo10_headphones/lib/slskd_api/apis/searches.py | # Copyright (C) 2023 bigoulours
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distribut... | 4,368 | Python | .py | 106 | 32.037736 | 92 | 0.627042 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,469 | relay.py | rembo10_headphones/lib/slskd_api/apis/relay.py | # Copyright (C) 2023 bigoulours
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distribut... | 2,283 | Python | .py | 59 | 31.830508 | 78 | 0.655723 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,470 | logs.py | rembo10_headphones/lib/slskd_api/apis/logs.py | # Copyright (C) 2023 bigoulours
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distribut... | 1,025 | Python | .py | 26 | 35.769231 | 74 | 0.717151 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,471 | options.py | rembo10_headphones/lib/slskd_api/apis/options.py | # Copyright (C) 2023 bigoulours
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distribut... | 3,261 | Python | .py | 76 | 35.631579 | 99 | 0.655348 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,472 | __init__.py | rembo10_headphones/lib/slskd_api/apis/__init__.py | # Copyright (C) 2023 bigoulours
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distribut... | 1,373 | Python | .py | 42 | 30.333333 | 74 | 0.772761 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,473 | base.py | rembo10_headphones/lib/slskd_api/apis/base.py | # Copyright (C) 2023 bigoulours
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distribut... | 966 | Python | .py | 23 | 39.391304 | 74 | 0.750266 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,474 | transfers.py | rembo10_headphones/lib/slskd_api/apis/transfers.py | # Copyright (C) 2023 bigoulours
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distribut... | 5,202 | Python | .py | 126 | 32.968254 | 163 | 0.632359 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,475 | application.py | rembo10_headphones/lib/slskd_api/apis/application.py | # Copyright (C) 2023 bigoulours
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distribut... | 2,793 | Python | .py | 73 | 31.013699 | 101 | 0.643099 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,476 | server.py | rembo10_headphones/lib/slskd_api/apis/server.py | # Copyright (C) 2023 bigoulours
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distribut... | 1,528 | Python | .py | 42 | 30.547619 | 74 | 0.663946 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,477 | session.py | rembo10_headphones/lib/slskd_api/apis/session.py | # Copyright (C) 2023 bigoulours
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distribut... | 1,675 | Python | .py | 45 | 31.022222 | 74 | 0.658204 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,478 | win32.py | rembo10_headphones/lib/tzlocal/win32.py | import logging
from datetime import datetime
try:
import _winreg as winreg
except ImportError:
import winreg
try:
import zoneinfo # pragma: no cover
except ImportError:
from backports import zoneinfo # pragma: no cover
from tzlocal import utils
from tzlocal.windows_tz import win_tz
_cache_tz = Non... | 4,772 | Python | .py | 113 | 35.442478 | 96 | 0.670054 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,479 | windows_tz.py | rembo10_headphones/lib/tzlocal/windows_tz.py | # This file is autogenerated by the update_windows_mapping.py script
# Do not edit.
win_tz = {
"AUS Central Standard Time": "Australia/Darwin",
"AUS Eastern Standard Time": "Australia/Sydney",
"Afghanistan Standard Time": "Asia/Kabul",
"Alaskan Standard Time": "America/Anchorage",
"Aleutian Standard... | 35,165 | Python | .py | 734 | 42.949591 | 68 | 0.688693 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,480 | unix.py | rembo10_headphones/lib/tzlocal/unix.py | import logging
import os
import re
import sys
import warnings
from datetime import timezone
from tzlocal import utils
if sys.version_info >= (3, 9):
import zoneinfo # pragma: no cover
else:
from backports import zoneinfo # pragma: no cover
_cache_tz = None
_cache_tz_name = None
log = logging.getLogger("tz... | 8,168 | Python | .py | 184 | 33.896739 | 104 | 0.592415 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,481 | utils.py | rembo10_headphones/lib/tzlocal/utils.py | import calendar
import datetime
import logging
import os
import time
import warnings
try:
import zoneinfo # pragma: no cover
except ImportError:
from backports import zoneinfo # pragma: no cover
from tzlocal import windows_tz
log = logging.getLogger("tzlocal")
def get_tz_offset(tz):
"""Get timezone's... | 3,329 | Python | .py | 86 | 31.593023 | 93 | 0.645633 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,482 | __init__.py | rembo10_headphones/lib/tzlocal/__init__.py | import sys
if sys.platform == "win32":
from tzlocal.win32 import (
get_localzone,
get_localzone_name,
reload_localzone,
)
else:
from tzlocal.unix import get_localzone, get_localzone_name, reload_localzone
from tzlocal.utils import assert_tz_offset
__all__ = [
"get_localzone",
... | 396 | Python | .py | 16 | 20.3125 | 80 | 0.679045 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,483 | formatter.py | rembo10_headphones/lib/bs4/formatter.py | from bs4.dammit import EntitySubstitution
class Formatter(EntitySubstitution):
"""Describes a strategy to use when outputting a parse tree to a string.
Some parts of this strategy come from the distinction between
HTML4, HTML5, and XML. Others are configurable by the user.
Formatters are passed in as... | 6,385 | Python | .py | 142 | 36.957746 | 80 | 0.677862 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,484 | element.py | rembo10_headphones/lib/bs4/element.py | # Use of this source code is governed by the MIT license.
__license__ = "MIT"
try:
from collections.abc import Callable # Python 3.6
except ImportError as e:
from collections import Callable
import re
import sys
import warnings
try:
import soupsieve
except ImportError as e:
soupsieve = None
warning... | 85,238 | Python | .py | 1,897 | 34.232999 | 181 | 0.611399 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,485 | diagnose.py | rembo10_headphones/lib/bs4/diagnose.py | """Diagnostic functions, mainly for use when doing tech support."""
# Use of this source code is governed by the MIT license.
__license__ = "MIT"
import cProfile
from io import StringIO
from html.parser import HTMLParser
import bs4
from bs4 import BeautifulSoup, __version__
from bs4.builder import builder_registry
i... | 7,755 | Python | .py | 200 | 31.35 | 129 | 0.619784 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,486 | __init__.py | rembo10_headphones/lib/bs4/__init__.py | """Beautiful Soup Elixir and Tonic - "The Screen-Scraper's Friend".
http://www.crummy.com/software/BeautifulSoup/
Beautiful Soup uses a pluggable XML or HTML parser to parse a
(possibly invalid) document into a tree representation. Beautiful Soup
provides methods and Pythonic idioms that make it easy to navigate,
sea... | 32,673 | Python | .py | 688 | 36.197674 | 536 | 0.614666 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,487 | testing.py | rembo10_headphones/lib/bs4/testing.py | """Helper classes for tests."""
import pickle
import copy
import functools
import unittest
from unittest import TestCase
from bs4 import BeautifulSoup
from bs4.element import (
CharsetMetaAttributeValue,
Comment,
ContentMetaAttributeValue,
Doctype,
SoupStrainer,
)
from bs4.builder import HTMLParse... | 27,272 | Python | .py | 558 | 40.482079 | 237 | 0.63049 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,488 | dammit.py | rembo10_headphones/lib/bs4/dammit.py | # -*- coding: utf-8 -*-
"""Beautiful Soup bonus library: Unicode, Dammit
This library converts a bytestream to Unicode through any means
necessary. It is heavily based on code from Mark Pilgrim's Universal
Feed Parser. It works best on XML and HTML, but it does not rewrite the
XML or HTML to reflect a new encoding; th... | 98,709 | Python | .py | 3,212 | 24.036737 | 112 | 0.503556 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,489 | _htmlparser.py | rembo10_headphones/lib/bs4/builder/_htmlparser.py | # encoding: utf-8
"""Use the HTMLParser library to parse HTML files that aren't too bad."""
# Use of this source code is governed by the MIT license.
__license__ = "MIT"
__all__ = [
'HTMLParserTreeBuilder',
]
from html.parser import HTMLParser
try:
from html.parser import HTMLParseError
except ImportErr... | 18,933 | Python | .py | 427 | 34.47541 | 318 | 0.60871 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,490 | _lxml.py | rembo10_headphones/lib/bs4/builder/_lxml.py | # Use of this source code is governed by the MIT license.
__license__ = "MIT"
__all__ = [
'LXMLTreeBuilderForXML',
'LXMLTreeBuilder',
]
try:
from collections.abc import Callable # Python 3.6
except ImportError as e:
from collections import Callable
from io import BytesIO
from io import StringIO
f... | 12,699 | Python | .py | 284 | 35.137324 | 82 | 0.639206 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,491 | __init__.py | rembo10_headphones/lib/bs4/builder/__init__.py | # Use of this source code is governed by the MIT license.
__license__ = "MIT"
from collections import defaultdict
import itertools
import sys
from bs4.element import (
CharsetMetaAttributeValue,
ContentMetaAttributeValue,
Stylesheet,
Script,
TemplateString,
nonwhitespace_re
)
__all__ = [
'... | 19,870 | Python | .py | 430 | 37.116279 | 317 | 0.641813 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,492 | _html5lib.py | rembo10_headphones/lib/bs4/builder/_html5lib.py | # Use of this source code is governed by the MIT license.
__license__ = "MIT"
__all__ = [
'HTML5TreeBuilder',
]
import warnings
import re
from bs4.builder import (
PERMISSIVE,
HTML,
HTML_5,
HTMLTreeBuilder,
)
from bs4.element import (
NamespacedAttribute,
nonwhitespace_re,
)
import... | 18,748 | Python | .py | 403 | 35.372208 | 159 | 0.60866 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,493 | wavpack.py | rembo10_headphones/lib/mutagen/wavpack.py | # -*- coding: utf-8 -*-
# Copyright 2006 Joe Wreschnig
# 2014 Christoph Reiter
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) ... | 4,426 | Python | .py | 107 | 32.850467 | 78 | 0.622404 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,494 | oggtheora.py | rembo10_headphones/lib/mutagen/oggtheora.py | # -*- coding: utf-8 -*-
# Copyright 2006 Joe Wreschnig
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
"""Read and wr... | 5,489 | Python | .py | 138 | 31.978261 | 77 | 0.632372 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,495 | _vorbis.py | rembo10_headphones/lib/mutagen/_vorbis.py | # -*- coding: utf-8 -*-
# Copyright (C) 2005-2006 Joe Wreschnig
# 2013 Christoph Reiter
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or... | 9,496 | Python | .py | 232 | 30.810345 | 77 | 0.585111 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,496 | musepack.py | rembo10_headphones/lib/mutagen/musepack.py | # -*- coding: utf-8 -*-
# Copyright (C) 2006 Lukas Lalinsky
# Copyright (C) 2012 Christoph Reiter
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at yo... | 9,845 | Python | .py | 231 | 32.874459 | 79 | 0.595373 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,497 | oggspeex.py | rembo10_headphones/lib/mutagen/oggspeex.py | # -*- coding: utf-8 -*-
# Copyright 2006 Joe Wreschnig
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
"""Read and wr... | 5,235 | Python | .py | 131 | 32.969466 | 77 | 0.658431 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,498 | monkeysaudio.py | rembo10_headphones/lib/mutagen/monkeysaudio.py | # -*- coding: utf-8 -*-
# Copyright (C) 2006 Lukas Lalinsky
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
"""Monke... | 3,352 | Python | .py | 78 | 34.551282 | 79 | 0.627499 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
8,499 | trueaudio.py | rembo10_headphones/lib/mutagen/trueaudio.py | # -*- coding: utf-8 -*-
# Copyright (C) 2006 Joe Wreschnig
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
"""True A... | 2,594 | Python | .py | 70 | 31.442857 | 73 | 0.683915 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |