repo
stringlengths
7
90
file_url
stringlengths
81
315
file_path
stringlengths
4
228
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:38:15
2026-01-05 02:33:18
truncated
bool
2 classes
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/utils/hashes.py
venv/Lib/site-packages/pip/_internal/utils/hashes.py
import hashlib from typing import TYPE_CHECKING, BinaryIO, Dict, Iterable, List, NoReturn, Optional from pip._internal.exceptions import HashMismatch, HashMissing, InstallationError from pip._internal.utils.misc import read_chunks if TYPE_CHECKING: from hashlib import _Hash # The recommended hash algo of the mo...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/utils/unpacking.py
venv/Lib/site-packages/pip/_internal/utils/unpacking.py
"""Utilities related archives. """ import logging import os import shutil import stat import sys import tarfile import zipfile from typing import Iterable, List, Optional from zipfile import ZipInfo from pip._internal.exceptions import InstallationError from pip._internal.utils.filetypes import ( BZ2_EXTENSIONS, ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/utils/deprecation.py
venv/Lib/site-packages/pip/_internal/utils/deprecation.py
""" A module that implements tooling to enable easy warnings about deprecations. """ import logging import warnings from typing import Any, Optional, TextIO, Type, Union from pip._vendor.packaging.version import parse from pip import __version__ as current_version # NOTE: tests patch this name. DEPRECATION_MSG_PRE...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/utils/setuptools_build.py
venv/Lib/site-packages/pip/_internal/utils/setuptools_build.py
import sys import textwrap from typing import List, Optional, Sequence # Shim to wrap setup.py invocation with setuptools # Note that __file__ is handled via two {!r} *and* %r, to ensure that paths on # Windows are correctly handled (it should be "C:\\Users" not "C:\Users"). _SETUPTOOLS_SHIM = textwrap.dedent( """...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/utils/egg_link.py
venv/Lib/site-packages/pip/_internal/utils/egg_link.py
import os import re import sys from typing import List, Optional from pip._internal.locations import site_packages, user_site from pip._internal.utils.virtualenv import ( running_under_virtualenv, virtualenv_no_global, ) __all__ = [ "egg_link_path_from_sys_path", "egg_link_path_from_location", ] def...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/utils/misc.py
venv/Lib/site-packages/pip/_internal/utils/misc.py
import errno import getpass import hashlib import logging import os import posixpath import shutil import stat import sys import sysconfig import urllib.parse from dataclasses import dataclass from functools import partial from io import StringIO from itertools import filterfalse, tee, zip_longest from pathlib import P...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/utils/logging.py
venv/Lib/site-packages/pip/_internal/utils/logging.py
import contextlib import errno import logging import logging.handlers import os import sys import threading from dataclasses import dataclass from io import TextIOWrapper from logging import Filter from typing import Any, ClassVar, Generator, List, Optional, TextIO, Type from pip._vendor.rich.console import ( Cons...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/utils/virtualenv.py
venv/Lib/site-packages/pip/_internal/utils/virtualenv.py
import logging import os import re import site import sys from typing import List, Optional logger = logging.getLogger(__name__) _INCLUDE_SYSTEM_SITE_PACKAGES_REGEX = re.compile( r"include-system-site-packages\s*=\s*(?P<value>true|false)" ) def _running_under_venv() -> bool: """Checks if sys.base_prefix and ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/utils/_log.py
venv/Lib/site-packages/pip/_internal/utils/_log.py
"""Customize logging Defines custom logger class for the `logger.verbose(...)` method. init_logging() must be called before any other modules that call logging.getLogger. """ import logging from typing import Any, cast # custom log level for `--verbose` output # between DEBUG and INFO VERBOSE = 15 class VerboseLo...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/utils/encoding.py
venv/Lib/site-packages/pip/_internal/utils/encoding.py
import codecs import locale import re import sys from typing import List, Tuple BOMS: List[Tuple[bytes, str]] = [ (codecs.BOM_UTF8, "utf-8"), (codecs.BOM_UTF16, "utf-16"), (codecs.BOM_UTF16_BE, "utf-16-be"), (codecs.BOM_UTF16_LE, "utf-16-le"), (codecs.BOM_UTF32, "utf-32"), (codecs.BOM_UTF32_BE,...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/utils/retry.py
venv/Lib/site-packages/pip/_internal/utils/retry.py
import functools from time import perf_counter, sleep from typing import Callable, TypeVar from pip._vendor.typing_extensions import ParamSpec T = TypeVar("T") P = ParamSpec("P") def retry( wait: float, stop_after_delay: float ) -> Callable[[Callable[P, T]], Callable[P, T]]: """Decorator to automatically re...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/utils/__init__.py
venv/Lib/site-packages/pip/_internal/utils/__init__.py
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/utils/direct_url_helpers.py
venv/Lib/site-packages/pip/_internal/utils/direct_url_helpers.py
from typing import Optional from pip._internal.models.direct_url import ArchiveInfo, DirectUrl, DirInfo, VcsInfo from pip._internal.models.link import Link from pip._internal.utils.urls import path_to_url from pip._internal.vcs import vcs def direct_url_as_pep440_direct_reference(direct_url: DirectUrl, name: str) ->...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/utils/compatibility_tags.py
venv/Lib/site-packages/pip/_internal/utils/compatibility_tags.py
"""Generate and work with PEP 425 Compatibility Tags. """ import re from typing import List, Optional, Tuple from pip._vendor.packaging.tags import ( PythonVersion, Tag, compatible_tags, cpython_tags, generic_tags, interpreter_name, interpreter_version, mac_platforms, ) _osx_arch_pat ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/utils/filetypes.py
venv/Lib/site-packages/pip/_internal/utils/filetypes.py
"""Filetype information. """ from typing import Tuple from pip._internal.utils.misc import splitext WHEEL_EXTENSION = ".whl" BZ2_EXTENSIONS: Tuple[str, ...] = (".tar.bz2", ".tbz") XZ_EXTENSIONS: Tuple[str, ...] = ( ".tar.xz", ".txz", ".tlz", ".tar.lz", ".tar.lzma", ) ZIP_EXTENSIONS: Tuple[str, .....
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/utils/_jaraco_text.py
venv/Lib/site-packages/pip/_internal/utils/_jaraco_text.py
"""Functions brought over from jaraco.text. These functions are not supposed to be used within `pip._internal`. These are helper functions brought over from `jaraco.text` to enable vendoring newer copies of `pkg_resources` without having to vendor `jaraco.text` and its entire dependency cone; something that our vendor...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/utils/urls.py
venv/Lib/site-packages/pip/_internal/utils/urls.py
import os import string import urllib.parse import urllib.request from .compat import WINDOWS def path_to_url(path: str) -> str: """ Convert a path to a file: URL. The path will be made absolute and have quoted path parts. """ path = os.path.normpath(os.path.abspath(path)) url = urllib.parse...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/operations/check.py
venv/Lib/site-packages/pip/_internal/operations/check.py
"""Validation of dependencies of packages """ import logging from contextlib import suppress from email.parser import Parser from functools import reduce from typing import ( Callable, Dict, FrozenSet, Generator, Iterable, List, NamedTuple, Optional, Set, Tuple, ) from pip._ven...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/operations/prepare.py
venv/Lib/site-packages/pip/_internal/operations/prepare.py
"""Prepares a distribution for installation """ # The following comment should be removed at some point in the future. # mypy: strict-optional=False import mimetypes import os import shutil from dataclasses import dataclass from pathlib import Path from typing import Dict, Iterable, List, Optional from pip._vendor.p...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/operations/__init__.py
venv/Lib/site-packages/pip/_internal/operations/__init__.py
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/operations/freeze.py
venv/Lib/site-packages/pip/_internal/operations/freeze.py
import collections import logging import os from typing import Container, Dict, Generator, Iterable, List, NamedTuple, Optional, Set from pip._vendor.packaging.utils import canonicalize_name from pip._vendor.packaging.version import InvalidVersion from pip._internal.exceptions import BadCommand, InstallationError fro...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/operations/build/build_tracker.py
venv/Lib/site-packages/pip/_internal/operations/build/build_tracker.py
import contextlib import hashlib import logging import os from types import TracebackType from typing import Dict, Generator, Optional, Type, Union from pip._internal.req.req_install import InstallRequirement from pip._internal.utils.temp_dir import TempDirectory logger = logging.getLogger(__name__) @contextlib.con...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/operations/build/wheel.py
venv/Lib/site-packages/pip/_internal/operations/build/wheel.py
import logging import os from typing import Optional from pip._vendor.pyproject_hooks import BuildBackendHookCaller from pip._internal.utils.subprocess import runner_with_spinner_message logger = logging.getLogger(__name__) def build_wheel_pep517( name: str, backend: BuildBackendHookCaller, metadata_di...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/operations/build/metadata_legacy.py
venv/Lib/site-packages/pip/_internal/operations/build/metadata_legacy.py
"""Metadata generation logic for legacy source distributions. """ import logging import os from pip._internal.build_env import BuildEnvironment from pip._internal.cli.spinners import open_spinner from pip._internal.exceptions import ( InstallationError, InstallationSubprocessError, MetadataGenerationFaile...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/operations/build/metadata.py
venv/Lib/site-packages/pip/_internal/operations/build/metadata.py
"""Metadata generation logic for source distributions. """ import os from pip._vendor.pyproject_hooks import BuildBackendHookCaller from pip._internal.build_env import BuildEnvironment from pip._internal.exceptions import ( InstallationSubprocessError, MetadataGenerationFailed, ) from pip._internal.utils.sub...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/operations/build/wheel_editable.py
venv/Lib/site-packages/pip/_internal/operations/build/wheel_editable.py
import logging import os from typing import Optional from pip._vendor.pyproject_hooks import BuildBackendHookCaller, HookMissing from pip._internal.utils.subprocess import runner_with_spinner_message logger = logging.getLogger(__name__) def build_wheel_editable( name: str, backend: BuildBackendHookCaller, ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/operations/build/__init__.py
venv/Lib/site-packages/pip/_internal/operations/build/__init__.py
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/operations/build/wheel_legacy.py
venv/Lib/site-packages/pip/_internal/operations/build/wheel_legacy.py
import logging import os.path from typing import List, Optional from pip._internal.cli.spinners import open_spinner from pip._internal.utils.setuptools_build import make_setuptools_bdist_wheel_args from pip._internal.utils.subprocess import call_subprocess, format_command_args logger = logging.getLogger(__name__) d...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/operations/build/metadata_editable.py
venv/Lib/site-packages/pip/_internal/operations/build/metadata_editable.py
"""Metadata generation logic for source distributions. """ import os from pip._vendor.pyproject_hooks import BuildBackendHookCaller from pip._internal.build_env import BuildEnvironment from pip._internal.exceptions import ( InstallationSubprocessError, MetadataGenerationFailed, ) from pip._internal.utils.sub...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/operations/install/editable_legacy.py
venv/Lib/site-packages/pip/_internal/operations/install/editable_legacy.py
"""Legacy editable installation process, i.e. `setup.py develop`. """ import logging from typing import Optional, Sequence from pip._internal.build_env import BuildEnvironment from pip._internal.utils.logging import indent_log from pip._internal.utils.setuptools_build import make_setuptools_develop_args from pip._int...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/operations/install/wheel.py
venv/Lib/site-packages/pip/_internal/operations/install/wheel.py
"""Support for installing and building the "wheel" binary package format. """ import collections import compileall import contextlib import csv import importlib import logging import os.path import re import shutil import sys import warnings from base64 import urlsafe_b64encode from email.message import Message from i...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/operations/install/__init__.py
venv/Lib/site-packages/pip/_internal/operations/install/__init__.py
"""For modules related to installing packages. """
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/locations/_distutils.py
venv/Lib/site-packages/pip/_internal/locations/_distutils.py
"""Locations where we look for configs, install stuff, etc""" # The following comment should be removed at some point in the future. # mypy: strict-optional=False # If pip's going to use distutils, it should not be using the copy that setuptools # might have injected into the environment. This is done by removing the...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/locations/_sysconfig.py
venv/Lib/site-packages/pip/_internal/locations/_sysconfig.py
import logging import os import sys import sysconfig import typing from pip._internal.exceptions import InvalidSchemeCombination, UserInstallationInvalid from pip._internal.models.scheme import SCHEME_KEYS, Scheme from pip._internal.utils.virtualenv import running_under_virtualenv from .base import change_root, get_m...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/locations/__init__.py
venv/Lib/site-packages/pip/_internal/locations/__init__.py
import functools import logging import os import pathlib import sys import sysconfig from typing import Any, Dict, Generator, Optional, Tuple from pip._internal.models.scheme import SCHEME_KEYS, Scheme from pip._internal.utils.compat import WINDOWS from pip._internal.utils.deprecation import deprecated from pip._inter...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/locations/base.py
venv/Lib/site-packages/pip/_internal/locations/base.py
import functools import os import site import sys import sysconfig import typing from pip._internal.exceptions import InstallationError from pip._internal.utils import appdirs from pip._internal.utils.virtualenv import running_under_virtualenv # Application Directories USER_CACHE_DIR = appdirs.user_cache_dir("pip") ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/network/utils.py
venv/Lib/site-packages/pip/_internal/network/utils.py
from typing import Dict, Generator from pip._vendor.requests.models import Response from pip._internal.exceptions import NetworkConnectionError # The following comments and HTTP headers were originally added by # Donald Stufft in git commit 22c562429a61bb77172039e480873fb239dd8c03. # # We use Accept-Encoding: identi...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/network/download.py
venv/Lib/site-packages/pip/_internal/network/download.py
"""Download files with progress indicators. """ import email.message import logging import mimetypes import os from typing import Iterable, Optional, Tuple from pip._vendor.requests.models import Response from pip._internal.cli.progress_bars import get_download_progress_renderer from pip._internal.exceptions import ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/network/__init__.py
venv/Lib/site-packages/pip/_internal/network/__init__.py
"""Contains purely network-related utilities. """
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/network/lazy_wheel.py
venv/Lib/site-packages/pip/_internal/network/lazy_wheel.py
"""Lazy ZIP over HTTP""" __all__ = ["HTTPRangeRequestUnsupported", "dist_from_wheel_url"] from bisect import bisect_left, bisect_right from contextlib import contextmanager from tempfile import NamedTemporaryFile from typing import Any, Dict, Generator, List, Optional, Tuple from zipfile import BadZipFile, ZipFile f...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/network/xmlrpc.py
venv/Lib/site-packages/pip/_internal/network/xmlrpc.py
"""xmlrpclib.Transport implementation """ import logging import urllib.parse import xmlrpc.client from typing import TYPE_CHECKING, Tuple from pip._internal.exceptions import NetworkConnectionError from pip._internal.network.session import PipSession from pip._internal.network.utils import raise_for_status if TYPE_C...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/network/session.py
venv/Lib/site-packages/pip/_internal/network/session.py
"""PipSession and supporting code, containing all pip-specific network request configuration and behavior. """ import email.utils import functools import io import ipaddress import json import logging import mimetypes import os import platform import shutil import subprocess import sys import urllib.parse import warni...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/network/cache.py
venv/Lib/site-packages/pip/_internal/network/cache.py
"""HTTP cache implementation. """ import os from contextlib import contextmanager from datetime import datetime from typing import BinaryIO, Generator, Optional, Union from pip._vendor.cachecontrol.cache import SeparateBodyBaseCache from pip._vendor.cachecontrol.caches import SeparateBodyFileCache from pip._vendor.re...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/network/auth.py
venv/Lib/site-packages/pip/_internal/network/auth.py
"""Network Authentication Helpers Contains interface (MultiDomainBasicAuth) and associated glue code for providing credentials in the context of network requests. """ import logging import os import shutil import subprocess import sysconfig import typing import urllib.parse from abc import ABC, abstractmethod from fu...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/cli/parser.py
venv/Lib/site-packages/pip/_internal/cli/parser.py
"""Base option parser setup""" import logging import optparse import shutil import sys import textwrap from contextlib import suppress from typing import Any, Dict, Generator, List, Optional, Tuple from pip._internal.cli.status_codes import UNKNOWN_ERROR from pip._internal.configuration import Configuration, Configur...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/cli/autocompletion.py
venv/Lib/site-packages/pip/_internal/cli/autocompletion.py
"""Logic that powers autocompletion installed by ``pip completion``. """ import optparse import os import sys from itertools import chain from typing import Any, Iterable, List, Optional from pip._internal.cli.main_parser import create_main_parser from pip._internal.commands import commands_dict, create_command from ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/cli/main_parser.py
venv/Lib/site-packages/pip/_internal/cli/main_parser.py
"""A single place for constructing and exposing the main parser """ import os import subprocess import sys from typing import List, Optional, Tuple from pip._internal.build_env import get_runnable_pip from pip._internal.cli import cmdoptions from pip._internal.cli.parser import ConfigOptionParser, UpdatingDefaultsHel...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/cli/main.py
venv/Lib/site-packages/pip/_internal/cli/main.py
"""Primary application entrypoint. """ import locale import logging import os import sys import warnings from typing import List, Optional from pip._internal.cli.autocompletion import autocomplete from pip._internal.cli.main_parser import parse_command from pip._internal.commands import create_command from pip._inter...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/cli/command_context.py
venv/Lib/site-packages/pip/_internal/cli/command_context.py
from contextlib import ExitStack, contextmanager from typing import ContextManager, Generator, TypeVar _T = TypeVar("_T", covariant=True) class CommandContextMixIn: def __init__(self) -> None: super().__init__() self._in_main_context = False self._main_context = ExitStack() @contextm...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/cli/base_command.py
venv/Lib/site-packages/pip/_internal/cli/base_command.py
"""Base Command class, and related routines""" import logging import logging.config import optparse import os import sys import traceback from optparse import Values from typing import List, Optional, Tuple from pip._vendor.rich import reconfigure from pip._vendor.rich import traceback as rich_traceback from pip._in...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/cli/progress_bars.py
venv/Lib/site-packages/pip/_internal/cli/progress_bars.py
import functools import sys from typing import Callable, Generator, Iterable, Iterator, Optional, Tuple from pip._vendor.rich.progress import ( BarColumn, DownloadColumn, FileSizeColumn, Progress, ProgressColumn, SpinnerColumn, TextColumn, TimeElapsedColumn, TimeRemainingColumn, ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/cli/__init__.py
venv/Lib/site-packages/pip/_internal/cli/__init__.py
"""Subpackage containing all of pip's command line interface related code """ # This file intentionally does not import submodules
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/cli/cmdoptions.py
venv/Lib/site-packages/pip/_internal/cli/cmdoptions.py
""" shared options and groups The principle here is to define options once, but *not* instantiate them globally. One reason being that options with action='append' can carry state between parses. pip parses general options twice internally, and shouldn't pass on state. To be consistent, all options will follow this de...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/cli/req_command.py
venv/Lib/site-packages/pip/_internal/cli/req_command.py
"""Contains the RequirementCommand base class. This class is in a separate module so the commands that do not always need PackageFinder capability don't unnecessarily import the PackageFinder machinery and all its vendored dependencies, etc. """ import logging from functools import partial from optparse import Values...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/cli/spinners.py
venv/Lib/site-packages/pip/_internal/cli/spinners.py
import contextlib import itertools import logging import sys import time from typing import IO, Generator, Optional from pip._internal.utils.compat import WINDOWS from pip._internal.utils.logging import get_indentation logger = logging.getLogger(__name__) class SpinnerInterface: def spin(self) -> None: ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/cli/index_command.py
venv/Lib/site-packages/pip/_internal/cli/index_command.py
""" Contains command classes which may interact with an index / the network. Unlike its sister module, req_command, this module still uses lazy imports so commands which don't always hit the network (e.g. list w/o --outdated or --uptodate) don't need waste time importing PipSession and friends. """ import logging imp...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/cli/status_codes.py
venv/Lib/site-packages/pip/_internal/cli/status_codes.py
SUCCESS = 0 ERROR = 1 UNKNOWN_ERROR = 2 VIRTUALENV_NOT_FOUND = 3 PREVIOUS_BUILD_DIR_ERROR = 4 NO_MATCHES_FOUND = 23
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/resolution/__init__.py
venv/Lib/site-packages/pip/_internal/resolution/__init__.py
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/resolution/base.py
venv/Lib/site-packages/pip/_internal/resolution/base.py
from typing import Callable, List, Optional from pip._internal.req.req_install import InstallRequirement from pip._internal.req.req_set import RequirementSet InstallRequirementProvider = Callable[ [str, Optional[InstallRequirement]], InstallRequirement ] class BaseResolver: def resolve( self, root_r...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/resolution/legacy/resolver.py
venv/Lib/site-packages/pip/_internal/resolution/legacy/resolver.py
"""Dependency Resolution The dependency resolution in pip is performed as follows: for top-level requirements: a. only one spec allowed per project, regardless of conflicts or not. otherwise a "double requirement" exception is raised b. they override sub-dependency requirements. for sub-dependencies ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/resolution/legacy/__init__.py
venv/Lib/site-packages/pip/_internal/resolution/legacy/__init__.py
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/resolution/resolvelib/resolver.py
venv/Lib/site-packages/pip/_internal/resolution/resolvelib/resolver.py
import contextlib import functools import logging import os from typing import TYPE_CHECKING, Dict, List, Optional, Set, Tuple, cast from pip._vendor.packaging.utils import canonicalize_name from pip._vendor.resolvelib import BaseReporter, ResolutionImpossible from pip._vendor.resolvelib import Resolver as RLResolver ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/resolution/resolvelib/reporter.py
venv/Lib/site-packages/pip/_internal/resolution/resolvelib/reporter.py
from collections import defaultdict from logging import getLogger from typing import Any, DefaultDict from pip._vendor.resolvelib.reporters import BaseReporter from .base import Candidate, Requirement logger = getLogger(__name__) class PipReporter(BaseReporter): def __init__(self) -> None: self.reject_...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/resolution/resolvelib/requirements.py
venv/Lib/site-packages/pip/_internal/resolution/resolvelib/requirements.py
from typing import Any, Optional from pip._vendor.packaging.specifiers import SpecifierSet from pip._vendor.packaging.utils import NormalizedName, canonicalize_name from pip._internal.req.constructors import install_req_drop_extras from pip._internal.req.req_install import InstallRequirement from .base import Candid...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/resolution/resolvelib/factory.py
venv/Lib/site-packages/pip/_internal/resolution/resolvelib/factory.py
import contextlib import functools import logging from typing import ( TYPE_CHECKING, Callable, Dict, FrozenSet, Iterable, Iterator, List, Mapping, NamedTuple, Optional, Protocol, Sequence, Set, Tuple, TypeVar, cast, ) from pip._vendor.packaging.requireme...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/resolution/resolvelib/__init__.py
venv/Lib/site-packages/pip/_internal/resolution/resolvelib/__init__.py
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/resolution/resolvelib/candidates.py
venv/Lib/site-packages/pip/_internal/resolution/resolvelib/candidates.py
import logging import sys from typing import TYPE_CHECKING, Any, FrozenSet, Iterable, Optional, Tuple, Union, cast from pip._vendor.packaging.requirements import InvalidRequirement from pip._vendor.packaging.utils import NormalizedName, canonicalize_name from pip._vendor.packaging.version import Version from pip._int...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/resolution/resolvelib/base.py
venv/Lib/site-packages/pip/_internal/resolution/resolvelib/base.py
from dataclasses import dataclass from typing import FrozenSet, Iterable, Optional, Tuple from pip._vendor.packaging.specifiers import SpecifierSet from pip._vendor.packaging.utils import NormalizedName from pip._vendor.packaging.version import Version from pip._internal.models.link import Link, links_equivalent from...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py
venv/Lib/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py
"""Utilities to lazily create and visit candidates found. Creating and visiting a candidate is a *very* costly operation. It involves fetching, extracting, potentially building modules from source, and verifying distribution metadata. It is therefore crucial for performance to keep everything here lazy all the way dow...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_internal/resolution/resolvelib/provider.py
venv/Lib/site-packages/pip/_internal/resolution/resolvelib/provider.py
import collections import math from functools import lru_cache from typing import ( TYPE_CHECKING, Dict, Iterable, Iterator, Mapping, Sequence, TypeVar, Union, ) from pip._vendor.resolvelib.providers import AbstractProvider from .base import Candidate, Constraint, Requirement from .can...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Weather Scrapper/weather.py
Weather Scrapper/weather.py
# TODO - refactor & clean code import csv import time from datetime import datetime from datetime import date from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.chrome.options import Options from...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Personal-Expense-Tracker/expense_tracker.py
Personal-Expense-Tracker/expense_tracker.py
import datetime def add_expense(expenses): amount = float(input("Enter the expense amount: ")) category = input("Category (food, travel, shopping, bills, etc.): ") date_str = input("Date (YYYY-MM-DD): ") try: date = datetime.datetime.strptime(date_str, "%Y-%m-%d").date() except ValueError:...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Triplets with zero sum/find_Triplets_with_zero_sum.py
Triplets with zero sum/find_Triplets_with_zero_sum.py
""" Author : Mohit Kumar Python program to find triplets in a given array whose sum is zero """ # function to print triplets with 0 sum def find_Triplets_with_zero_sum(arr, num): """find triplets in a given array whose sum is zero Parameteres : arr : input array num = size of input array ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/bank_managment_system/QTFrontend.py
bank_managment_system/QTFrontend.py
from PyQt5 import QtCore, QtGui, QtWidgets import sys import backend backend.connect_database() employee_data = None # Page Constants (for reference) HOME_PAGE = 0 ADMIN_PAGE = 1 EMPLOYEE_PAGE = 2 ADMIN_MENU_PAGE = 3 ADD_EMPLOYEE_PAGE = 4 UPDATE_EMPLOYEE_PAGE1 = 5 UPDATE_EMPLOYEE_PAGE2 = 6 EMPLOYEE_LIST_PAGE = 7 ADMI...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
true
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/bank_managment_system/backend.py
bank_managment_system/backend.py
import sqlite3 import os class DatabaseManager: def __init__(self, db_name="bankmanaging.db"): self.db_path = os.path.join(os.path.dirname(__file__), db_name) self.conn = sqlite3.connect(self.db_path, check_same_thread=False) self.cur = self.conn.cursor() self._setup_tables() ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/bank_managment_system/frontend.py
bank_managment_system/frontend.py
# importing all modules import tkinter.messagebox from tkinter import * import backend backend.connect_database() # A function for check that acc_no is integer or not def check_string_in_account_no(check_acc_no): r = check_acc_no.isdigit() return r # all buttons of page2 def create(): def create_custo...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
true
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/async_downloader/async_downloader.py
async_downloader/async_downloader.py
""" It's example of usage asyncio+aiohttp to downloading. You should install aiohttp for using: (You can use virtualenv to testing) pip install -r /path/to/requirements.txt """ import asyncio from os.path import basename import aiohttp def download(ways): if not ways: print("Ways list is empty. Download...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/floodfill/floodfill.py
floodfill/floodfill.py
import pygame """ Visualises how a floodfill algorithm runs and work using pygame Pass two int arguments for the window width and the window height `python floodfill.py <width> <height>` """ class FloodFill: def __init__(self, window_width, window_height): self.window_width = int(window_width) se...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Droplistmenu/GamesCalender.py
Droplistmenu/GamesCalender.py
from tkinter import * from tkcalendar import Calendar import tkinter as tk window = tk.Tk() # Adjust size window.geometry("600x500") gameList = ["Game List:"] # Change the label text def show(): game = selected1.get() + " vs " + selected2.get() + " on " + cal.get_date() gameList.append(game) # print(g...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/XORcipher/test_XOR_cipher.py
XORcipher/test_XOR_cipher.py
# # Test XORCipher # ************** # # Test automation software created by Kevin M. Thomas 09/29/19. # Test automation software Modified by Kevin M. Thomas 09/29/19. # CC BY 4.0 # # Test XORCipher is the test automation suite for the XORCipher created by # Christian Bender. # Usage: python test_XOR_cipher.py # impor...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/XORcipher/XOR_cipher.py
XORcipher/XOR_cipher.py
""" author: Christian Bender date: 21.12.2017 class: XORCipher This class implements the XOR-cipher algorithm and provides some useful methods for encrypting and decrypting strings and files. Overview about methods - encrypt : list of char - decrypt : list of char - encrypt_string : str - decrypt_string : str - encr...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Patterns/pattern6.py
Patterns/pattern6.py
# Python code to print the following alphabet pattern # A # B B # C C C # D D D D # E E E E E def alphabetpattern(n): num = 65 for i in range(0, n): for j in range(0, i + 1): ch = chr(num) print(ch, end=" ") num = num + 1 print("\r") a = 5 alphabetpattern(a)
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Patterns/pattern2.py
Patterns/pattern2.py
# pattern # $$$$$$$$$$$ # $$$$$$$$$ # $$$$$$$ # $$$$$ # $$$ # $ def main(): lines = int(input("Enter no.of lines: ")) pattern(lines) def pattern(lines): flag = lines for i in range(lines): print(" " * (i), "$" * (2 * flag - 1)) flag -= 1 if __name__ == "__main__": mai...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Patterns/half triangle pattern.py
Patterns/half triangle pattern.py
# (upper half - repeat) # 1 # 22 # 333 # (upper half - incremental) # 1 # 12 # 123 # (lower half - incremental) # 123 # 12 # 1 # (lower half - repeat) # 333 # 22 # 1 def main(): lines = int(input("Enter no.of lines: ")) pattern = input("i: increment or r:repeat pattern: ").lower() part = input("u: uppe...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Patterns/pattern5.py
Patterns/pattern5.py
# pattern Reverse piramid of numbers # 1 # 21 # 321 # 4321 # 54321 def main(): lines = int(input("Enter the number of lines: ")) pattern(lines) def pattern(rows): const = "" for i in range(1, rows + 1): const = str(i) + const print(const) if __name__ == "__main__": main()
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/Patterns/patterns.py
Patterns/patterns.py
# Lets say we want to print a combination of stars as shown below. # * # * * # * * * # * * * * # * * * * * # Let's say we want to print pattern which is opposite of above: # * * * * * # * * * * # * * * # * * # * def main(): lines = int(input("Enter no.of lines: ")) pattern(lines) ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/LinkedLists all Types/singly_linked_list.py
LinkedLists all Types/singly_linked_list.py
"""Contains Most of the Singly Linked List functions.\n 'variable_name' = singly_linked_list.LinkedList() to use this an external module.\n 'variable_name'.insert_front('element') \t,'variable_name'.insert_back('element'),\n 'variable_name'.pop_front() are some of its functions.\n To print all of its Functions use prin...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/LinkedLists all Types/circular_linked_list.py
LinkedLists all Types/circular_linked_list.py
"""Author - Mugen https://github.com/Mugendesu""" class Node: def __init__(self, data, next=None): self.data = data self.next = next class CircularLinkedList: def __init__(self): self.head = self.tail = None self.length = 0 def insert_at_beginning(self, data): no...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/LinkedLists all Types/doubly_linked_list.py
LinkedLists all Types/doubly_linked_list.py
"""Contains Most of the Doubly Linked List functions.\n 'variable_name' = doubly_linked_list.DoublyLinkedList() to use this an external module.\n 'variable_name'.insert_front('element') \t,'variable_name'.insert_back('element'),\n 'variable_name'.pop_front() are some of its functions.\n To print all of its Functions us...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/VoiceAssistant/Project_Basic_struct/VoiceAssistant_main.py
VoiceAssistant/Project_Basic_struct/VoiceAssistant_main.py
from speakListen import * from websiteWork import * from textRead import * from dictator import * from menu import * from speechtotext import * from TextTospeech import * def main(): start = 0 end = 0 if start == 0: print('\nSay "Hello Python" to activate the Voice Assistant!') start += 1 ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/VoiceAssistant/Project_Basic_struct/dictator.py
VoiceAssistant/Project_Basic_struct/dictator.py
# from speakListen import hear # from speakListen import long_hear from speakListen import * from colorama import Fore def big_text(): print( "By default, I will record your voice for 60 seconds.\nDo you want to change this default timing?" ) speak( "By default, I will record your voice f...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/VoiceAssistant/Project_Basic_struct/textRead.py
VoiceAssistant/Project_Basic_struct/textRead.py
from speakListen import hear from speakListen import speak import docx import fitz import time from rich.console import Console # pip3 install Rich from rich.table import Table from colorama import Fore def ms_word(): """[Print and speak out a ms_word docx file as specified in the path]""" # TODO : Take loca...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/VoiceAssistant/Project_Basic_struct/speechtotext.py
VoiceAssistant/Project_Basic_struct/speechtotext.py
import speech_recognition as sr # initialize the recognizer r = sr.Recognizer() def stt(): with sr.Microphone() as source: # read the audio data from the default microphone audio_data = r.record(source, duration=5) print("Recognizing...") # convert speech to text text = r....
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/VoiceAssistant/Project_Basic_struct/speakListen.py
VoiceAssistant/Project_Basic_struct/speakListen.py
import time from colorama import Fore import speech_recognition as sr import pyttsx3 import datetime from rich.progress import Progress python = pyttsx3.init("sapi5") # name of the engine is set as Python voices = python.getProperty("voices") # print(voices) python.setProperty("voice", voices[1].id) python.setProper...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/VoiceAssistant/Project_Basic_struct/websiteWork.py
VoiceAssistant/Project_Basic_struct/websiteWork.py
from speakListen import hear from speakListen import speak """ 1. speakListen.speak(text) 2. speakListen.greet() 3. speakListen.hear() """ import wikipedia import webbrowser def google_search(): """[Goes to google and searches the website asked by the user]""" google_search_link = "https://www.googl...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/VoiceAssistant/Project_Basic_struct/TextTospeech.py
VoiceAssistant/Project_Basic_struct/TextTospeech.py
import win32com def tts(): audio = "speech.mp3" language = "en" sentence = input("Enter the text to be spoken :- ") speaker = win32com.client.Dispatch("SAPI.SpVoice") sp = speaker.Speak(sentence)
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/VoiceAssistant/Project_Basic_struct/menu.py
VoiceAssistant/Project_Basic_struct/menu.py
from rich.console import Console # pip3 install Rich from rich.table import Table from speakListen import * def print_menu(): """Display a table with list of tasks and their associated commands.""" speak("I can do the following") table = Table(title="\nI can do the following :- ", show_lines=True) t...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/PingPong/Slab.py
PingPong/Slab.py
import pygame pygame.init() class Slab: def __init__(self, win, size, pos, player, minPos, maxPos): self.win = win self.size = size self.pos = pos self.player = player # player = 1 or 2 self.minPos = minPos self.maxPos = maxPos def draw(self): pygame....
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/PingPong/main.py
PingPong/main.py
from Ball import Ball from Slab import Slab import pygame WIDTH = 600 HEIGHT = 600 BLACK = (0, 0, 0) WHITE = (255,) * 3 pygame.init() win = pygame.display.set_mode((WIDTH, HEIGHT)) print("Controls: W&S for player 1 and arrow up and down for player 2") ball = Ball([300, 300], [0.3, 0.1], win, 10, (0, 0), (600, 600))...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/PingPong/Ball.py
PingPong/Ball.py
import pygame pygame.init() class Ball: def __init__(self, pos, vel, win, rad, minCoord, maxCoord): self.pos = pos self.vel = vel self.win = win self.rad = rad self.minCoord = minCoord self.maxCoord = maxCoord def drawBall(self): pygame.draw.circle(sel...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false