repo_id stringlengths 6 101 | size int64 367 5.14M | file_path stringlengths 1 269 | content stringlengths 367 5.14M |
|---|---|---|---|
Yawan-Chaudhari/Cold_Email_Generator | 5,057 | myenv/Lib/site-packages/pip/_vendor/requests/__init__.py | # __
# /__) _ _ _ _ _/ _
# / ( (- (/ (/ (- _) / _)
# /
"""
Requests HTTP Library
~~~~~~~~~~~~~~~~~~~~~
Requests is an HTTP library, written in Python, for human beings.
Basic GET usage:
>>> import requests
>>> r = requests.get('https://www.python.org')
>>> r.status_code
200
>... |
Yawan-Chaudhari/Cold_Email_Generator | 1,495 | myenv/Lib/site-packages/pip/_vendor/requests/_internal_utils.py | """
requests._internal_utils
~~~~~~~~~~~~~~
Provides utility functions that are consumed internally by Requests
which depend on extremely few external helpers (such as compat)
"""
import re
from .compat import builtin_str
_VALID_HEADER_NAME_RE_BYTE = re.compile(rb"^[^:\s][^:\r\n]*$")
_VALID_HEADER_NAME_RE_STR = re.c... |
Yawan-Chaudhari/Cold_Email_Generator | 4,486 | myenv/Lib/site-packages/pip/_vendor/certifi/core.py | """
certifi.py
~~~~~~~~~~
This module returns the installation location of cacert.pem or its contents.
"""
import sys
import atexit
def exit_cacert_ctx() -> None:
_CACERT_CTX.__exit__(None, None, None) # type: ignore[union-attr]
if sys.version_info >= (3, 11):
from importlib.resources import as_file, file... |
Yawan-Chaudhari/Cold_Email_Generator | 6,691 | myenv/Lib/site-packages/pip/_vendor/urllib3/request.py | from __future__ import absolute_import
import sys
from .filepost import encode_multipart_formdata
from .packages import six
from .packages.six.moves.urllib.parse import urlencode
__all__ = ["RequestMethods"]
class RequestMethods(object):
"""
Convenience mixin for classes who implement a :meth:`urlopen` met... |
Yawan-Chaudhari/Cold_Email_Generator | 8,217 | myenv/Lib/site-packages/pip/_vendor/urllib3/exceptions.py | from __future__ import absolute_import
from .packages.six.moves.http_client import IncompleteRead as httplib_IncompleteRead
# Base Exceptions
class HTTPError(Exception):
"""Base exception used by this module."""
pass
class HTTPWarning(Warning):
"""Base warning used by this module."""
pass
clas... |
Yawan-Chaudhari/Cold_Email_Generator | 19,990 | myenv/Lib/site-packages/pip/_vendor/urllib3/poolmanager.py | from __future__ import absolute_import
import collections
import functools
import logging
from ._collections import HTTPHeaderDict, RecentlyUsedContainer
from .connectionpool import HTTPConnectionPool, HTTPSConnectionPool, port_by_scheme
from .exceptions import (
LocationValueError,
MaxRetryError,
ProxySc... |
Yawan-Chaudhari/Cold_Email_Generator | 30,641 | myenv/Lib/site-packages/pip/_vendor/urllib3/response.py | from __future__ import absolute_import
import io
import logging
import sys
import warnings
import zlib
from contextlib import contextmanager
from socket import error as SocketError
from socket import timeout as SocketTimeout
brotli = None
from . import util
from ._collections import HTTPHeaderDict
from .connection i... |
Yawan-Chaudhari/Cold_Email_Generator | 2,440 | myenv/Lib/site-packages/pip/_vendor/urllib3/filepost.py | from __future__ import absolute_import
import binascii
import codecs
import os
from io import BytesIO
from .fields import RequestField
from .packages import six
from .packages.six import b
writer = codecs.lookup("utf-8")[3]
def choose_boundary():
"""
Our embarrassingly-simple replacement for mimetools.choo... |
Yawan-Chaudhari/Cold_Email_Generator | 8,579 | myenv/Lib/site-packages/pip/_vendor/urllib3/fields.py | from __future__ import absolute_import
import email.utils
import mimetypes
import re
from .packages import six
def guess_content_type(filename, default="application/octet-stream"):
"""
Guess the "Content-Type" of a file.
:param filename:
The filename to guess the "Content-Type" of using :mod:`m... |
Yawan-Chaudhari/Cold_Email_Generator | 11,372 | myenv/Lib/site-packages/pip/_vendor/urllib3/_collections.py | from __future__ import absolute_import
try:
from collections.abc import Mapping, MutableMapping
except ImportError:
from collections import Mapping, MutableMapping
try:
from threading import RLock
except ImportError: # Platform-specific: No threads available
class RLock:
def __enter__(self):
... |
Yawan-Chaudhari/Cold_Email_Generator | 40,408 | myenv/Lib/site-packages/pip/_vendor/urllib3/connectionpool.py | from __future__ import absolute_import
import errno
import logging
import re
import socket
import sys
import warnings
from socket import error as SocketError
from socket import timeout as SocketTimeout
from ._collections import HTTPHeaderDict
from .connection import (
BaseSSLError,
BrokenPipeError,
DummyC... |
Yawan-Chaudhari/Cold_Email_Generator | 3,333 | myenv/Lib/site-packages/pip/_vendor/urllib3/__init__.py | """
Python HTTP library with thread-safe connection pooling, file post support, user friendly, and more
"""
from __future__ import absolute_import
# Set default logging handler to avoid "No handler found" warnings.
import logging
import warnings
from logging import NullHandler
from . import exceptions
from ._version ... |
Yawan-Chaudhari/Cold_Email_Generator | 20,314 | myenv/Lib/site-packages/pip/_vendor/urllib3/connection.py | from __future__ import absolute_import
import datetime
import logging
import os
import re
import socket
import warnings
from socket import error as SocketError
from socket import timeout as SocketTimeout
from .packages import six
from .packages.six.moves.http_client import HTTPConnection as _HTTPConnection
from .pack... |
Yawan-Chaudhari/Cold_Email_Generator | 8,996 | myenv/Lib/site-packages/pip/_vendor/platformdirs/api.py | """Base API."""
from __future__ import annotations
import os
from abc import ABC, abstractmethod
from pathlib import Path
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from typing import Iterator, Literal
class PlatformDirsABC(ABC): # noqa: PLR0904
"""Abstract base class for platform directories."""
... |
Yawan-Chaudhari/Cold_Email_Generator | 10,643 | myenv/Lib/site-packages/pip/_vendor/platformdirs/unix.py | """Unix."""
from __future__ import annotations
import os
import sys
from configparser import ConfigParser
from pathlib import Path
from typing import Iterator, NoReturn
from .api import PlatformDirsABC
if sys.platform == "win32":
def getuid() -> NoReturn:
msg = "should only be used on Unix"
rai... |
Yawan-Chaudhari/Cold_Email_Generator | 10,125 | myenv/Lib/site-packages/pip/_vendor/platformdirs/windows.py | """Windows."""
from __future__ import annotations
import os
import sys
from functools import lru_cache
from typing import TYPE_CHECKING
from .api import PlatformDirsABC
if TYPE_CHECKING:
from collections.abc import Callable
class Windows(PlatformDirsABC):
"""
`MSDN on where to store app data files <ht... |
Yawan-Chaudhari/Cold_Email_Generator | 9,016 | myenv/Lib/site-packages/pip/_vendor/platformdirs/android.py | """Android."""
from __future__ import annotations
import os
import re
import sys
from functools import lru_cache
from typing import TYPE_CHECKING, cast
from .api import PlatformDirsABC
class Android(PlatformDirsABC):
"""
Follows the guidance `from here <https://android.stackexchange.com/a/216132>`_.
M... |
Yawan-Chaudhari/Cold_Email_Generator | 5,580 | myenv/Lib/site-packages/pip/_vendor/platformdirs/macos.py | """macOS."""
from __future__ import annotations
import os.path
import sys
from .api import PlatformDirsABC
class MacOS(PlatformDirsABC):
"""
Platform directories for the macOS operating system.
Follows the guidance from
`Apple documentation <https://developer.apple.com/library/archive/documentatio... |
Yawan-Chaudhari/Cold_Email_Generator | 22,285 | myenv/Lib/site-packages/pip/_vendor/platformdirs/__init__.py | """
Utilities for determining application-specific dirs.
See <https://github.com/platformdirs/platformdirs> for details and usage.
"""
from __future__ import annotations
import os
import sys
from typing import TYPE_CHECKING
from .api import PlatformDirsABC
from .version import __version__
from .version import __ve... |
Yawan-Chaudhari/Cold_Email_Generator | 1,505 | myenv/Lib/site-packages/pip/_vendor/platformdirs/__main__.py | """Main entry point."""
from __future__ import annotations
from pip._vendor.platformdirs import PlatformDirs, __version__
PROPS = (
"user_data_dir",
"user_config_dir",
"user_cache_dir",
"user_state_dir",
"user_log_dir",
"user_documents_dir",
"user_downloads_dir",
"user_pictures_dir",
... |
Yawan-Chaudhari/Cold_Email_Generator | 5,406 | myenv/Lib/site-packages/pip/_vendor/cachecontrol/caches/file_cache.py | # SPDX-FileCopyrightText: 2015 Eric Larson
#
# SPDX-License-Identifier: Apache-2.0
from __future__ import annotations
import hashlib
import os
from textwrap import dedent
from typing import IO, TYPE_CHECKING, Union
from pathlib import Path
from pip._vendor.cachecontrol.cache import BaseCache, SeparateBodyBaseCache
fr... |
Yawan-Chaudhari/Cold_Email_Generator | 1,386 | myenv/Lib/site-packages/pip/_vendor/cachecontrol/caches/redis_cache.py | # SPDX-FileCopyrightText: 2015 Eric Larson
#
# SPDX-License-Identifier: Apache-2.0
from __future__ import annotations
from datetime import datetime, timezone
from typing import TYPE_CHECKING
from pip._vendor.cachecontrol.cache import BaseCache
if TYPE_CHECKING:
from redis import Redis
class RedisCache(BaseCac... |
Yawan-Chaudhari/Cold_Email_Generator | 10,927 | myenv/Lib/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py | """This is invoked in a subprocess to call the build backend hooks.
It expects:
- Command line args: hook_name, control_dir
- Environment variables:
PEP517_BUILD_BACKEND=entry.point:spec
PEP517_BACKEND_PATH=paths (separated with os.pathsep)
- control_dir/input.json:
- {"kwargs": {...}}
Results:
- contro... |
Yawan-Chaudhari/Cold_Email_Generator | 76,091 | myenv/Lib/site-packages/pip/_vendor/pygments/lexers/_mapping.py | # Automatically generated by scripts/gen_mapfiles.py.
# DO NOT EDIT BY HAND; run `tox -e mapfiles` instead.
LEXERS = {
'ABAPLexer': ('pip._vendor.pygments.lexers.business', 'ABAP', ('abap',), ('*.abap', '*.ABAP'), ('text/x-abap',)),
'AMDGPULexer': ('pip._vendor.pygments.lexers.amdgpu', 'AMDGPU', ('amdgpu',), (... |
Yawan-Chaudhari/Cold_Email_Generator | 12,115 | myenv/Lib/site-packages/pip/_vendor/pygments/lexers/__init__.py | """
pygments.lexers
~~~~~~~~~~~~~~~
Pygments lexers.
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
import sys
import types
import fnmatch
from os.path import basename
from pip._vendor.pygments.lexers._mapping import LEXER... |
Yawan-Chaudhari/Cold_Email_Generator | 53,687 | myenv/Lib/site-packages/pip/_vendor/pygments/lexers/python.py | """
pygments.lexers.python
~~~~~~~~~~~~~~~~~~~~~~
Lexers for Python and related languages.
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import keyword
from pip._vendor.pygments.lexer import DelegatingLexer, RegexLexer, include, \
... |
Yawan-Chaudhari/Cold_Email_Generator | 3,312 | myenv/Lib/site-packages/pip/_vendor/pygments/styles/_mapping.py | # Automatically generated by scripts/gen_mapfiles.py.
# DO NOT EDIT BY HAND; run `tox -e mapfiles` instead.
STYLES = {
'AbapStyle': ('pygments.styles.abap', 'abap', ()),
'AlgolStyle': ('pygments.styles.algol', 'algol', ()),
'Algol_NuStyle': ('pygments.styles.algol_nu', 'algol_nu', ()),
'ArduinoStyle': ... |
Yawan-Chaudhari/Cold_Email_Generator | 2,042 | myenv/Lib/site-packages/pip/_vendor/pygments/styles/__init__.py | """
pygments.styles
~~~~~~~~~~~~~~~
Contains built-in styles.
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from pip._vendor.pygments.plugin import find_plugin_styles
from pip._vendor.pygments.util import ClassNotFound
from pip._ven... |
Yawan-Chaudhari/Cold_Email_Generator | 40,386 | myenv/Lib/site-packages/pip/_vendor/pygments/filters/__init__.py | """
pygments.filters
~~~~~~~~~~~~~~~~
Module containing filter lookup functions and default
filters.
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
from pip._vendor.pygments.token import String, Comment, Keyword, Name,... |
Yawan-Chaudhari/Cold_Email_Generator | 5,034 | myenv/Lib/site-packages/pip/_vendor/pygments/formatters/other.py | """
pygments.formatters.other
~~~~~~~~~~~~~~~~~~~~~~~~~
Other formatters: NullFormatter, RawTokenFormatter.
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from pip._vendor.pygments.formatter import Formatter
from pip._vendor.pygments... |
Yawan-Chaudhari/Cold_Email_Generator | 2,218 | myenv/Lib/site-packages/pip/_vendor/pygments/formatters/pangomarkup.py | """
pygments.formatters.pangomarkup
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Formatter for Pango markup output.
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from pip._vendor.pygments.formatter import Formatter
__all__ = ['PangoMarkupForma... |
Yawan-Chaudhari/Cold_Email_Generator | 4,981 | myenv/Lib/site-packages/pip/_vendor/pygments/formatters/irc.py | """
pygments.formatters.irc
~~~~~~~~~~~~~~~~~~~~~~~
Formatter for IRC output
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from pip._vendor.pygments.formatter import Formatter
from pip._vendor.pygments.token import Keyword, Name, Co... |
Yawan-Chaudhari/Cold_Email_Generator | 7,174 | myenv/Lib/site-packages/pip/_vendor/pygments/formatters/svg.py | """
pygments.formatters.svg
~~~~~~~~~~~~~~~~~~~~~~~
Formatter for SVG output.
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from pip._vendor.pygments.formatter import Formatter
from pip._vendor.pygments.token import Comment
from pip... |
Yawan-Chaudhari/Cold_Email_Generator | 4,176 | myenv/Lib/site-packages/pip/_vendor/pygments/formatters/_mapping.py | # Automatically generated by scripts/gen_mapfiles.py.
# DO NOT EDIT BY HAND; run `tox -e mapfiles` instead.
FORMATTERS = {
'BBCodeFormatter': ('pygments.formatters.bbcode', 'BBCode', ('bbcode', 'bb'), (), 'Format tokens with BBcodes. These formatting codes are used by many bulletin boards, so you can highlight you... |
Yawan-Chaudhari/Cold_Email_Generator | 5,106 | myenv/Lib/site-packages/pip/_vendor/pygments/formatters/groff.py | """
pygments.formatters.groff
~~~~~~~~~~~~~~~~~~~~~~~~~
Formatter for groff output.
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import math
from pip._vendor.pygments.formatter import Formatter
from pip._vendor.pygments.util import... |
Yawan-Chaudhari/Cold_Email_Generator | 11,753 | myenv/Lib/site-packages/pip/_vendor/pygments/formatters/terminal256.py | """
pygments.formatters.terminal256
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Formatter for 256-color terminal output with ANSI sequences.
RGB-to-XTERM color conversion routines adapted from xterm256-conv
tool (http://frexx.de/xterm-256-notes/data/xterm256-conv2.tar.bz2)
by Wolfgang Frisch.
Formatt... |
Yawan-Chaudhari/Cold_Email_Generator | 23,287 | myenv/Lib/site-packages/pip/_vendor/pygments/formatters/img.py | """
pygments.formatters.img
~~~~~~~~~~~~~~~~~~~~~~~
Formatter for Pixmap output.
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import os
import sys
from pip._vendor.pygments.formatter import Formatter
from pip._vendor.pygments.util ... |
Yawan-Chaudhari/Cold_Email_Generator | 35,669 | myenv/Lib/site-packages/pip/_vendor/pygments/formatters/html.py | """
pygments.formatters.html
~~~~~~~~~~~~~~~~~~~~~~~~
Formatter for HTML output.
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import functools
import os
import sys
import os.path
from io import StringIO
from pip._vendor.pygments.f... |
Yawan-Chaudhari/Cold_Email_Generator | 3,320 | myenv/Lib/site-packages/pip/_vendor/pygments/formatters/bbcode.py | """
pygments.formatters.bbcode
~~~~~~~~~~~~~~~~~~~~~~~~~~
BBcode formatter.
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from pip._vendor.pygments.formatter import Formatter
from pip._vendor.pygments.util import get_bool_opt
__al... |
Yawan-Chaudhari/Cold_Email_Generator | 19,306 | myenv/Lib/site-packages/pip/_vendor/pygments/formatters/latex.py | """
pygments.formatters.latex
~~~~~~~~~~~~~~~~~~~~~~~~~
Formatter for LaTeX fancyvrb output.
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from io import StringIO
from pip._vendor.pygments.formatter import Formatter
from pip._vendo... |
Yawan-Chaudhari/Cold_Email_Generator | 5,385 | myenv/Lib/site-packages/pip/_vendor/pygments/formatters/__init__.py | """
pygments.formatters
~~~~~~~~~~~~~~~~~~~
Pygments formatters.
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
import sys
import types
import fnmatch
from os.path import basename
from pip._vendor.pygments.formatters._mapp... |
Yawan-Chaudhari/Cold_Email_Generator | 4,674 | myenv/Lib/site-packages/pip/_vendor/pygments/formatters/terminal.py | """
pygments.formatters.terminal
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Formatter for terminal output with ANSI sequences.
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from pip._vendor.pygments.formatter import Formatter
from pip._vendor.pyg... |
Yawan-Chaudhari/Cold_Email_Generator | 11,957 | myenv/Lib/site-packages/pip/_vendor/pygments/formatters/rtf.py | """
pygments.formatters.rtf
~~~~~~~~~~~~~~~~~~~~~~~
A formatter that generates RTF files.
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from collections import OrderedDict
from pip._vendor.pygments.formatter import Formatter
from pi... |
Yawan-Chaudhari/Cold_Email_Generator | 17,081 | myenv/Lib/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py | """
TLS with SNI_-support for Python 2. Follow these instructions if you would
like to verify TLS certificates in Python 2. Note, the default libraries do
*not* do certificate checking; you need to do additional work to validate
certificates yourself.
This needs the following packages installed:
* `pyOpenSSL`_ (teste... |
Yawan-Chaudhari/Cold_Email_Generator | 34,446 | myenv/Lib/site-packages/pip/_vendor/urllib3/contrib/securetransport.py | """
SecureTranport support for urllib3 via ctypes.
This makes platform-native TLS available to urllib3 users on macOS without the
use of a compiler. This is an important feature because the Python Package
Index is moving to become a TLSv1.2-or-higher server, and the default OpenSSL
that ships with macOS is not capable... |
Yawan-Chaudhari/Cold_Email_Generator | 7,097 | myenv/Lib/site-packages/pip/_vendor/urllib3/contrib/socks.py | # -*- coding: utf-8 -*-
"""
This module contains provisional support for SOCKS proxies from within
urllib3. This module supports SOCKS4, SOCKS4A (an extension of SOCKS4), and
SOCKS5. To enable its functionality, either install PySocks or install this
module with the ``socks`` extra.
The SOCKS implementation supports t... |
Yawan-Chaudhari/Cold_Email_Generator | 11,036 | myenv/Lib/site-packages/pip/_vendor/urllib3/contrib/appengine.py | """
This module provides a pool manager that uses Google App Engine's
`URLFetch Service <https://cloud.google.com/appengine/docs/python/urlfetch>`_.
Example usage::
from pip._vendor.urllib3 import PoolManager
from pip._vendor.urllib3.contrib.appengine import AppEngineManager, is_appengine_sandbox
if is_a... |
Yawan-Chaudhari/Cold_Email_Generator | 4,528 | myenv/Lib/site-packages/pip/_vendor/urllib3/contrib/ntlmpool.py | """
NTLM authenticating pool, contributed by erikcederstran
Issue #10, see: http://code.google.com/p/urllib3/issues/detail?id=10
"""
from __future__ import absolute_import
import warnings
from logging import getLogger
from ntlm import ntlm
from .. import HTTPSConnectionPool
from ..packages.six.moves.http_client imp... |
Yawan-Chaudhari/Cold_Email_Generator | 3,997 | myenv/Lib/site-packages/pip/_vendor/urllib3/util/request.py | from __future__ import absolute_import
from base64 import b64encode
from ..exceptions import UnrewindableBodyError
from ..packages.six import b, integer_types
# Pass as a value within ``headers`` to skip
# emitting some HTTP headers that are added automatically.
# The only headers that are supported are ``Accept-Enc... |
Yawan-Chaudhari/Cold_Email_Generator | 6,895 | myenv/Lib/site-packages/pip/_vendor/urllib3/util/ssltransport.py | import io
import socket
import ssl
from ..exceptions import ProxySchemeUnsupported
from ..packages import six
SSL_BLOCKSIZE = 16384
class SSLTransport:
"""
The SSLTransport wraps an existing socket and establishes an SSL connection.
Contrary to Python's implementation of SSLSocket, it allows you to cha... |
Yawan-Chaudhari/Cold_Email_Generator | 1,605 | myenv/Lib/site-packages/pip/_vendor/urllib3/util/proxy.py | from .ssl_ import create_urllib3_context, resolve_cert_reqs, resolve_ssl_version
def connection_requires_http_tunnel(
proxy_url=None, proxy_config=None, destination_scheme=None
):
"""
Returns True if the connection requires an HTTP CONNECT through the proxy.
:param URL proxy_url:
URL of the p... |
Yawan-Chaudhari/Cold_Email_Generator | 3,510 | myenv/Lib/site-packages/pip/_vendor/urllib3/util/response.py | from __future__ import absolute_import
from email.errors import MultipartInvariantViolationDefect, StartBoundaryNotFoundDefect
from ..exceptions import HeaderParsingError
from ..packages.six.moves import http_client as httplib
def is_fp_closed(obj):
"""
Checks whether a given file-like object is closed.
... |
Yawan-Chaudhari/Cold_Email_Generator | 5,403 | myenv/Lib/site-packages/pip/_vendor/urllib3/util/wait.py | import errno
import select
import sys
from functools import partial
try:
from time import monotonic
except ImportError:
from time import time as monotonic
__all__ = ["NoWayToWaitForSocketError", "wait_for_read", "wait_for_write"]
class NoWayToWaitForSocketError(Exception):
pass
# How should we wait on... |
Yawan-Chaudhari/Cold_Email_Generator | 17,460 | myenv/Lib/site-packages/pip/_vendor/urllib3/util/ssl_.py | from __future__ import absolute_import
import hashlib
import hmac
import os
import sys
import warnings
from binascii import hexlify, unhexlify
from ..exceptions import (
InsecurePlatformWarning,
ProxySchemeUnsupported,
SNIMissingWarning,
SSLError,
)
from ..packages import six
from .url import BRACELES... |
Yawan-Chaudhari/Cold_Email_Generator | 22,050 | myenv/Lib/site-packages/pip/_vendor/urllib3/util/retry.py | from __future__ import absolute_import
import email
import logging
import re
import time
import warnings
from collections import namedtuple
from itertools import takewhile
from ..exceptions import (
ConnectTimeoutError,
InvalidHeader,
MaxRetryError,
ProtocolError,
ProxyError,
ReadTimeoutError,... |
Yawan-Chaudhari/Cold_Email_Generator | 10,168 | myenv/Lib/site-packages/pip/_vendor/urllib3/util/timeout.py | from __future__ import absolute_import
import time
# The default socket timeout, used by httplib to indicate that no timeout was; specified by the user
from socket import _GLOBAL_DEFAULT_TIMEOUT, getdefaulttimeout
from ..exceptions import TimeoutStateError
# A sentinel value to indicate that no timeout was specifie... |
Yawan-Chaudhari/Cold_Email_Generator | 1,155 | myenv/Lib/site-packages/pip/_vendor/urllib3/util/__init__.py | from __future__ import absolute_import
# For backwards compatibility, provide imports that used to be here.
from .connection import is_connection_dropped
from .request import SKIP_HEADER, SKIPPABLE_HEADERS, make_headers
from .response import is_fp_closed
from .retry import Retry
from .ssl_ import (
ALPN_PROTOCOLS,... |
Yawan-Chaudhari/Cold_Email_Generator | 5,758 | myenv/Lib/site-packages/pip/_vendor/urllib3/util/ssl_match_hostname.py | """The match_hostname() function from Python 3.3.3, essential when using SSL."""
# Note: This file is under the PSF license as the code comes from the python
# stdlib. http://docs.python.org/3/license.html
import re
import sys
# ipaddress has been backported to 2.6+ in pypi. If it is installed on the
# system, us... |
Yawan-Chaudhari/Cold_Email_Generator | 4,901 | myenv/Lib/site-packages/pip/_vendor/urllib3/util/connection.py | from __future__ import absolute_import
import socket
from ..contrib import _appengine_environ
from ..exceptions import LocationParseError
from ..packages import six
from .wait import NoWayToWaitForSocketError, wait_for_read
def is_connection_dropped(conn): # Platform-specific
"""
Returns True if the connec... |
Yawan-Chaudhari/Cold_Email_Generator | 14,296 | myenv/Lib/site-packages/pip/_vendor/urllib3/util/url.py | from __future__ import absolute_import
import re
from collections import namedtuple
from ..exceptions import LocationParseError
from ..packages import six
url_attrs = ["scheme", "auth", "host", "port", "path", "query", "fragment"]
# We only want to normalize urls with an HTTP(S) scheme.
# urllib3 infers URLs withou... |
Yawan-Chaudhari/Cold_Email_Generator | 13,922 | myenv/Lib/site-packages/pip/_vendor/urllib3/contrib/_securetransport/low_level.py | """
Low-level helpers for the SecureTransport bindings.
These are Python functions that are not directly related to the high-level APIs
but are necessary to get them to work. They include a whole bunch of low-level
CoreFoundation messing about and memory management. The concerns in this module
are almost entirely abou... |
Yawan-Chaudhari/Cold_Email_Generator | 17,632 | myenv/Lib/site-packages/pip/_vendor/urllib3/contrib/_securetransport/bindings.py | """
This module uses ctypes to bind a whole bunch of functions and constants from
SecureTransport. The goal here is to provide the low-level API to
SecureTransport. These are essentially the C-level functions and constants, and
they're pretty gross to work with.
This code is a bastardised version of the code found in ... |
Yawan-Chaudhari/Cold_Email_Generator | 19,398 | myenv/Lib/site-packages/urllib3/contrib/pyopenssl.py | """
Module for using pyOpenSSL as a TLS backend. This module was relevant before
the standard library ``ssl`` module supported SNI, but now that we've dropped
support for Python 2.7 all relevant Python versions support SNI so
**this module is no longer recommended**.
This needs the following packages installed:
* `py... |
Yawan-Chaudhari/Cold_Email_Generator | 7,549 | myenv/Lib/site-packages/urllib3/contrib/socks.py | """
This module contains provisional support for SOCKS proxies from within
urllib3. This module supports SOCKS4, SOCKS4A (an extension of SOCKS4), and
SOCKS5. To enable its functionality, either install PySocks or install this
module with the ``socks`` extra.
The SOCKS implementation supports the full range of urllib3... |
Yawan-Chaudhari/Cold_Email_Generator | 8,218 | myenv/Lib/site-packages/urllib3/util/request.py | from __future__ import annotations
import io
import typing
from base64 import b64encode
from enum import Enum
from ..exceptions import UnrewindableBodyError
from .util import to_bytes
if typing.TYPE_CHECKING:
from typing import Final
# Pass as a value within ``headers`` to skip
# emitting some HTTP headers that... |
Yawan-Chaudhari/Cold_Email_Generator | 1,146 | myenv/Lib/site-packages/urllib3/util/util.py | from __future__ import annotations
import typing
from types import TracebackType
def to_bytes(
x: str | bytes, encoding: str | None = None, errors: str | None = None
) -> bytes:
if isinstance(x, bytes):
return x
elif not isinstance(x, str):
raise TypeError(f"not expecting type {type(x).__... |
Yawan-Chaudhari/Cold_Email_Generator | 8,847 | myenv/Lib/site-packages/urllib3/util/ssltransport.py | from __future__ import annotations
import io
import socket
import ssl
import typing
from ..exceptions import ProxySchemeUnsupported
if typing.TYPE_CHECKING:
from typing_extensions import Self
from .ssl_ import _TYPE_PEER_CERT_RET, _TYPE_PEER_CERT_RET_DICT
_WriteBuffer = typing.Union[bytearray, memoryview]... |
Yawan-Chaudhari/Cold_Email_Generator | 1,148 | myenv/Lib/site-packages/urllib3/util/proxy.py | from __future__ import annotations
import typing
from .url import Url
if typing.TYPE_CHECKING:
from ..connection import ProxyConfig
def connection_requires_http_tunnel(
proxy_url: Url | None = None,
proxy_config: ProxyConfig | None = None,
destination_scheme: str | None = None,
) -> bool:
"""
... |
Yawan-Chaudhari/Cold_Email_Generator | 3,374 | myenv/Lib/site-packages/urllib3/util/response.py | from __future__ import annotations
import http.client as httplib
from email.errors import MultipartInvariantViolationDefect, StartBoundaryNotFoundDefect
from ..exceptions import HeaderParsingError
def is_fp_closed(obj: object) -> bool:
"""
Checks whether a given file-like object is closed.
:param obj:
... |
Yawan-Chaudhari/Cold_Email_Generator | 4,423 | myenv/Lib/site-packages/urllib3/util/wait.py | from __future__ import annotations
import select
import socket
from functools import partial
__all__ = ["wait_for_read", "wait_for_write"]
# How should we wait on sockets?
#
# There are two types of APIs you can use for waiting on sockets: the fancy
# modern stateful APIs like epoll/kqueue, and the older stateless ... |
Yawan-Chaudhari/Cold_Email_Generator | 18,884 | myenv/Lib/site-packages/urllib3/util/ssl_.py | from __future__ import annotations
import hashlib
import hmac
import os
import socket
import sys
import typing
import warnings
from binascii import unhexlify
from ..exceptions import ProxySchemeUnsupported, SSLError
from .url import _BRACELESS_IPV6_ADDRZ_RE, _IPV4_RE
SSLContext = None
SSLTransport = None
HAS_NEVER_C... |
Yawan-Chaudhari/Cold_Email_Generator | 18,459 | myenv/Lib/site-packages/urllib3/util/retry.py | from __future__ import annotations
import email
import logging
import random
import re
import time
import typing
from itertools import takewhile
from types import TracebackType
from ..exceptions import (
ConnectTimeoutError,
InvalidHeader,
MaxRetryError,
ProtocolError,
ProxyError,
ReadTimeoutE... |
Yawan-Chaudhari/Cold_Email_Generator | 10,346 | myenv/Lib/site-packages/urllib3/util/timeout.py | from __future__ import annotations
import time
import typing
from enum import Enum
from socket import getdefaulttimeout
from ..exceptions import TimeoutStateError
if typing.TYPE_CHECKING:
from typing import Final
class _TYPE_DEFAULT(Enum):
# This value should never be passed to socket.settimeout() so for s... |
Yawan-Chaudhari/Cold_Email_Generator | 5,812 | myenv/Lib/site-packages/urllib3/util/ssl_match_hostname.py | """The match_hostname() function from Python 3.5, essential when using SSL."""
# Note: This file is under the PSF license as the code comes from the python
# stdlib. http://docs.python.org/3/license.html
# It is modified to remove commonName support.
from __future__ import annotations
import ipaddress
import re
im... |
Yawan-Chaudhari/Cold_Email_Generator | 4,444 | myenv/Lib/site-packages/urllib3/util/connection.py | from __future__ import annotations
import socket
import typing
from ..exceptions import LocationParseError
from .timeout import _DEFAULT_TIMEOUT, _TYPE_TIMEOUT
_TYPE_SOCKET_OPTIONS = list[tuple[int, int, typing.Union[int, bytes]]]
if typing.TYPE_CHECKING:
from .._base_connection import BaseHTTPConnection
def ... |
Yawan-Chaudhari/Cold_Email_Generator | 15,205 | myenv/Lib/site-packages/urllib3/util/url.py | from __future__ import annotations
import re
import typing
from ..exceptions import LocationParseError
from .util import to_str
# We only want to normalize urls with an HTTP(S) scheme.
# urllib3 infers URLs without a scheme (None) to be http.
_NORMALIZABLE_SCHEMES = ("http", "https", None)
# Almost all of these pat... |
Yawan-Chaudhari/Cold_Email_Generator | 1,741 | myenv/Lib/site-packages/urllib3/http2/__init__.py | from __future__ import annotations
from importlib.metadata import version
__all__ = [
"inject_into_urllib3",
"extract_from_urllib3",
]
import typing
orig_HTTPSConnection: typing.Any = None
def inject_into_urllib3() -> None:
# First check if h2 version is valid
h2_version = version("h2")
if not... |
Yawan-Chaudhari/Cold_Email_Generator | 12,668 | myenv/Lib/site-packages/urllib3/http2/connection.py | from __future__ import annotations
import logging
import re
import threading
import types
import typing
import h2.config # type: ignore[import-untyped]
import h2.connection # type: ignore[import-untyped]
import h2.events # type: ignore[import-untyped]
from .._base_connection import _TYPE_BODY
from .._collections ... |
Yawan-Chaudhari/Cold_Email_Generator | 3,014 | myenv/Lib/site-packages/urllib3/http2/probe.py | from __future__ import annotations
import threading
class _HTTP2ProbeCache:
__slots__ = (
"_lock",
"_cache_locks",
"_cache_values",
)
def __init__(self) -> None:
self._lock = threading.Lock()
self._cache_locks: dict[tuple[str, int], threading.RLock] = {}
s... |
Yawan-Chaudhari/Cold_Email_Generator | 3,655 | myenv/Lib/site-packages/urllib3/contrib/emscripten/emscripten_fetch_worker.js | let Status = {
SUCCESS_HEADER: -1,
SUCCESS_EOF: -2,
ERROR_TIMEOUT: -3,
ERROR_EXCEPTION: -4,
};
let connections = {};
let nextConnectionID = 1;
const encoder = new TextEncoder();
self.addEventListener("message", async function (event) {
if (event.data.close) {
let connectionID = event.data.close;
del... |
Yawan-Chaudhari/Cold_Email_Generator | 9,981 | myenv/Lib/site-packages/urllib3/contrib/emscripten/response.py | from __future__ import annotations
import json as _json
import logging
import typing
from contextlib import contextmanager
from dataclasses import dataclass
from http.client import HTTPException as HTTPException
from io import BytesIO, IOBase
from ...exceptions import InvalidHeader, TimeoutError
from ...response impo... |
Yawan-Chaudhari/Cold_Email_Generator | 22,867 | myenv/Lib/site-packages/urllib3/contrib/emscripten/fetch.py | """
Support for streaming http requests in emscripten.
A few caveats -
If your browser (or Node.js) has WebAssembly JavaScript Promise Integration enabled
https://github.com/WebAssembly/js-promise-integration/blob/main/proposals/js-promise-integration/Overview.md
*and* you launch pyodide using `pyodide.runPythonAsync... |
Yawan-Chaudhari/Cold_Email_Generator | 8,771 | myenv/Lib/site-packages/urllib3/contrib/emscripten/connection.py | from __future__ import annotations
import os
import typing
# use http.client.HTTPException for consistency with non-emscripten
from http.client import HTTPException as HTTPException # noqa: F401
from http.client import ResponseNotReady
from ..._base_connection import _TYPE_BODY
from ...connection import HTTPConnect... |
Yawan-Chaudhari/Cold_Email_Generator | 2,614 | myenv/Lib/site-packages/watchdog/utils/delayed_queue.py | """:module: watchdog.utils.delayed_queue
:author: thomas.amland@gmail.com (Thomas Amland)
:author: contact@tiger-222.fr (Mickaël Schoentgen)
"""
from __future__ import annotations
import threading
import time
from collections import deque
from typing import Callable, Generic, TypeVar
T = TypeVar("T")
class Delayed... |
Yawan-Chaudhari/Cold_Email_Generator | 2,079 | myenv/Lib/site-packages/watchdog/utils/event_debouncer.py | from __future__ import annotations
import logging
import threading
from typing import TYPE_CHECKING
from watchdog.utils import BaseThread
if TYPE_CHECKING:
from typing import Callable
from watchdog.events import FileSystemEvent
logger = logging.getLogger(__name__)
class EventDebouncer(BaseThread):
""... |
Yawan-Chaudhari/Cold_Email_Generator | 14,739 | myenv/Lib/site-packages/watchdog/utils/dirsnapshot.py | """:module: watchdog.utils.dirsnapshot
:synopsis: Directory snapshots and comparison.
:author: yesudeep@google.com (Yesudeep Mangalapilly)
:author: contact@tiger-222.fr (Mickaël Schoentgen)
.. ADMONITION:: Where are the moved events? They "disappeared"
This implementation does not take partition boundaries
... |
Yawan-Chaudhari/Cold_Email_Generator | 2,210 | myenv/Lib/site-packages/watchdog/utils/echo.py | # echo.py: Tracing function calls using Python decorators.
#
# Written by Thomas Guest <tag@wordaligned.org>
# Please see http://wordaligned.org/articles/echo
#
# Place into the public domain.
"""Echo calls made to functions in a module.
"Echoing" a function call means printing out the name of the function
and the va... |
Yawan-Chaudhari/Cold_Email_Generator | 3,512 | myenv/Lib/site-packages/watchdog/utils/__init__.py | """:module: watchdog.utils
:synopsis: Utility classes and functions.
:author: yesudeep@google.com (Yesudeep Mangalapilly)
:author: contact@tiger-222.fr (Mickaël Schoentgen)
Classes
-------
.. autoclass:: BaseThread
:members:
:show-inheritance:
:inherited-members:
"""
from __future__ import annotations
impo... |
Yawan-Chaudhari/Cold_Email_Generator | 3,671 | myenv/Lib/site-packages/watchdog/utils/patterns.py | """:module: watchdog.utils.patterns
:synopsis: Common wildcard searching/filtering functionality for files.
:author: boris.staletic@gmail.com (Boris Staletic)
:author: yesudeep@gmail.com (Yesudeep Mangalapilly)
:author: contact@tiger-222.fr (Mickaël Schoentgen)
"""
from __future__ import annotations
# Non-pure path o... |
Yawan-Chaudhari/Cold_Email_Generator | 2,541 | myenv/Lib/site-packages/watchdog/utils/bricks.py | """Utility collections or "bricks".
:module: watchdog.utils.bricks
:author: yesudeep@google.com (Yesudeep Mangalapilly)
:author: lalinsky@gmail.com (Lukáš Lalinský)
:author: python@rcn.com (Raymond Hettinger)
:author: contact@tiger-222.fr (Mickaël Schoentgen)
Classes
=======
.. autoclass:: OrderedSetQueue
:members... |
Yawan-Chaudhari/Cold_Email_Generator | 9,491 | myenv/Lib/site-packages/watchdog/tricks/__init__.py | """:module: watchdog.tricks
:synopsis: Utility event handlers.
:author: yesudeep@google.com (Yesudeep Mangalapilly)
:author: contact@tiger-222.fr (Mickaël Schoentgen)
Classes
-------
.. autoclass:: Trick
:members:
:show-inheritance:
.. autoclass:: LoggerTrick
:members:
:show-inheritance:
.. autoclass:: S... |
Yawan-Chaudhari/Cold_Email_Generator | 9,438 | myenv/Lib/site-packages/watchdog/observers/fsevents2.py | """:module: watchdog.observers.fsevents2
:synopsis: FSEvents based emitter implementation.
:author: thomas.amland@gmail.com (Thomas Amland)
:author: contact@tiger-222.fr (Mickaël Schoentgen)
:platforms: macOS
"""
from __future__ import annotations
import logging
import os
import queue
import unicodedata
import warnin... |
Yawan-Chaudhari/Cold_Email_Generator | 13,802 | myenv/Lib/site-packages/watchdog/observers/api.py | from __future__ import annotations
import contextlib
import queue
import threading
from collections import defaultdict
from pathlib import Path
from typing import TYPE_CHECKING
from watchdog.utils import BaseThread
from watchdog.utils.bricks import SkipRepeatsQueue
if TYPE_CHECKING:
from watchdog.events import F... |
Yawan-Chaudhari/Cold_Email_Generator | 10,648 | myenv/Lib/site-packages/watchdog/observers/inotify.py | """:module: watchdog.observers.inotify
:synopsis: ``inotify(7)`` based emitter implementation.
:author: Sebastien Martini <seb@dbzteam.org>
:author: Luke McCarthy <luke@iogopro.co.uk>
:author: yesudeep@google.com (Yesudeep Mangalapilly)
:author: Tim Cuthbertson <tim+github@gfxmonk.net>
:author: contact@tiger-222.fr (Mi... |
Yawan-Chaudhari/Cold_Email_Generator | 21,129 | myenv/Lib/site-packages/watchdog/observers/inotify_c.py | from __future__ import annotations
import contextlib
import ctypes
import ctypes.util
import errno
import os
import select
import struct
import threading
from ctypes import c_char_p, c_int, c_uint32
from functools import reduce
from typing import TYPE_CHECKING
from watchdog.utils import UnsupportedLibcError
if TYPE_... |
Yawan-Chaudhari/Cold_Email_Generator | 11,634 | myenv/Lib/site-packages/watchdog/observers/winapi.py | """:module: watchdog.observers.winapi
:synopsis: Windows API-Python interface (removes dependency on ``pywin32``).
:author: theller@ctypes.org (Thomas Heller)
:author: will@willmcgugan.com (Will McGugan)
:author: ryan@rfk.id.au (Ryan Kelly)
:author: yesudeep@gmail.com (Yesudeep Mangalapilly)
:author: thomas.amland@gmai... |
Yawan-Chaudhari/Cold_Email_Generator | 3,255 | myenv/Lib/site-packages/watchdog/observers/__init__.py | """:module: watchdog.observers
:synopsis: Observer that picks a native implementation if available.
:author: yesudeep@google.com (Yesudeep Mangalapilly)
:author: contact@tiger-222.fr (Mickaël Schoentgen)
Classes
=======
.. autoclass:: Observer
:members:
:show-inheritance:
:inherited-members:
Observer thread ... |
Yawan-Chaudhari/Cold_Email_Generator | 14,283 | myenv/Lib/site-packages/watchdog/observers/fsevents.py | """:module: watchdog.observers.fsevents
:synopsis: FSEvents based emitter implementation.
:author: yesudeep@google.com (Yesudeep Mangalapilly)
:author: contact@tiger-222.fr (Mickaël Schoentgen)
:platforms: macOS
"""
from __future__ import annotations
import logging
import os
import threading
import time
import unicod... |
Yawan-Chaudhari/Cold_Email_Generator | 4,433 | myenv/Lib/site-packages/watchdog/observers/inotify_buffer.py | """:module: watchdog.observers.inotify_buffer
:synopsis: A wrapper for ``Inotify``.
:author: thomas.amland@gmail.com (Thomas Amland)
:author: contact@tiger-222.fr (Mickaël Schoentgen)
:platforms: linux
"""
from __future__ import annotations
import logging
from watchdog.observers.inotify_c import Inotify, InotifyEven... |
Yawan-Chaudhari/Cold_Email_Generator | 4,931 | myenv/Lib/site-packages/watchdog/observers/polling.py | """:module: watchdog.observers.polling
:synopsis: Polling emitter implementation.
:author: yesudeep@google.com (Yesudeep Mangalapilly)
:author: contact@tiger-222.fr (Mickaël Schoentgen)
Classes
-------
.. autoclass:: PollingObserver
:members:
:show-inheritance:
.. autoclass:: PollingObserverVFS
:members:
... |