file_path
stringlengths
32
153
content
stringlengths
0
3.14M
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/h11/tests/test_io.py
from typing import Any, Callable, Generator, List import pytest from .._events import ( ConnectionClosed, Data, EndOfMessage, Event, InformationalResponse, Request, Response, ) from .._headers import Headers, normalize_and_validate from .._readers import ( _obsolete_line_fold, Chun...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/h11/tests/test_events.py
from http import HTTPStatus import pytest from .. import _events from .._events import ( ConnectionClosed, Data, EndOfMessage, Event, InformationalResponse, Request, Response, ) from .._util import LocalProtocolError def test_events() -> None: with pytest.raises(LocalProtocolError): ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/h11/tests/test_against_stdlib_http.py
import json import os.path import socket import socketserver import threading from contextlib import closing, contextmanager from http.server import SimpleHTTPRequestHandler from typing import Callable, Generator from urllib.request import urlopen import h11 @contextmanager def socket_server( handler: Callable[....
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/h11/tests/test_util.py
import re import sys import traceback from typing import NoReturn import pytest from .._util import ( bytesify, LocalProtocolError, ProtocolError, RemoteProtocolError, Sentinel, validate, ) def test_ProtocolError() -> None: with pytest.raises(TypeError): ProtocolError("abstract b...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/h11/tests/test_receivebuffer.py
import re from typing import Tuple import pytest from .._receivebuffer import ReceiveBuffer def test_receivebuffer() -> None: b = ReceiveBuffer() assert not b assert len(b) == 0 assert bytes(b) == b"" b += b"123" assert b assert len(b) == 3 assert bytes(b) == b"123" assert byte...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/h11/tests/test_helpers.py
from .._events import ( ConnectionClosed, Data, EndOfMessage, Event, InformationalResponse, Request, Response, ) from .helpers import normalize_data_events def test_normalize_data_events() -> None: assert normalize_data_events( [ Data(data=bytearray(b"1")), ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/qrcode/util.py
import math import re from typing import List from qrcode import LUT, base, exceptions from qrcode.base import RSBlock # QR encoding modes. MODE_NUMBER = 1 << 0 MODE_ALPHA_NUM = 1 << 1 MODE_8BIT_BYTE = 1 << 2 MODE_KANJI = 1 << 3 # Encoding mode sizes. MODE_SIZE_SMALL = { MODE_NUMBER: 10, MODE_ALPHA_NUM: 9, ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/qrcode/main.py
import sys from bisect import bisect_left from typing import ( Dict, Generic, List, NamedTuple, Optional, Type, TypeVar, cast, overload, ) from typing_extensions import Literal from qrcode import constants, exceptions, util from qrcode.image.base import BaseImage from qrcode.image....
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/qrcode/exceptions.py
class DataOverflowError(Exception): pass
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/qrcode/base.py
from typing import NamedTuple from qrcode import constants EXP_TABLE = list(range(256)) LOG_TABLE = list(range(256)) for i in range(8): EXP_TABLE[i] = 1 << i for i in range(8, 256): EXP_TABLE[i] = ( EXP_TABLE[i - 4] ^ EXP_TABLE[i - 5] ^ EXP_TABLE[i - 6] ^ EXP_TABLE[i - 8] ) for i in range(255):...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/qrcode/console_scripts.py
#!/usr/bin/env python """ qr - Convert stdin (or the first argument) to a QR Code. When stdout is a tty the QR Code is printed to the terminal and when stdout is a pipe to a file an image is written. The default image format is PNG. """ import optparse import os import sys from typing import Dict, Iterable, NoReturn, ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/qrcode/constants.py
# QR error correct levels ERROR_CORRECT_L = 1 ERROR_CORRECT_M = 0 ERROR_CORRECT_Q = 3 ERROR_CORRECT_H = 2
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/qrcode/__init__.py
from qrcode.main import QRCode from qrcode.main import make # noqa from qrcode.constants import ( # noqa ERROR_CORRECT_L, ERROR_CORRECT_M, ERROR_CORRECT_Q, ERROR_CORRECT_H, ) from qrcode import image # noqa def run_example(data="http://www.lincolnloop.com", *args, **kwargs): """ Build an e...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/qrcode/LUT.py
# Store all kinds of lookup table. # # generate rsPoly lookup table. # from qrcode import base # def create_bytes(rs_blocks): # for r in range(len(rs_blocks)): # dcCount = rs_blocks[r].data_count # ecCount = rs_blocks[r].total_count - dcCount # rsPoly = base.Polynomial([1], 0) # ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/qrcode/release.py
""" This file provides zest.releaser entrypoints using when releasing new qrcode versions. """ import os import re import datetime def update_manpage(data): """ Update the version in the manpage document. """ if data["name"] != "qrcode": return base_dir = os.path.dirname(os.path.dirname(o...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/qrcode/image/base.py
import abc from typing import TYPE_CHECKING, Any, Dict, Optional, Tuple, Type, Union from qrcode.image.styles.moduledrawers.base import QRModuleDrawer if TYPE_CHECKING: from qrcode.main import ActiveWithNeighbors, QRCode DrawerAliases = Dict[str, Tuple[Type[QRModuleDrawer], Dict[str, Any]]] class BaseImage: ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/qrcode/image/styledpil.py
# Needed on case-insensitive filesystems from __future__ import absolute_import import qrcode.image.base from qrcode.compat.pil import Image from qrcode.image.styles.colormasks import QRColorMask, SolidFillColorMask from qrcode.image.styles.moduledrawers import SquareModuleDrawer class StyledPilImage(qrcode.image.ba...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/qrcode/image/__init__.py
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/qrcode/image/pil.py
import qrcode.image.base from qrcode.compat.pil import Image, ImageDraw class PilImage(qrcode.image.base.BaseImage): """ PIL image builder, default format is PNG. """ kind = "PNG" def new_image(self, **kwargs): back_color = kwargs.get("back_color", "white") fill_color = kwargs.ge...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/qrcode/image/svg.py
import decimal from decimal import Decimal from typing import List, Optional, Type, Union, overload from typing_extensions import Literal import qrcode.image.base from qrcode.compat.etree import ET from qrcode.image.styles.moduledrawers import svg as svg_drawers from qrcode.image.styles.moduledrawers.base import QRMo...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/qrcode/image/pure.py
from itertools import chain import png import qrcode.image.base class PyPNGImage(qrcode.image.base.BaseImage): """ pyPNG image builder. """ kind = "PNG" allowed_kinds = ("PNG",) needs_drawrect = False def new_image(self, **kwargs): return png.Writer(self.pixel_size, self.pixel_...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/qrcode/image/styles/colormasks.py
# Needed on case-insensitive filesystems from __future__ import absolute_import import math from qrcode.compat.pil import Image class QRColorMask: """ QRColorMask is used to color in the QRCode. By the time apply_mask is called, the QRModuleDrawer of the StyledPilImage will have drawn all of the mo...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/qrcode/image/styles/__init__.py
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/qrcode/image/styles/moduledrawers/base.py
from __future__ import absolute_import import abc from typing import TYPE_CHECKING if TYPE_CHECKING: from qrcode.image.base import BaseImage class QRModuleDrawer(abc.ABC): """ QRModuleDrawer exists to draw the modules of the QR Code onto images. For this, technically all that is necessary is a ``dr...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/qrcode/image/styles/moduledrawers/__init__.py
# For backwards compatibility, importing the PIL drawers here. try: from .pil import CircleModuleDrawer # noqa: F401 from .pil import GappedSquareModuleDrawer # noqa: F401 from .pil import HorizontalBarsDrawer # noqa: F401 from .pil import RoundedModuleDrawer # noqa: F401 from .pil import Square...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/qrcode/image/styles/moduledrawers/pil.py
# Needed on case-insensitive filesystems from __future__ import absolute_import from typing import TYPE_CHECKING, List from qrcode.compat.pil import Image, ImageDraw from qrcode.image.styles.moduledrawers.base import QRModuleDrawer if TYPE_CHECKING: from qrcode.image.styledpil import StyledPilImage from qrco...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/qrcode/image/styles/moduledrawers/svg.py
import abc from decimal import Decimal from typing import TYPE_CHECKING, NamedTuple from qrcode.image.styles.moduledrawers.base import QRModuleDrawer from qrcode.compat.etree import ET if TYPE_CHECKING: from qrcode.image.svg import SvgFragmentImage, SvgPathImage ANTIALIASING_FACTOR = 4 class Coords(NamedTuple)...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/qrcode/compat/etree.py
try: import lxml.etree as ET # type: ignore # noqa: F401 except ImportError: import xml.etree.ElementTree as ET # type: ignore # noqa: F401
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/qrcode/compat/__init__.py
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/qrcode/compat/pil.py
# Try to import PIL in either of the two ways it can be installed. Image = None ImageDraw = None try: from PIL import Image, ImageDraw # type: ignore # noqa: F401 except ImportError: # pragma: no cover try: import Image # type: ignore # noqa: F401 import ImageDraw # type: ignore # noqa: ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/qrcode/tests/test_release.py
import re import builtins import datetime import unittest from unittest import mock from qrcode.release import update_manpage OPEN = f"{builtins.__name__}.open" DATA = 'test\n.TH "date" "version" "description"\nthis' class UpdateManpageTests(unittest.TestCase): @mock.patch(OPEN, new_callable=mock.mock_open, rea...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/qrcode/tests/__init__.py
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/qrcode/tests/test_util.py
import unittest from qrcode import util class UtilTests(unittest.TestCase): def test_check_wrong_version(self): with self.assertRaises(ValueError): util.check_version(0) with self.assertRaises(ValueError): util.check_version(41)
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/qrcode/tests/test_script.py
import io import os import sys import unittest from tempfile import mkdtemp from unittest import mock from qrcode.compat.pil import Image from qrcode.console_scripts import commas, main def bad_read(): raise UnicodeDecodeError("utf-8", b"0x80", 0, 1, "invalid start byte") class ScriptTest(unittest.TestCase): ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/qrcode/tests/test_qrcode_svg.py
import io import os import unittest from tempfile import mkdtemp import qrcode from qrcode.image import svg UNICODE_TEXT = "\u03b1\u03b2\u03b3" class SvgImageWhite(svg.SvgImage): background = "white" class QRCodeSvgTests(unittest.TestCase): def setUp(self): self.tmpdir = mkdtemp() def tearDow...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/qrcode/tests/test_qrcode.py
import io import os import unittest import warnings from tempfile import mkdtemp from unittest import mock import png import qrcode import qrcode.util from qrcode.compat.pil import Image as pil_Image from qrcode.exceptions import DataOverflowError from qrcode.image.base import BaseImage from qrcode.image.pure import ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/qrcode/tests/test_example.py
import unittest from unittest import mock from qrcode import run_example from qrcode.compat.pil import Image class ExampleTest(unittest.TestCase): @unittest.skipIf(not Image, "Requires PIL") @mock.patch("PIL.Image.Image.show") def runTest(self, mock_show): run_example() mock_show.assert_c...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/anyio-3.7.1.dist-info/top_level.txt
anyio
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/anyio-3.7.1.dist-info/entry_points.txt
[pytest11] anyio = anyio.pytest_plugin
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/pathtools/patterns.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # patterns.py: Common wildcard searching/filtering functionality for files. # # Copyright (C) 2010 Yesudeep Mangalapilly <yesudeep@gmail.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation fil...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/pathtools/__init__.py
# -*- coding: utf-8 -*- # pathtools: File system path tools. # Copyright (C) 2010 Yesudeep Mangalapilly <yesudeep@gmail.com> # # 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 restrict...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/pathtools/version.py
# -*- coding: utf-8 -*- # version.py: Version information. # Copyright (C) 2010 Yesudeep Mangalapilly <yesudeep@gmail.com> # # 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 restrictio...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/pathtools/path.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # path.py: Path functions. # # Copyright (C) 2010 Yesudeep Mangalapilly <yesudeep@gmail.com> # # 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 wi...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/aiofiles/os.py
"""Async executor versions of file functions from the os module.""" import asyncio from functools import partial, wraps import os def wrap(func): @asyncio.coroutine @wraps(func) def run(*args, loop=None, executor=None, **kwargs): if loop is None: loop = asyncio.get_event_loop() ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/aiofiles/base.py
"""Various base classes.""" import asyncio from collections.abc import Coroutine class AsyncBase: def __init__(self, file, loop, executor): self._file = file self._loop = loop self._executor = executor def __aiter__(self): """We are our own iterator.""" return self ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/aiofiles/_compat.py
import sys try: from functools import singledispatch except ImportError: # pragma: nocover from singledispatch import singledispatch PY_35 = sys.version_info >= (3, 5)
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/aiofiles/__init__.py
"""Utilities for asyncio-friendly file handling.""" from .threadpool import open __version__ = "0.4.0" __all__ = (open,)
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/wrapt/importer.py
"""This module implements a post import hook mechanism styled after what is described in PEP-369. Note that it doesn't cope with modules being reloaded. """ import sys import threading PY2 = sys.version_info[0] == 2 PY3 = sys.version_info[0] == 3 if PY3: import importlib string_types = str, else: string...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/wrapt/wrappers.py
import sys import functools import operator import weakref import inspect PY2 = sys.version_info[0] == 2 PY3 = sys.version_info[0] == 3 if PY3: string_types = str, else: string_types = basestring, def with_metaclass(meta, *bases): """Create a base class with a metaclass.""" return meta("NewBase", bas...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/wrapt/arguments.py
# This is a copy of the inspect.getcallargs() function from Python 2.7 # so we can provide it for use under Python 2.6. As the code in this # file derives from the Python distribution, it falls under the version # of the PSF license used for Python 2.7. from inspect import getargspec, ismethod import sys def getcalla...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/wrapt/__init__.py
__version_info__ = ('1', '10', '10') __version__ = '.'.join(__version_info__) from .wrappers import (ObjectProxy, CallableObjectProxy, FunctionWrapper, BoundFunctionWrapper, WeakFunctionProxy, resolve_path, apply_patch, wrap_object, wrap_object_attribute, function_wrapper, wrap_function_wrapper...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/wrapt/decorators.py
"""This module implements decorators for implementing other decorators as well as some commonly used decorators. """ import sys PY2 = sys.version_info[0] == 2 PY3 = sys.version_info[0] == 3 if PY3: string_types = str, import builtins exec_ = getattr(builtins, "exec") del builtins else: string_...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/multidict-6.0.4.dist-info/top_level.txt
multidict
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/jmespath/exceptions.py
from jmespath.compat import with_str_method class JMESPathError(ValueError): pass @with_str_method class ParseError(JMESPathError): _ERROR_MESSAGE = 'Invalid jmespath expression' def __init__(self, lex_position, token_value, token_type, msg=_ERROR_MESSAGE): super(ParseError, sel...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/jmespath/parser.py
"""Top down operator precedence parser. This is an implementation of Vaughan R. Pratt's "Top Down Operator Precedence" parser. (http://dl.acm.org/citation.cfm?doid=512927.512931). These are some additional resources that help explain the general idea behind a Pratt parser: * http://effbot.org/zone/simple-top-down-pa...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/jmespath/ast.py
# AST nodes have this structure: # {"type": <node type>", children: [], "value": ""} def comparator(name, first, second): return {'type': 'comparator', 'children': [first, second], 'value': name} def current_node(): return {'type': 'current', 'children': []} def expref(expression): return {'type': 'ex...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/jmespath/lexer.py
import string import warnings from json import loads from jmespath.exceptions import LexerError, EmptyExpressionError class Lexer(object): START_IDENTIFIER = set(string.ascii_letters + '_') VALID_IDENTIFIER = set(string.ascii_letters + string.digits + '_') VALID_NUMBER = set(string.digits) WHITESPACE...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/jmespath/__init__.py
import warnings import sys from jmespath import parser from jmespath.visitor import Options __version__ = '0.10.0' if sys.version_info[:2] <= (2, 6) or ((3, 0) <= sys.version_info[:2] <= (3, 3)): python_ver = '.'.join(str(x) for x in sys.version_info[:3]) warnings.warn( 'You are using Python {0}, wh...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/jmespath/visitor.py
import operator from jmespath import functions from jmespath.compat import string_type from numbers import Number def _equals(x, y): if _is_special_integer_case(x, y): return False else: return x == y def _is_special_integer_case(x, y): # We need to special case comparing 0 or 1 to ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/jmespath/compat.py
import sys import inspect PY2 = sys.version_info[0] == 2 def with_metaclass(meta, *bases): # Taken from flask/six. class metaclass(meta): def __new__(cls, name, this_bases, d): return meta(name, bases, d) return type.__new__(metaclass, 'temporary_class', (), {}) if PY2: text_typ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/jmespath/functions.py
import math import json from jmespath import exceptions from jmespath.compat import string_type as STRING_TYPE from jmespath.compat import get_methods, with_metaclass # python types -> jmespath types TYPES_MAP = { 'bool': 'boolean', 'list': 'array', 'dict': 'object', 'NoneType': 'null', 'unicode'...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/urllib3-1.26.16.dist-info/top_level.txt
urllib3
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/urllib3-1.26.16.dist-info/LICENSE.txt
MIT License Copyright (c) 2008-2020 Andrey Petrov and contributors (see CONTRIBUTORS.txt) 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 rig...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/attr/setters.pyi
from . import _OnSetAttrType, Attribute from typing import TypeVar, Any, NewType, NoReturn, cast _T = TypeVar("_T") def frozen( instance: Any, attribute: Attribute, new_value: Any ) -> NoReturn: ... def pipe(*setters: _OnSetAttrType) -> _OnSetAttrType: ... def validate(instance: Any, attribute: Attribute[_T], new...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/attr/_funcs.py
from __future__ import absolute_import, division, print_function import copy from ._compat import iteritems from ._make import NOTHING, _obj_setattr, fields from .exceptions import AttrsAttributeNotFoundError def asdict( inst, recurse=True, filter=None, dict_factory=dict, retain_collection_types...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/attr/validators.py
""" Commonly useful validators. """ from __future__ import absolute_import, division, print_function import re from ._make import _AndValidator, and_, attrib, attrs from .exceptions import NotCallableError __all__ = [ "and_", "deep_iterable", "deep_mapping", "in_", "instance_of", "is_callab...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/attr/filters.py
""" Commonly useful filters for `attr.asdict`. """ from __future__ import absolute_import, division, print_function from ._compat import isclass from ._make import Attribute def _split_what(what): """ Returns a tuple of `frozenset`s of classes and attributes. """ return ( frozenset(cls for c...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/attr/exceptions.pyi
from typing import Any class FrozenError(AttributeError): msg: str = ... class FrozenInstanceError(FrozenError): ... class FrozenAttributeError(FrozenError): ... class AttrsAttributeNotFoundError(ValueError): ... class NotAnAttrsClassError(ValueError): ... class DefaultAlreadySetError(RuntimeError): ... class Una...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/attr/_version_info.py
from __future__ import absolute_import, division, print_function from functools import total_ordering from ._funcs import astuple from ._make import attrib, attrs @total_ordering @attrs(eq=False, order=False, slots=True, frozen=True) class VersionInfo(object): """ A version object that can be compared to tu...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/attr/exceptions.py
from __future__ import absolute_import, division, print_function class FrozenError(AttributeError): """ A frozen/immutable instance or attribute haave been attempted to be modified. It mirrors the behavior of ``namedtuples`` by using the same error message and subclassing `AttributeError`. ....
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/attr/_compat.py
from __future__ import absolute_import, division, print_function import platform import sys import types import warnings PY2 = sys.version_info[0] == 2 PYPY = platform.python_implementation() == "PyPy" if PYPY or sys.version_info[:2] >= (3, 6): ordered_dict = dict else: from collections import OrderedDict ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/attr/__init__.py
from __future__ import absolute_import, division, print_function import sys from functools import partial from . import converters, exceptions, filters, setters, validators from ._config import get_run_validators, set_run_validators from ._funcs import asdict, assoc, astuple, evolve, has, resolve_types from ._make i...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/attr/_next_gen.py
""" This is a Python 3.6 and later-only, keyword-only, and **provisional** API that calls `attr.s` with different default values. Provisional APIs that shall become "import attrs" one glorious day. """ from functools import partial from attr.exceptions import UnannotatedAttributeError from . import setters from ._m...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/attr/_config.py
from __future__ import absolute_import, division, print_function __all__ = ["set_run_validators", "get_run_validators"] _run_validators = True def set_run_validators(run): """ Set whether or not validators are run. By default, they are run. """ if not isinstance(run, bool): raise TypeError...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/attr/validators.pyi
from typing import ( Container, List, Union, TypeVar, Type, Any, Optional, Tuple, Iterable, Mapping, Callable, Match, AnyStr, overload, ) from . import _ValidatorType _T = TypeVar("_T") _T1 = TypeVar("_T1") _T2 = TypeVar("_T2") _T3 = TypeVar("_T3") _I = TypeVar("...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/attr/converters.py
""" Commonly useful converters. """ from __future__ import absolute_import, division, print_function from ._make import NOTHING, Factory, pipe __all__ = [ "pipe", "optional", "default_if_none", ] def optional(converter): """ A converter that allows an attribute to be optional. An optional attr...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/attr/_make.py
from __future__ import absolute_import, division, print_function import copy import linecache import sys import threading import uuid import warnings from operator import itemgetter from . import _config, setters from ._compat import ( PY2, isclass, iteritems, metadata_proxy, ordered_dict, se...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/attr/_version_info.pyi
class VersionInfo: @property def year(self) -> int: ... @property def minor(self) -> int: ... @property def micro(self) -> int: ... @property def releaselevel(self) -> str: ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/attr/converters.pyi
from typing import TypeVar, Optional, Callable, overload from . import _ConverterType _T = TypeVar("_T") def pipe(*validators: _ConverterType) -> _ConverterType: ... def optional(converter: _ConverterType) -> _ConverterType: ... @overload def default_if_none(default: _T) -> _ConverterType: ... @overload def default_i...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/attr/__init__.pyi
from typing import ( Any, Callable, Dict, Generic, List, Optional, Sequence, Mapping, Tuple, Type, TypeVar, Union, overload, ) # `import X as X` is required to make these public from . import exceptions as exceptions from . import filters as filters from . import con...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/attr/filters.pyi
from typing import Union, Any from . import Attribute, _FilterType def include(*what: Union[type, Attribute[Any]]) -> _FilterType[Any]: ... def exclude(*what: Union[type, Attribute[Any]]) -> _FilterType[Any]: ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/attr/setters.py
""" Commonly used hooks for on_setattr. """ from __future__ import absolute_import, division, print_function from . import _config from .exceptions import FrozenAttributeError def pipe(*setters): """ Run all *setters* and return the return value of the last one. .. versionadded:: 20.1.0 """ de...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/setuptools/build_meta.py
"""A PEP 517 interface to setuptools Previously, when a user or a command line tool (let's call it a "frontend") needed to make a request of setuptools to take a certain action, for example, generating a list of installation requirements, the frontend would would call "setup.py egg_info" or "setup.py bdist_wheel" on t...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/setuptools/discovery.py
"""Automatic discovery of Python modules and packages (for inclusion in the distribution) and other config values. For the purposes of this module, the following nomenclature is used: - "src-layout": a directory representing a Python project that contains a "src" folder. Everything under the "src" folder is meant t...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/setuptools/depends.py
import sys import marshal import contextlib import dis from setuptools.extern.packaging import version from ._imp import find_module, PY_COMPILED, PY_FROZEN, PY_SOURCE from . import _imp __all__ = [ 'Require', 'find_module', 'get_module_constant', 'extract_constant' ] class Require: """A prerequisite to b...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/setuptools/monkey.py
""" Monkey patching of distutils. """ import sys import distutils.filelist import platform import types import functools from importlib import import_module import inspect import setuptools __all__ = [] """ Everything is private. Contact the project team if you think you need this functionality. """ def _get_mro(c...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/setuptools/installer.py
import glob import os import subprocess import sys import tempfile from distutils import log from distutils.errors import DistutilsError from functools import partial from . import _reqs from .wheel import Wheel from .warnings import SetuptoolsDeprecationWarning def _fixup_find_links(find_links): """Ensure find-...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/setuptools/_itertools.py
from setuptools.extern.more_itertools import consume # noqa: F401 # copied from jaraco.itertools 6.1 def ensure_unique(iterable, key=lambda x: x): """ Wrap an iterable to raise a ValueError if non-unique values are encountered. >>> list(ensure_unique('abc')) ['a', 'b', 'c'] >>> consume(ensure_un...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/setuptools/py312compat.py
import sys import shutil def shutil_rmtree(path, ignore_errors=False, onexc=None): if sys.version_info >= (3, 12): return shutil.rmtree(path, ignore_errors, onexc=onexc) def _handler(fn, path, excinfo): return onexc(fn, path, excinfo[1]) return shutil.rmtree(path, ignore_errors, onerror=...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/setuptools/_importlib.py
import sys def disable_importlib_metadata_finder(metadata): """ Ensure importlib_metadata doesn't provide older, incompatible Distributions. Workaround for #3102. """ try: import importlib_metadata except ImportError: return except AttributeError: from .warning...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/setuptools/extension.py
import re import functools import distutils.core import distutils.errors import distutils.extension from .monkey import get_unpatched def _have_cython(): """ Return True if Cython can be imported. """ cython_impl = 'Cython.Distutils.build_ext' try: # from (cython_impl) import build_ext ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/setuptools/archive_util.py
"""Utilities for extracting common archive formats""" import zipfile import tarfile import os import shutil import posixpath import contextlib from distutils.errors import DistutilsError from ._path import ensure_directory __all__ = [ "unpack_archive", "unpack_zipfile", "unpack_tarfile", "default_filter", "U...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/setuptools/__init__.py
"""Extensions to the 'distutils' for large or complex distributions""" import functools import os import re import _distutils_hack.override # noqa: F401 import distutils.core from distutils.errors import DistutilsOptionError from distutils.util import convert_path as _convert_path from .warnings import SetuptoolsD...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/setuptools/namespaces.py
import os from distutils import log import itertools flatten = itertools.chain.from_iterable class Installer: nspkg_ext = '-nspkg.pth' def install_namespaces(self): nsp = self._get_all_ns_packages() if not nsp: return filename, ext = os.path.splitext(self._get_target())...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/setuptools/version.py
from ._importlib import metadata try: __version__ = metadata.version('setuptools') or '0.dev0+unknown' except Exception: __version__ = '0.dev0+unknown'
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/setuptools/errors.py
"""setuptools.errors Provides exceptions used by setuptools modules. """ from distutils import errors as _distutils_errors # Re-export errors from distutils to facilitate the migration to PEP632 ByteCompileError = _distutils_errors.DistutilsByteCompileError CCompilerError = _distutils_errors.CCompilerError ClassEr...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/setuptools/_normalization.py
""" Helpers for normalization as expected in wheel/sdist/module file names and core metadata """ import re from pathlib import Path from typing import Union from .extern import packaging from .warnings import SetuptoolsDeprecationWarning _Path = Union[str, Path] # https://packaging.python.org/en/latest/specification...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/setuptools/unicode_utils.py
import unicodedata import sys # HFS Plus uses decomposed UTF-8 def decompose(path): if isinstance(path, str): return unicodedata.normalize('NFD', path) try: path = path.decode('utf-8') path = unicodedata.normalize('NFD', path) path = path.encode('utf-8') except UnicodeError...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/setuptools/sandbox.py
import os import sys import tempfile import operator import functools import itertools import re import contextlib import pickle import textwrap import builtins import pkg_resources from distutils.errors import DistutilsError from pkg_resources import working_set if sys.platform.startswith('java'): import org.pyt...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/setuptools/dist.py
__all__ = ['Distribution'] import io import sys import re import os import numbers import distutils.log import distutils.core import distutils.cmd import distutils.dist import distutils.command from distutils.util import strtobool from distutils.debug import DEBUG from distutils.fancy_getopt import translate_longopt f...