code
stringlengths
0
21.5M
repo_name
stringlengths
4
92
path
stringlengths
1
189
language
stringlengths
0
26
license
stringclasses
11 values
size
int64
0
21.5M
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is Mozilla Communicator client code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 1998 # the Initial Developer. All Rights R...
castiel248/Convert
Lib/site-packages/pip/_vendor/chardet/jisfreq.py
Python
mit
25,796
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is Mozilla Communicator client code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 1998 # the Initial Developer. All Rights R...
castiel248/Convert
Lib/site-packages/pip/_vendor/chardet/johabfreq.py
Python
mit
42,498
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is mozilla.org code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 1998 # the Initial Developer. All Rights Reserved. # # Con...
castiel248/Convert
Lib/site-packages/pip/_vendor/chardet/johabprober.py
Python
mit
1,730
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is Mozilla Communicator client code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 1998 # the Initial Developer. All Rights R...
castiel248/Convert
Lib/site-packages/pip/_vendor/chardet/jpcntx.py
Python
mit
26,797
from pip._vendor.chardet.sbcharsetprober import SingleByteCharSetModel # 3: Positive # 2: Likely # 1: Unlikely # 0: Negative BULGARIAN_LANG_MODEL = { 63: { # 'e' 63: 1, # 'e' 45: 0, # '\xad' 31: 0, # 'А' 32: 0, # 'Б' 35: 0, # 'В' 43: 0, # 'Г' 37: 0, ...
castiel248/Convert
Lib/site-packages/pip/_vendor/chardet/langbulgarianmodel.py
Python
mit
104,562
from pip._vendor.chardet.sbcharsetprober import SingleByteCharSetModel # 3: Positive # 2: Likely # 1: Unlikely # 0: Negative GREEK_LANG_MODEL = { 60: { # 'e' 60: 2, # 'e' 55: 1, # 'o' 58: 2, # 't' 36: 1, # '·' 61: 0, # 'Ά' 46: 0, # 'Έ' 54: 0, # 'Ό' ...
castiel248/Convert
Lib/site-packages/pip/_vendor/chardet/langgreekmodel.py
Python
mit
98,484
from pip._vendor.chardet.sbcharsetprober import SingleByteCharSetModel # 3: Positive # 2: Likely # 1: Unlikely # 0: Negative HEBREW_LANG_MODEL = { 50: { # 'a' 50: 0, # 'a' 60: 1, # 'c' 61: 1, # 'd' 42: 1, # 'e' 53: 1, # 'i' 56: 2, # 'l' 54: 2, # 'n' ...
castiel248/Convert
Lib/site-packages/pip/_vendor/chardet/langhebrewmodel.py
Python
mit
98,196
from pip._vendor.chardet.sbcharsetprober import SingleByteCharSetModel # 3: Positive # 2: Likely # 1: Unlikely # 0: Negative HUNGARIAN_LANG_MODEL = { 28: { # 'A' 28: 0, # 'A' 40: 1, # 'B' 54: 1, # 'C' 45: 2, # 'D' 32: 1, # 'E' 50: 1, # 'F' 49: 2, # '...
castiel248/Convert
Lib/site-packages/pip/_vendor/chardet/langhungarianmodel.py
Python
mit
101,363
from pip._vendor.chardet.sbcharsetprober import SingleByteCharSetModel # 3: Positive # 2: Likely # 1: Unlikely # 0: Negative RUSSIAN_LANG_MODEL = { 37: { # 'А' 37: 0, # 'А' 44: 1, # 'Б' 33: 1, # 'В' 46: 1, # 'Г' 41: 1, # 'Д' 48: 1, # 'Е' 56: 1, # 'Ж'...
castiel248/Convert
Lib/site-packages/pip/_vendor/chardet/langrussianmodel.py
Python
mit
128,035
from pip._vendor.chardet.sbcharsetprober import SingleByteCharSetModel # 3: Positive # 2: Likely # 1: Unlikely # 0: Negative THAI_LANG_MODEL = { 5: { # 'ก' 5: 2, # 'ก' 30: 2, # 'ข' 24: 2, # 'ค' 8: 2, # 'ง' 26: 2, # 'จ' 52: 0, # 'ฉ' 34: 1, # 'ช' ...
castiel248/Convert
Lib/site-packages/pip/_vendor/chardet/langthaimodel.py
Python
mit
102,774
from pip._vendor.chardet.sbcharsetprober import SingleByteCharSetModel # 3: Positive # 2: Likely # 1: Unlikely # 0: Negative TURKISH_LANG_MODEL = { 23: { # 'A' 23: 0, # 'A' 37: 0, # 'B' 47: 0, # 'C' 39: 0, # 'D' 29: 0, # 'E' 52: 0, # 'F' 36: 0, # 'G'...
castiel248/Convert
Lib/site-packages/pip/_vendor/chardet/langturkishmodel.py
Python
mit
95,372
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is Mozilla Universal charset detector code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 2001 # the Initial Developer. All R...
castiel248/Convert
Lib/site-packages/pip/_vendor/chardet/latin1prober.py
Python
mit
5,260
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is Mozilla Universal charset detector code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 2001 # the Initial Developer. All R...
castiel248/Convert
Lib/site-packages/pip/_vendor/chardet/mbcharsetprober.py
Python
mit
3,367
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is Mozilla Universal charset detector code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 2001 # the Initial Developer. All R...
castiel248/Convert
Lib/site-packages/pip/_vendor/chardet/mbcsgroupprober.py
Python
mit
2,056
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is mozilla.org code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 1998 # the Initial Developer. All Rights Reserved. # # Con...
castiel248/Convert
Lib/site-packages/pip/_vendor/chardet/mbcssm.py
Python
mit
30,068
castiel248/Convert
Lib/site-packages/pip/_vendor/chardet/metadata/__init__.py
Python
mit
0
""" Metadata about languages used by our model training code for our SingleByteCharSetProbers. Could be used for other things in the future. This code is based on the language metadata from the uchardet project. """ from string import ascii_letters # TODO: Add Ukrainian (KOI8-U) class Language: """Metadata ab...
castiel248/Convert
Lib/site-packages/pip/_vendor/chardet/metadata/languages.py
Python
mit
13,280
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is Mozilla Universal charset detector code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 2001 # the Initial Developer. All R...
castiel248/Convert
Lib/site-packages/pip/_vendor/chardet/sbcharsetprober.py
Python
mit
6,199
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is Mozilla Universal charset detector code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 2001 # the Initial Developer. All R...
castiel248/Convert
Lib/site-packages/pip/_vendor/chardet/sbcsgroupprober.py
Python
mit
4,129
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is mozilla.org code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 1998 # the Initial Developer. All Rights Reserved. # # Con...
castiel248/Convert
Lib/site-packages/pip/_vendor/chardet/sjisprober.py
Python
mit
3,749
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is Mozilla Universal charset detector code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 2001 # the Initial Developer. All R...
castiel248/Convert
Lib/site-packages/pip/_vendor/chardet/universaldetector.py
Python
mit
13,288
######################## BEGIN LICENSE BLOCK ######################## # # Contributor(s): # Jason Zavaglia # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the ...
castiel248/Convert
Lib/site-packages/pip/_vendor/chardet/utf1632prober.py
Python
mit
8,289
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is mozilla.org code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 1998 # the Initial Developer. All Rights Reserved. # # Con...
castiel248/Convert
Lib/site-packages/pip/_vendor/chardet/utf8prober.py
Python
mit
2,709
""" This module exists only to simplify retrieving the version number of chardet from within setup.py and from chardet subpackages. :author: Dan Blanchard (dan.blanchard@gmail.com) """ __version__ = "5.0.0" VERSION = __version__.split(".")
castiel248/Convert
Lib/site-packages/pip/_vendor/chardet/version.py
Python
mit
242
# Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file. from .initialise import init, deinit, reinit, colorama_text from .ansi import Fore, Back, Style, Cursor from .ansitowin32 import AnsiToWin32 __version__ = '0.4.5'
castiel248/Convert
Lib/site-packages/pip/_vendor/colorama/__init__.py
Python
mit
239
# Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file. ''' This module generates ANSI character codes to printing colors to terminals. See: http://en.wikipedia.org/wiki/ANSI_escape_code ''' CSI = '\033[' OSC = '\033]' BEL = '\a' def code_to_chars(code): return CSI + str(code) + 'm' def set_t...
castiel248/Convert
Lib/site-packages/pip/_vendor/colorama/ansi.py
Python
mit
2,522
# Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file. import re import sys import os from .ansi import AnsiFore, AnsiBack, AnsiStyle, Style, BEL from .winterm import WinTerm, WinColor, WinStyle from .win32 import windll, winapi_test winterm = None if windll is not None: winterm = WinTerm() ...
castiel248/Convert
Lib/site-packages/pip/_vendor/colorama/ansitowin32.py
Python
mit
10,830
# Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file. import atexit import contextlib import sys from .ansitowin32 import AnsiToWin32 orig_stdout = None orig_stderr = None wrapped_stdout = None wrapped_stderr = None atexit_done = False def reset_all(): if AnsiToWin32 is not None: # Is...
castiel248/Convert
Lib/site-packages/pip/_vendor/colorama/initialise.py
Python
mit
1,915
# Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file. # from winbase.h STDOUT = -11 STDERR = -12 try: import ctypes from ctypes import LibraryLoader windll = LibraryLoader(ctypes.WinDLL) from ctypes import wintypes except (AttributeError, ImportError): windll = None SetCon...
castiel248/Convert
Lib/site-packages/pip/_vendor/colorama/win32.py
Python
mit
5,404
# Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file. from . import win32 # from wincon.h class WinColor(object): BLACK = 0 BLUE = 1 GREEN = 2 CYAN = 3 RED = 4 MAGENTA = 5 YELLOW = 6 GREY = 7 # from wincon.h class WinStyle(object): NORMAL ...
castiel248/Convert
Lib/site-packages/pip/_vendor/colorama/winterm.py
Python
mit
6,438
# -*- coding: utf-8 -*- # # Copyright (C) 2012-2022 Vinay Sajip. # Licensed to the Python Software Foundation under a contributor agreement. # See LICENSE.txt and CONTRIBUTORS.txt. # import logging __version__ = '0.3.6' class DistlibException(Exception): pass try: from logging import NullHandler except Impor...
castiel248/Convert
Lib/site-packages/pip/_vendor/distlib/__init__.py
Python
mit
581
# -*- coding: utf-8 -*- # # Copyright (C) 2013-2017 Vinay Sajip. # Licensed to the Python Software Foundation under a contributor agreement. # See LICENSE.txt and CONTRIBUTORS.txt. # from __future__ import absolute_import import os import re import sys try: import ssl except ImportError: # pragma: no cover s...
castiel248/Convert
Lib/site-packages/pip/_vendor/distlib/compat.py
Python
mit
41,259
# -*- coding: utf-8 -*- # # Copyright (C) 2012-2017 The Python Software Foundation. # See LICENSE.txt and CONTRIBUTORS.txt. # """PEP 376 implementation.""" from __future__ import unicode_literals import base64 import codecs import contextlib import hashlib import logging import os import posixpath import sys import z...
castiel248/Convert
Lib/site-packages/pip/_vendor/distlib/database.py
Python
mit
51,697
# -*- coding: utf-8 -*- # # Copyright (C) 2013 Vinay Sajip. # Licensed to the Python Software Foundation under a contributor agreement. # See LICENSE.txt and CONTRIBUTORS.txt. # import hashlib import logging import os import shutil import subprocess import tempfile try: from threading import Thread except ImportErr...
castiel248/Convert
Lib/site-packages/pip/_vendor/distlib/index.py
Python
mit
20,834
# -*- coding: utf-8 -*- # # Copyright (C) 2012-2015 Vinay Sajip. # Licensed to the Python Software Foundation under a contributor agreement. # See LICENSE.txt and CONTRIBUTORS.txt. # import gzip from io import BytesIO import json import logging import os import posixpath import re try: import threading except Impo...
castiel248/Convert
Lib/site-packages/pip/_vendor/distlib/locators.py
Python
mit
51,991
# -*- coding: utf-8 -*- # # Copyright (C) 2012-2013 Python Software Foundation. # See LICENSE.txt and CONTRIBUTORS.txt. # """ Class representing the list of files in a distribution. Equivalent to distutils.filelist, but fixes some problems. """ import fnmatch import logging import os import re import sys from . impor...
castiel248/Convert
Lib/site-packages/pip/_vendor/distlib/manifest.py
Python
mit
14,811
# -*- coding: utf-8 -*- # # Copyright (C) 2012-2017 Vinay Sajip. # Licensed to the Python Software Foundation under a contributor agreement. # See LICENSE.txt and CONTRIBUTORS.txt. # """ Parser for the environment markers micro-language defined in PEP 508. """ # Note: In PEP 345, the micro-language was Python compatib...
castiel248/Convert
Lib/site-packages/pip/_vendor/distlib/markers.py
Python
mit
5,058
# -*- coding: utf-8 -*- # # Copyright (C) 2012 The Python Software Foundation. # See LICENSE.txt and CONTRIBUTORS.txt. # """Implementation of the Metadata for Python packages PEPs. Supports all metadata formats (1.0, 1.1, 1.2, 1.3/2.1 and 2.2). """ from __future__ import unicode_literals import codecs from email impo...
castiel248/Convert
Lib/site-packages/pip/_vendor/distlib/metadata.py
Python
mit
39,801
# -*- coding: utf-8 -*- # # Copyright (C) 2013-2017 Vinay Sajip. # Licensed to the Python Software Foundation under a contributor agreement. # See LICENSE.txt and CONTRIBUTORS.txt. # from __future__ import unicode_literals import bisect import io import logging import os import pkgutil import sys import types import z...
castiel248/Convert
Lib/site-packages/pip/_vendor/distlib/resources.py
Python
mit
10,820
# -*- coding: utf-8 -*- # # Copyright (C) 2013-2015 Vinay Sajip. # Licensed to the Python Software Foundation under a contributor agreement. # See LICENSE.txt and CONTRIBUTORS.txt. # from io import BytesIO import logging import os import re import struct import sys import time from zipfile import ZipInfo from .compat ...
castiel248/Convert
Lib/site-packages/pip/_vendor/distlib/scripts.py
Python
mit
18,102
# # Copyright (C) 2012-2021 The Python Software Foundation. # See LICENSE.txt and CONTRIBUTORS.txt. # import codecs from collections import deque import contextlib import csv from glob import iglob as std_iglob import io import json import logging import os import py_compile import re import socket try: import ssl ...
castiel248/Convert
Lib/site-packages/pip/_vendor/distlib/util.py
Python
mit
66,262
# -*- coding: utf-8 -*- # # Copyright (C) 2012-2017 The Python Software Foundation. # See LICENSE.txt and CONTRIBUTORS.txt. # """ Implementation of a flexible versioning scheme providing support for PEP-440, setuptools-compatible and semantic versioning. """ import logging import re from .compat import string_types f...
castiel248/Convert
Lib/site-packages/pip/_vendor/distlib/version.py
Python
mit
23,513
# -*- coding: utf-8 -*- # # Copyright (C) 2013-2020 Vinay Sajip. # Licensed to the Python Software Foundation under a contributor agreement. # See LICENSE.txt and CONTRIBUTORS.txt. # from __future__ import unicode_literals import base64 import codecs import datetime from email import message_from_file import hashlib i...
castiel248/Convert
Lib/site-packages/pip/_vendor/distlib/wheel.py
Python
mit
43,898
from .distro import ( NORMALIZED_DISTRO_ID, NORMALIZED_LSB_ID, NORMALIZED_OS_ID, LinuxDistribution, __version__, build_number, codename, distro_release_attr, distro_release_info, id, info, like, linux_distribution, lsb_release_attr, lsb_release_info, major...
castiel248/Convert
Lib/site-packages/pip/_vendor/distro/__init__.py
Python
mit
981
from .distro import main if __name__ == "__main__": main()
castiel248/Convert
Lib/site-packages/pip/_vendor/distro/__main__.py
Python
mit
64
#!/usr/bin/env python # Copyright 2015,2016,2017 Nir Cohen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
castiel248/Convert
Lib/site-packages/pip/_vendor/distro/distro.py
Python
mit
48,841
from .package_data import __version__ from .core import ( IDNABidiError, IDNAError, InvalidCodepoint, InvalidCodepointContext, alabel, check_bidi, check_hyphen_ok, check_initial_combiner, check_label, check_nfc, decode, encode, ulabel, uts46_remap, valid_conte...
castiel248/Convert
Lib/site-packages/pip/_vendor/idna/__init__.py
Python
mit
849
from .core import encode, decode, alabel, ulabel, IDNAError import codecs import re from typing import Tuple, Optional _unicode_dots_re = re.compile('[\u002e\u3002\uff0e\uff61]') class Codec(codecs.Codec): def encode(self, data: str, errors: str = 'strict') -> Tuple[bytes, int]: if errors != 'strict': ...
castiel248/Convert
Lib/site-packages/pip/_vendor/idna/codec.py
Python
mit
3,374
from .core import * from .codec import * from typing import Any, Union def ToASCII(label: str) -> bytes: return encode(label) def ToUnicode(label: Union[bytes, bytearray]) -> str: return decode(label) def nameprep(s: Any) -> None: raise NotImplementedError('IDNA 2008 does not utilise nameprep protocol') ...
castiel248/Convert
Lib/site-packages/pip/_vendor/idna/compat.py
Python
mit
321
from . import idnadata import bisect import unicodedata import re from typing import Union, Optional from .intranges import intranges_contain _virama_combining_class = 9 _alabel_prefix = b'xn--' _unicode_dots_re = re.compile('[\u002e\u3002\uff0e\uff61]') class IDNAError(UnicodeError): """ Base exception for all I...
castiel248/Convert
Lib/site-packages/pip/_vendor/idna/core.py
Python
mit
12,950
# This file is automatically generated by tools/idna-data __version__ = '15.0.0' scripts = { 'Greek': ( 0x37000000374, 0x37500000378, 0x37a0000037e, 0x37f00000380, 0x38400000385, 0x38600000387, 0x3880000038b, 0x38c0000038d, 0x38e000003a2, ...
castiel248/Convert
Lib/site-packages/pip/_vendor/idna/idnadata.py
Python
mit
44,375
""" Given a list of integers, made up of (hopefully) a small number of long runs of consecutive integers, compute a representation of the form ((start1, end1), (start2, end2) ...). Then answer the question "was x present in the original list?" in time O(log(# runs)). """ import bisect from typing import List, Tuple d...
castiel248/Convert
Lib/site-packages/pip/_vendor/idna/intranges.py
Python
mit
1,881
__version__ = '3.4'
castiel248/Convert
Lib/site-packages/pip/_vendor/idna/package_data.py
Python
mit
21
# This file is automatically generated by tools/idna-data # vim: set fileencoding=utf-8 : from typing import List, Tuple, Union """IDNA Mapping Table from UTS46.""" __version__ = '15.0.0' def _seg_0() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: return [ (0x0, '3'), (0x1, '3'), (0x2, '3')...
castiel248/Convert
Lib/site-packages/pip/_vendor/idna/uts46data.py
Python
mit
206,539
# coding: utf-8 from .exceptions import * from .ext import ExtType, Timestamp import os import sys version = (1, 0, 4) __version__ = "1.0.4" if os.environ.get("MSGPACK_PUREPYTHON") or sys.version_info[0] == 2: from .fallback import Packer, unpackb, Unpacker else: try: from ._cmsgpack import Packer,...
castiel248/Convert
Lib/site-packages/pip/_vendor/msgpack/__init__.py
Python
mit
1,132
class UnpackException(Exception): """Base class for some exceptions raised while unpacking. NOTE: unpack may raise exception other than subclass of UnpackException. If you want to catch all error, catch Exception instead. """ class BufferFull(UnpackException): pass class OutOfData(UnpackEx...
castiel248/Convert
Lib/site-packages/pip/_vendor/msgpack/exceptions.py
Python
mit
1,081
# coding: utf-8 from collections import namedtuple import datetime import sys import struct PY2 = sys.version_info[0] == 2 if PY2: int_types = (int, long) _utc = None else: int_types = int try: _utc = datetime.timezone.utc except AttributeError: _utc = datetime.timezone(datetime.t...
castiel248/Convert
Lib/site-packages/pip/_vendor/msgpack/ext.py
Python
mit
6,080
"""Fallback pure Python implementation of msgpack""" from datetime import datetime as _DateTime import sys import struct PY2 = sys.version_info[0] == 2 if PY2: int_types = (int, long) def dict_iteritems(d): return d.iteritems() else: int_types = int unicode = str xrange = range def ...
castiel248/Convert
Lib/site-packages/pip/_vendor/msgpack/fallback.py
Python
mit
34,557
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. __all__ = [ "__title__", "__summary__", "__uri__", "__version__", "__author__", "__email__", "__license__", ...
castiel248/Convert
Lib/site-packages/pip/_vendor/packaging/__about__.py
Python
mit
661
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from .__about__ import ( __author__, __copyright__, __email__, __license__, __summary__, __title__, __uri__, ...
castiel248/Convert
Lib/site-packages/pip/_vendor/packaging/__init__.py
Python
mit
497
import collections import functools import os import re import struct import sys import warnings from typing import IO, Dict, Iterator, NamedTuple, Optional, Tuple # Python does not provide platform information at sufficient granularity to # identify the architecture of the running executable in some cases, so we # d...
castiel248/Convert
Lib/site-packages/pip/_vendor/packaging/_manylinux.py
Python
mit
11,488
"""PEP 656 support. This module implements logic to detect if the currently running Python is linked against musl, and what musl version is used. """ import contextlib import functools import operator import os import re import struct import subprocess import sys from typing import IO, Iterator, NamedTuple, Optional,...
castiel248/Convert
Lib/site-packages/pip/_vendor/packaging/_musllinux.py
Python
mit
4,378
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. class InfinityType: def __repr__(self) -> str: return "Infinity" def __hash__(self) -> int: return hash(repr(self...
castiel248/Convert
Lib/site-packages/pip/_vendor/packaging/_structures.py
Python
mit
1,431
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. import operator import os import platform import sys from typing import Any, Callable, Dict, List, Optional, Tuple, Union from pip._vendor...
castiel248/Convert
Lib/site-packages/pip/_vendor/packaging/markers.py
Python
mit
8,487
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. import re import string import urllib.parse from typing import List, Optional as TOptional, Set from pip._vendor.pyparsing import ( # noq...
castiel248/Convert
Lib/site-packages/pip/_vendor/packaging/requirements.py
Python
mit
4,676
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. import abc import functools import itertools import re import warnings from typing import ( Callable, Dict, Iterable, Itera...
castiel248/Convert
Lib/site-packages/pip/_vendor/packaging/specifiers.py
Python
mit
30,110
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. import logging import platform import sys import sysconfig from importlib.machinery import EXTENSION_SUFFIXES from typing import ( Dict...
castiel248/Convert
Lib/site-packages/pip/_vendor/packaging/tags.py
Python
mit
15,699
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. import re from typing import FrozenSet, NewType, Tuple, Union, cast from .tags import Tag, parse_tag from .version import InvalidVersion, ...
castiel248/Convert
Lib/site-packages/pip/_vendor/packaging/utils.py
Python
mit
4,200
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. import collections import itertools import re import warnings from typing import Callable, Iterator, List, Optional, SupportsInt, Tuple, Un...
castiel248/Convert
Lib/site-packages/pip/_vendor/packaging/version.py
Python
mit
14,665
"""Wrappers to build Python packages using PEP 517 hooks """ __version__ = '0.13.0' from .wrappers import * # noqa: F401, F403
castiel248/Convert
Lib/site-packages/pip/_vendor/pep517/__init__.py
Python
mit
130
__all__ = ("tomllib",) import sys if sys.version_info >= (3, 11): import tomllib else: from pip._vendor import tomli as tomllib
castiel248/Convert
Lib/site-packages/pip/_vendor/pep517/_compat.py
Python
mit
138
"""Build a project using PEP 517 hooks. """ import argparse import logging import os import shutil import tempfile from ._compat import tomllib from .envbuild import BuildEnvironment from .wrappers import Pep517HookCaller log = logging.getLogger(__name__) def validate_system(system): """ Ensure build system...
castiel248/Convert
Lib/site-packages/pip/_vendor/pep517/build.py
Python
mit
3,443
"""Check a project and backend by attempting to build using PEP 517 hooks. """ import argparse import logging import os import shutil import sys import tarfile import zipfile from os.path import isfile from os.path import join as pjoin from subprocess import CalledProcessError from tempfile import mkdtemp from ._compa...
castiel248/Convert
Lib/site-packages/pip/_vendor/pep517/check.py
Python
mit
6,083
"""Nicer log formatting with colours. Code copied from Tornado, Apache licensed. """ # Copyright 2012 Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licen...
castiel248/Convert
Lib/site-packages/pip/_vendor/pep517/colorlog.py
Python
mit
3,994
import io import os import zipfile def dir_to_zipfile(root): """Construct an in-memory zip file for a directory.""" buffer = io.BytesIO() zip_file = zipfile.ZipFile(buffer, 'w') for root, dirs, files in os.walk(root): for path in dirs: fs_path = os.path.join(root, path) ...
castiel248/Convert
Lib/site-packages/pip/_vendor/pep517/dirtools.py
Python
mit
607
"""Build wheels/sdists by installing build deps to a temporary environment. """ import logging import os import shutil import sys from subprocess import check_call from sysconfig import get_paths from tempfile import mkdtemp from ._compat import tomllib from .wrappers import LoggerWrapper, Pep517HookCaller log = log...
castiel248/Convert
Lib/site-packages/pip/_vendor/pep517/envbuild.py
Python
mit
6,081
"""This is a subpackage because the directory is on sys.path for _in_process.py The subpackage should stay as empty as possible to avoid shadowing modules that the backend might import. """ from contextlib import contextmanager from os.path import abspath, dirname from os.path import join as pjoin try: import imp...
castiel248/Convert
Lib/site-packages/pip/_vendor/pep517/in_process/__init__.py
Python
mit
872
"""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...
castiel248/Convert
Lib/site-packages/pip/_vendor/pep517/in_process/_in_process.py
Python
mit
10,801
"""Build metadata for a project using PEP 517 hooks. """ import argparse import functools import logging import os import shutil import tempfile try: import importlib.metadata as imp_meta except ImportError: import importlib_metadata as imp_meta try: from zipfile import Path except ImportError: from z...
castiel248/Convert
Lib/site-packages/pip/_vendor/pep517/meta.py
Python
mit
2,520
import json import os import sys import tempfile import threading from contextlib import contextmanager from os.path import abspath from os.path import join as pjoin from subprocess import STDOUT, check_call, check_output from .in_process import _in_proc_script_path __all__ = [ 'BackendUnavailable', 'BackendI...
castiel248/Convert
Lib/site-packages/pip/_vendor/pep517/wrappers.py
Python
mit
12,721
# coding: utf-8 """ Package resource API -------------------- A resource is a logical file contained within a package, or a logical subdirectory thereof. The package resource API expects resource names to have their path parts separated with ``/``, *not* whatever the local path separator is. Do not use os.path opera...
castiel248/Convert
Lib/site-packages/pip/_vendor/pkg_resources/__init__.py
Python
mit
108,287
import os import errno import sys from pip._vendor import six def _makedirs_31(path, exist_ok=False): try: os.makedirs(path) except OSError as exc: if not exist_ok or exc.errno != errno.EEXIST: raise # rely on compatibility behavior until mode considerations # and exists_ok con...
castiel248/Convert
Lib/site-packages/pip/_vendor/pkg_resources/py31compat.py
Python
mit
562
""" 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 pathlib import Path from typing import TYPE_CHECKING if TYPE_CHECKING: from pip._vendor.typing_extensions import Liter...
castiel248/Convert
Lib/site-packages/pip/_vendor/platformdirs/__init__.py
Python
mit
12,831
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_runtime_dir", "site_data_dir", "site_config_dir", ) def ...
castiel248/Convert
Lib/site-packages/pip/_vendor/platformdirs/__main__.py
Python
mit
1,176
from __future__ import annotations import os import re import sys from functools import lru_cache from typing import cast from .api import PlatformDirsABC class Android(PlatformDirsABC): """ Follows the guidance `from here <https://android.stackexchange.com/a/216132>`_. Makes use of the `appname <platfo...
castiel248/Convert
Lib/site-packages/pip/_vendor/platformdirs/android.py
Python
mit
4,068
from __future__ import annotations import os import sys from abc import ABC, abstractmethod from pathlib import Path if sys.version_info >= (3, 8): # pragma: no branch from typing import Literal # pragma: no cover class PlatformDirsABC(ABC): """ Abstract base class for platform directories. """ ...
castiel248/Convert
Lib/site-packages/pip/_vendor/platformdirs/api.py
Python
mit
4,910
from __future__ import annotations import os 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/documentation/FileManagement/Conceptual/FileSys...
castiel248/Convert
Lib/site-packages/pip/_vendor/platformdirs/macos.py
Python
mit
2,655
from __future__ import annotations import os import sys from configparser import ConfigParser from pathlib import Path from .api import PlatformDirsABC if sys.platform.startswith("linux"): # pragma: no branch # no op check, only to please the type checker from os import getuid else: def getuid() -> int: ...
castiel248/Convert
Lib/site-packages/pip/_vendor/platformdirs/unix.py
Python
mit
6,910
"""Version information""" __version__ = "2.5.2" __version_info__ = (2, 5, 2)
castiel248/Convert
Lib/site-packages/pip/_vendor/platformdirs/version.py
Python
mit
78
from __future__ import annotations import ctypes import os from functools import lru_cache from typing import Callable from .api import PlatformDirsABC class Windows(PlatformDirsABC): """`MSDN on where to store app data files <http://support.microsoft.com/default.aspx?scid=kb;en-us;310294#XSLTH3194121123120...
castiel248/Convert
Lib/site-packages/pip/_vendor/platformdirs/windows.py
Python
mit
6,439
""" Pygments ~~~~~~~~ Pygments is a syntax highlighting package written in Python. It is a generic syntax highlighter for general use in all kinds of software such as forum systems, wikis or other applications that need to prettify source code. Highlights are: * a wide range of common lan...
castiel248/Convert
Lib/site-packages/pip/_vendor/pygments/__init__.py
Python
mit
2,999
""" pygments.__main__ ~~~~~~~~~~~~~~~~~ Main entry point for ``python -m pygments``. :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import sys from pip._vendor.pygments.cmdline import main try: sys.exit(main(sys.argv)) except Ke...
castiel248/Convert
Lib/site-packages/pip/_vendor/pygments/__main__.py
Python
mit
353
""" pygments.cmdline ~~~~~~~~~~~~~~~~ Command line interface. :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import os import sys import shutil import argparse from textwrap import dedent from pip._vendor.pygments import __version__...
castiel248/Convert
Lib/site-packages/pip/_vendor/pygments/cmdline.py
Python
mit
23,685
""" pygments.console ~~~~~~~~~~~~~~~~ Format colored console output. :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ esc = "\x1b[" codes = {} codes[""] = "" codes["reset"] = esc + "39;49;00m" codes["bold"] = esc + "01m" codes["faint...
castiel248/Convert
Lib/site-packages/pip/_vendor/pygments/console.py
Python
mit
1,697
""" pygments.filter ~~~~~~~~~~~~~~~ Module that implements the default filter. :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ def apply_filters(stream, filters, lexer=None): """ Use this method to apply an iterable of filter...
castiel248/Convert
Lib/site-packages/pip/_vendor/pygments/filter.py
Python
mit
1,938
""" pygments.filters ~~~~~~~~~~~~~~~~ Module containing filter lookup functions and default filters. :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from pip._vendor.pygments.token import String, Comment, Keyword, Name,...
castiel248/Convert
Lib/site-packages/pip/_vendor/pygments/filters/__init__.py
Python
mit
40,386
""" pygments.formatter ~~~~~~~~~~~~~~~~~~ Base formatter class. :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import codecs from pip._vendor.pygments.util import get_bool_opt from pip._vendor.pygments.styles import get_style_by_nam...
castiel248/Convert
Lib/site-packages/pip/_vendor/pygments/formatter.py
Python
mit
2,917
""" pygments.formatters ~~~~~~~~~~~~~~~~~~~ Pygments formatters. :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re import sys import types from fnmatch import fnmatch from os.path import basename from pip._vendor.pygments.for...
castiel248/Convert
Lib/site-packages/pip/_vendor/pygments/formatters/__init__.py
Python
mit
4,810
# Automatically generated by scripts/gen_mapfiles.py. # DO NOT EDIT BY HAND; run `make 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 your ...
castiel248/Convert
Lib/site-packages/pip/_vendor/pygments/formatters/_mapping.py
Python
mit
4,104
""" pygments.formatters.bbcode ~~~~~~~~~~~~~~~~~~~~~~~~~~ BBcode formatter. :copyright: Copyright 2006-2022 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...
castiel248/Convert
Lib/site-packages/pip/_vendor/pygments/formatters/bbcode.py
Python
mit
3,314