file_path
stringlengths
32
153
content
stringlengths
0
3.14M
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/colorama/tests/utils.py
# Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file. from contextlib import contextmanager from io import StringIO import sys import os class StreamTTY(StringIO): def isatty(self): return True class StreamNonTTY(StringIO): def isatty(self): return False @contextmanager ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/colorama/tests/isatty_test.py
# Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file. import sys from unittest import TestCase, main from ..ansitowin32 import StreamWrapper, AnsiToWin32 from .utils import pycharm, replace_by, replace_original_by, StreamTTY, StreamNonTTY def is_a_tty(stream): return StreamWrapper(stream, No...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/colorama/tests/ansitowin32_test.py
# Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file. from io import StringIO, TextIOWrapper from unittest import TestCase, main try: from contextlib import ExitStack except ImportError: # python 2 from contextlib2 import ExitStack try: from unittest.mock import MagicMock, Mock, pa...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/importer.py
import importlib from typing import Any class ImportFromStringError(Exception): pass def import_from_string(import_str: Any) -> Any: if not isinstance(import_str, str): return import_str module_str, _, attrs_str = import_str.partition(":") if not module_str or not attrs_str: message...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/main.py
import asyncio import logging import os import platform import ssl import sys import typing import click import uvicorn from uvicorn.config import ( HTTP_PROTOCOLS, INTERFACES, LIFESPAN, LOG_LEVELS, LOGGING_CONFIG, LOOP_SETUPS, SSL_PROTOCOL_VERSION, WS_PROTOCOLS, Config, HTTPPr...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/config.py
import asyncio import inspect import json import logging import logging.config import os import socket import ssl import sys from pathlib import Path from typing import ( TYPE_CHECKING, Any, Awaitable, Callable, Dict, List, Optional, Tuple, Type, Union, ) from uvicorn.logging im...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/_types.py
import types import typing # WSGI Environ = typing.MutableMapping[str, typing.Any] ExcInfo = typing.Tuple[ typing.Type[BaseException], BaseException, typing.Optional[types.TracebackType] ] StartResponse = typing.Callable[ [str, typing.Iterable[typing.Tuple[str, str]], typing.Optional[ExcInfo]], None ] WSGIApp ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/__init__.py
from uvicorn.config import Config from uvicorn.main import Server, main, run __version__ = "0.21.1" __all__ = ["main", "run", "Config", "Server"]
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/server.py
import asyncio import logging import os import platform import signal import socket import sys import threading import time from email.utils import formatdate from types import FrameType from typing import TYPE_CHECKING, List, Optional, Sequence, Set, Tuple, Union import click from uvicorn.config import Config if TY...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/_subprocess.py
""" Some light wrappers around Python's multiprocessing, to deal with cleanly starting child processes. """ import multiprocessing import os import sys from multiprocessing.context import SpawnProcess from socket import socket from typing import Callable, List, Optional from uvicorn.config import Config multiprocessi...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/__main__.py
import uvicorn if __name__ == "__main__": uvicorn.main()
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/workers.py
import asyncio import logging import signal import sys from typing import Any, Dict from gunicorn.arbiter import Arbiter from gunicorn.workers.base import Worker from uvicorn.config import Config from uvicorn.main import Server class UvicornWorker(Worker): """ A worker class for Gunicorn that interfaces wit...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/logging.py
import http import logging import sys from copy import copy from typing import Optional import click if sys.version_info < (3, 8): # pragma: py-gte-38 from typing_extensions import Literal else: # pragma: py-lt-38 from typing import Literal TRACE_LOG_LEVEL = 5 class ColourizedFormatter(logging.Formatter)...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/loops/__init__.py
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/loops/auto.py
def auto_loop_setup(use_subprocess: bool = False) -> None: try: import uvloop # noqa except ImportError: # pragma: no cover from uvicorn.loops.asyncio import asyncio_setup as loop_setup loop_setup(use_subprocess=use_subprocess) else: # pragma: no cover from uvicorn.loops....
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/loops/uvloop.py
import asyncio import uvloop def uvloop_setup(use_subprocess: bool = False) -> None: asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/loops/asyncio.py
import asyncio import logging import sys logger = logging.getLogger("uvicorn.error") def asyncio_setup(use_subprocess: bool = False) -> None: # pragma: no cover if sys.version_info >= (3, 8) and sys.platform == "win32" and use_subprocess: asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPol...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/lifespan/on.py
import asyncio import logging from asyncio import Queue from typing import TYPE_CHECKING, Any, Dict, Union from uvicorn import Config if TYPE_CHECKING: from asgiref.typing import ( LifespanScope, LifespanShutdownCompleteEvent, LifespanShutdownEvent, LifespanShutdownFailedEvent, ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/lifespan/__init__.py
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/lifespan/off.py
from typing import Any, Dict from uvicorn import Config class LifespanOff: def __init__(self, config: Config) -> None: self.should_exit = False self.state: Dict[str, Any] = {} async def startup(self) -> None: pass async def shutdown(self) -> None: pass
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/middleware/proxy_headers.py
""" This middleware can be used when a known proxy is fronting the application, and is trusted to be properly setting the `X-Forwarded-Proto` and `X-Forwarded-For` headers with the connecting client information. Modifies the `client` and `scheme` information so that they reference the connecting client, rather that th...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/middleware/wsgi.py
import asyncio import concurrent.futures import io import sys import warnings from collections import deque from typing import TYPE_CHECKING, Deque, Iterable, Optional, Tuple if TYPE_CHECKING: from asgiref.typing import ( ASGIReceiveCallable, ASGIReceiveEvent, ASGISendCallable, ASGI...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/middleware/asgi2.py
import typing if typing.TYPE_CHECKING: from asgiref.typing import ( ASGI2Application, ASGIReceiveCallable, ASGISendCallable, Scope, ) class ASGI2Middleware: def __init__(self, app: "ASGI2Application"): self.app = app async def __call__( self, scope: "S...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/middleware/__init__.py
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/middleware/message_logger.py
import logging from typing import TYPE_CHECKING, Any if TYPE_CHECKING: from asgiref.typing import ( ASGI3Application, ASGIReceiveCallable, ASGIReceiveEvent, ASGISendCallable, ASGISendEvent, WWWScope, ) from uvicorn.logging import TRACE_LOG_LEVEL PLACEHOLDER_FOR...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/supervisors/statreload.py
import logging from pathlib import Path from socket import socket from typing import Callable, Dict, Iterator, List, Optional from uvicorn.config import Config from uvicorn.supervisors.basereload import BaseReload logger = logging.getLogger("uvicorn.error") class StatReload(BaseReload): def __init__( se...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/supervisors/watchfilesreload.py
from pathlib import Path from socket import socket from typing import Callable, List, Optional from watchfiles import watch from uvicorn.config import Config from uvicorn.supervisors.basereload import BaseReload class FileFilter: def __init__(self, config: Config): default_includes = ["*.py"] se...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/supervisors/__init__.py
from typing import TYPE_CHECKING, Type from uvicorn.supervisors.basereload import BaseReload from uvicorn.supervisors.multiprocess import Multiprocess if TYPE_CHECKING: ChangeReload: Type[BaseReload] else: try: from uvicorn.supervisors.watchfilesreload import ( WatchFilesReload as ChangeRe...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/supervisors/basereload.py
import logging import os import signal import threading from pathlib import Path from socket import socket from types import FrameType from typing import Callable, Iterator, List, Optional import click from uvicorn._subprocess import get_subprocess from uvicorn.config import Config HANDLED_SIGNALS = ( signal.SIG...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/supervisors/multiprocess.py
import logging import os import signal import threading from multiprocessing.context import SpawnProcess from socket import socket from types import FrameType from typing import Callable, List, Optional import click from uvicorn._subprocess import get_subprocess from uvicorn.config import Config HANDLED_SIGNALS = ( ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/supervisors/watchgodreload.py
import logging import warnings from pathlib import Path from socket import socket from typing import TYPE_CHECKING, Callable, Dict, List, Optional from watchgod import DefaultWatcher from uvicorn.config import Config from uvicorn.supervisors.basereload import BaseReload if TYPE_CHECKING: import os DirEntry ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/protocols/__init__.py
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/protocols/utils.py
import asyncio import urllib.parse from typing import TYPE_CHECKING, Optional, Tuple if TYPE_CHECKING: from asgiref.typing import WWWScope def get_remote_addr(transport: asyncio.Transport) -> Optional[Tuple[str, int]]: socket_info = transport.get_extra_info("socket") if socket_info is not None: t...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/protocols/websockets/wsproto_impl.py
import asyncio import logging import sys import typing from urllib.parse import unquote import wsproto from wsproto import ConnectionType, events from wsproto.connection import ConnectionState from wsproto.extensions import Extension, PerMessageDeflate from wsproto.utilities import RemoteProtocolError from uvicorn.co...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/protocols/websockets/__init__.py
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/protocols/websockets/auto.py
import asyncio import typing AutoWebSocketsProtocol: typing.Optional[typing.Callable[..., asyncio.Protocol]] try: import websockets # noqa except ImportError: # pragma: no cover try: import wsproto # noqa except ImportError: AutoWebSocketsProtocol = None else: from uvicorn.pr...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/protocols/websockets/websockets_impl.py
import asyncio import http import logging import sys from typing import ( TYPE_CHECKING, Any, Dict, List, Optional, Sequence, Tuple, Union, cast, ) from urllib.parse import unquote import websockets from websockets.datastructures import Headers from websockets.exceptions import Conn...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/protocols/http/flow_control.py
import asyncio import typing if typing.TYPE_CHECKING: from asgiref.typing import ( ASGIReceiveCallable, ASGISendCallable, HTTPResponseBodyEvent, HTTPResponseStartEvent, Scope, ) CLOSE_HEADER = (b"connection", b"close") HIGH_WATER_LIMIT = 65536 class FlowControl: ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/protocols/http/__init__.py
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/protocols/http/auto.py
import asyncio from typing import Type AutoHTTPProtocol: Type[asyncio.Protocol] try: import httptools # noqa except ImportError: # pragma: no cover from uvicorn.protocols.http.h11_impl import H11Protocol AutoHTTPProtocol = H11Protocol else: # pragma: no cover from uvicorn.protocols.http.httptools_i...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/protocols/http/h11_impl.py
import asyncio import http import logging import sys from typing import ( TYPE_CHECKING, Any, Callable, Dict, List, Optional, Tuple, Union, cast, ) from urllib.parse import unquote import h11 from h11._connection import DEFAULT_MAX_INCOMPLETE_EVENT_SIZE from uvicorn.config import C...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/uvicorn/protocols/http/httptools_impl.py
import asyncio import http import logging import re import sys import urllib from asyncio.events import TimerHandle from collections import deque from typing import ( TYPE_CHECKING, Any, Callable, Deque, Dict, List, Optional, Tuple, Union, cast, ) import httptools from uvicorn....
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/multipart/exceptions.py
class FormParserError(ValueError): """Base error class for our form parser.""" pass class ParseError(FormParserError): """This exception (or a subclass) is raised when there is an error while parsing something. """ #: This is the offset in the input data chunk (*NOT* the overall stream) in ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/multipart/multipart.py
from .decoders import * from .exceptions import * import os import re import sys import shutil import logging import tempfile from io import BytesIO from numbers import Number # Unique missing object. _missing = object() # States for the querystring parser. STATE_BEFORE_FIELD = 0 STATE_FIELD_NAME = 1 STATE_FIELD_D...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/multipart/decoders.py
import base64 import binascii from .exceptions import DecodeError class Base64Decoder: """This object provides an interface to decode a stream of Base64 data. It is instantiated with an "underlying object", and whenever a write() operation is performed, it will decode the incoming data as Base64, and ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/multipart/__init__.py
# This is the canonical package information. __author__ = 'Andrew Dunham' __license__ = 'Apache' __copyright__ = "Copyright (c) 2012-2013, Andrew Dunham" __version__ = "0.0.6" from .multipart import ( FormParser, MultipartParser, QuerystringParser, OctetStreamParser, create_form_parser, ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/multipart/tests/__init__.py
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/multipart/tests/test_multipart.py
import os import sys import glob import yaml import base64 import random import tempfile import unittest from .compat import ( parametrize, parametrize_class, slow_test, ) from io import BytesIO from unittest.mock import MagicMock, Mock, patch from ..multipart import * # Get the current directory for our...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/multipart/tests/compat.py
import os import re import sys import types import functools def ensure_in_path(path): """ Ensure that a given path is in the sys.path array """ if not os.path.isdir(path): raise RuntimeError('Tried to add nonexisting path') def _samefile(x, y): try: return os.path.sam...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/endpoints.py
import json import typing from starlette import status from starlette._utils import is_async_callable from starlette.concurrency import run_in_threadpool from starlette.exceptions import HTTPException from starlette.requests import Request from starlette.responses import PlainTextResponse, Response from starlette.type...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/config.py
import os import typing from collections.abc import MutableMapping from pathlib import Path class undefined: pass class EnvironError(Exception): pass class Environ(MutableMapping): def __init__(self, environ: typing.MutableMapping = os.environ): self._environ = environ self._has_been_r...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/exceptions.py
import http import typing import warnings __all__ = ("HTTPException", "WebSocketException") class HTTPException(Exception): def __init__( self, status_code: int, detail: typing.Optional[str] = None, headers: typing.Optional[dict] = None, ) -> None: if detail is None: ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/datastructures.py
import typing from collections.abc import Sequence from shlex import shlex from urllib.parse import SplitResult, parse_qsl, urlencode, urlsplit from starlette.concurrency import run_in_threadpool from starlette.types import Scope class Address(typing.NamedTuple): host: str port: int _KeyType = typing.TypeV...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/responses.py
import http.cookies import json import os import stat import sys import typing from datetime import datetime from email.utils import format_datetime, formatdate from functools import partial from mimetypes import guess_type as mimetypes_guess_type from urllib.parse import quote import anyio from starlette._compat imp...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/background.py
import sys import typing if sys.version_info >= (3, 10): # pragma: no cover from typing import ParamSpec else: # pragma: no cover from typing_extensions import ParamSpec from starlette._utils import is_async_callable from starlette.concurrency import run_in_threadpool P = ParamSpec("P") class BackgroundT...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/_compat.py
import hashlib # Compat wrapper to always include the `usedforsecurity=...` parameter, # which is only added from Python 3.9 onwards. # We use this flag to indicate that we use `md5` hashes only for non-security # cases (our ETag checksums). # If we don't indicate that we're using MD5 for non-security related reasons,...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/templating.py
import typing from os import PathLike from starlette.background import BackgroundTask from starlette.requests import Request from starlette.responses import Response from starlette.types import Receive, Scope, Send try: import jinja2 # @contextfunction was renamed to @pass_context in Jinja 3.0, and was remov...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/__init__.py
__version__ = "0.25.0"
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/websockets.py
import enum import json import typing from starlette.requests import HTTPConnection from starlette.types import Message, Receive, Scope, Send class WebSocketState(enum.Enum): CONNECTING = 0 CONNECTED = 1 DISCONNECTED = 2 class WebSocketDisconnect(Exception): def __init__(self, code: int = 1000, rea...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/authentication.py
import functools import inspect import typing from urllib.parse import urlencode from starlette._utils import is_async_callable from starlette.exceptions import HTTPException from starlette.requests import HTTPConnection, Request from starlette.responses import RedirectResponse, Response from starlette.websockets impo...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/formparsers.py
import typing from dataclasses import dataclass, field from enum import Enum from tempfile import SpooledTemporaryFile from urllib.parse import unquote_plus from starlette.datastructures import FormData, Headers, UploadFile try: import multipart from multipart.multipart import parse_options_header except Impo...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/testclient.py
import contextlib import inspect import io import json import math import queue import sys import typing import warnings from concurrent.futures import Future from types import GeneratorType from urllib.parse import unquote, urljoin import anyio import anyio.from_thread import httpx from anyio.streams.stapled import S...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/concurrency.py
import functools import sys import typing import warnings import anyio if sys.version_info >= (3, 10): # pragma: no cover from typing import ParamSpec else: # pragma: no cover from typing_extensions import ParamSpec T = typing.TypeVar("T") P = ParamSpec("P") async def run_until_first_complete(*args: typ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/routing.py
import contextlib import functools import inspect import re import traceback import types import typing import warnings from contextlib import asynccontextmanager from enum import Enum from starlette._utils import is_async_callable from starlette.concurrency import run_in_threadpool from starlette.convertors import CO...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/types.py
import typing Scope = typing.MutableMapping[str, typing.Any] Message = typing.MutableMapping[str, typing.Any] Receive = typing.Callable[[], typing.Awaitable[Message]] Send = typing.Callable[[Message], typing.Awaitable[None]] ASGIApp = typing.Callable[[Scope, Receive, Send], typing.Awaitable[None]]
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/_utils.py
import asyncio import functools import sys import typing from types import TracebackType if sys.version_info < (3, 8): # pragma: no cover from typing_extensions import Protocol else: # pragma: no cover from typing import Protocol def is_async_callable(obj: typing.Any) -> bool: while isinstance(obj, fun...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/staticfiles.py
import importlib.util import os import stat import typing from email.utils import parsedate import anyio from starlette.datastructures import URL, Headers from starlette.exceptions import HTTPException from starlette.responses import FileResponse, RedirectResponse, Response from starlette.types import Receive, Scope,...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/requests.py
import json import typing from http import cookies as http_cookies import anyio from starlette._utils import AwaitableOrContextManager, AwaitableOrContextManagerWrapper from starlette.datastructures import URL, Address, FormData, Headers, QueryParams, State from starlette.exceptions import HTTPException from starlett...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/convertors.py
import math import typing import uuid T = typing.TypeVar("T") class Convertor(typing.Generic[T]): regex: typing.ClassVar[str] = "" def convert(self, value: str) -> T: raise NotImplementedError() # pragma: no cover def to_string(self, value: T) -> str: raise NotImplementedError() # pra...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/status.py
""" HTTP codes See HTTP Status Code Registry: https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml And RFC 2324 - https://tools.ietf.org/html/rfc2324 """ import warnings from typing import List __all__ = ( "HTTP_100_CONTINUE", "HTTP_101_SWITCHING_PROTOCOLS", "HTTP_102_PROCESSING", ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/applications.py
import typing import warnings from starlette.datastructures import State, URLPath from starlette.middleware import Middleware from starlette.middleware.base import BaseHTTPMiddleware from starlette.middleware.errors import ServerErrorMiddleware from starlette.middleware.exceptions import ExceptionMiddleware from starl...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/schemas.py
import inspect import re import typing from starlette.requests import Request from starlette.responses import Response from starlette.routing import BaseRoute, Mount, Route try: import yaml except ImportError: # pragma: nocover yaml = None # type: ignore[assignment] class OpenAPIResponse(Response): me...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/middleware/wsgi.py
import io import math import sys import typing import warnings import anyio from starlette.types import Receive, Scope, Send warnings.warn( "starlette.middleware.wsgi is deprecated and will be removed in a future release. " "Please refer to https://github.com/abersheeran/a2wsgi as a replacement.", Deprec...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/middleware/gzip.py
import gzip import io import typing from starlette.datastructures import Headers, MutableHeaders from starlette.types import ASGIApp, Message, Receive, Scope, Send class GZipMiddleware: def __init__( self, app: ASGIApp, minimum_size: int = 500, compresslevel: int = 9 ) -> None: self.app = app...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/middleware/exceptions.py
import typing from starlette._utils import is_async_callable from starlette.concurrency import run_in_threadpool from starlette.exceptions import HTTPException, WebSocketException from starlette.requests import Request from starlette.responses import PlainTextResponse, Response from starlette.types import ASGIApp, Mes...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/middleware/httpsredirect.py
from starlette.datastructures import URL from starlette.responses import RedirectResponse from starlette.types import ASGIApp, Receive, Scope, Send class HTTPSRedirectMiddleware: def __init__(self, app: ASGIApp) -> None: self.app = app async def __call__(self, scope: Scope, receive: Receive, send: Se...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/middleware/base.py
import typing import anyio from starlette.background import BackgroundTask from starlette.requests import Request from starlette.responses import ContentStream, Response, StreamingResponse from starlette.types import ASGIApp, Message, Receive, Scope, Send RequestResponseEndpoint = typing.Callable[[Request], typing.A...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/middleware/cors.py
import functools import re import typing from starlette.datastructures import Headers, MutableHeaders from starlette.responses import PlainTextResponse, Response from starlette.types import ASGIApp, Message, Receive, Scope, Send ALL_METHODS = ("DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT") SAFELISTED_HEA...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/middleware/__init__.py
import typing class Middleware: def __init__(self, cls: type, **options: typing.Any) -> None: self.cls = cls self.options = options def __iter__(self) -> typing.Iterator: as_tuple = (self.cls, self.options) return iter(as_tuple) def __repr__(self) -> str: class_na...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/middleware/errors.py
import html import inspect import traceback import typing from starlette._utils import is_async_callable from starlette.concurrency import run_in_threadpool from starlette.requests import Request from starlette.responses import HTMLResponse, PlainTextResponse, Response from starlette.types import ASGIApp, Message, Rec...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/middleware/authentication.py
import typing from starlette.authentication import ( AuthCredentials, AuthenticationBackend, AuthenticationError, UnauthenticatedUser, ) from starlette.requests import HTTPConnection from starlette.responses import PlainTextResponse, Response from starlette.types import ASGIApp, Receive, Scope, Send ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/middleware/trustedhost.py
import typing from starlette.datastructures import URL, Headers from starlette.responses import PlainTextResponse, RedirectResponse, Response from starlette.types import ASGIApp, Receive, Scope, Send ENFORCE_DOMAIN_WILDCARD = "Domain wildcard patterns must be like '*.example.com'." class TrustedHostMiddleware: ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/starlette/middleware/sessions.py
import json import sys import typing from base64 import b64decode, b64encode import itsdangerous from itsdangerous.exc import BadSignature from starlette.datastructures import MutableHeaders, Secret from starlette.requests import HTTPConnection from starlette.types import ASGIApp, Message, Receive, Scope, Send if sy...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/aiobotocore-1.2.0-py3.10.egg-info/SOURCES.txt
CHANGES.rst LICENSE MANIFEST.in README.rst setup.cfg setup.py aiobotocore/__init__.py aiobotocore/_endpoint_helpers.py aiobotocore/args.py aiobotocore/client.py aiobotocore/config.py aiobotocore/credentials.py aiobotocore/endpoint.py aiobotocore/eventstream.py aiobotocore/hooks.py aiobotocore/paginate.py aiobotocore/pa...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/aiobotocore-1.2.0-py3.10.egg-info/top_level.txt
aiobotocore
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/aiobotocore-1.2.0-py3.10.egg-info/requires.txt
botocore<1.19.53,>=1.19.52 aiohttp>=3.3.1 wrapt>=1.10.10 aioitertools>=0.5.1 [awscli] awscli==1.18.212 [boto3] boto3==1.16.52
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/aiobotocore-1.2.0-py3.10.egg-info/installed-files.txt
..\aiobotocore\__init__.py ..\aiobotocore\__pycache__\__init__.cpython-310.pyc ..\aiobotocore\__pycache__\_endpoint_helpers.cpython-310.pyc ..\aiobotocore\__pycache__\args.cpython-310.pyc ..\aiobotocore\__pycache__\client.cpython-310.pyc ..\aiobotocore\__pycache__\config.cpython-310.pyc ..\aiobotocore\__pycache__\crede...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/aiobotocore-1.2.0-py3.10.egg-info/dependency_links.txt
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/jmespath-0.10.0.dist-info/top_level.txt
jmespath
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/jmespath-0.10.0.dist-info/DESCRIPTION.rst
JMESPath ======== .. image:: https://badges.gitter.im/Join Chat.svg :target: https://gitter.im/jmespath/chat .. image:: https://travis-ci.org/jmespath/jmespath.py.svg?branch=develop :target: https://travis-ci.org/jmespath/jmespath.py .. image:: https://codecov.io/github/jmespath/jmespath.py/coverage.svg?br...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/jmespath-0.10.0.dist-info/LICENSE.txt
Copyright (c) 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, cop...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/websockets-10.3.dist-info/top_level.txt
websockets websockets/extensions websockets/legacy
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/attrs-20.1.0.dist-info/top_level.txt
attr
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/attrs-20.1.0.dist-info/AUTHORS.rst
Credits ======= ``attrs`` is written and maintained by `Hynek Schlawack <https://hynek.me/>`_. The development is kindly supported by `Variomedia AG <https://www.variomedia.de/>`_. A full list of contributors can be found in `GitHub's overview <https://github.com/python-attrs/attrs/graphs/contributors>`_. It’s the ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/coverage-6.1.2.dist-info/top_level.txt
coverage
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/coverage-6.1.2.dist-info/entry_points.txt
[console_scripts] coverage = coverage.cmdline:main coverage-3.10 = coverage.cmdline:main coverage3 = coverage.cmdline:main
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/coverage-6.1.2.dist-info/LICENSE.txt
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/aiosignal-1.3.1.dist-info/top_level.txt
aiosignal
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/jsonschema-3.2.0.dist-info/top_level.txt
jsonschema
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/jsonschema-3.2.0.dist-info/entry_points.txt
[console_scripts] jsonschema = jsonschema.cli:main