Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- data/miniconda3/lib/python3.13/__phello__/__pycache__/__init__.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/__phello__/__pycache__/spam.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/ctypes/macholib/__pycache__/__init__.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/ctypes/macholib/__pycache__/dyld.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/ctypes/macholib/__pycache__/dylib.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/email/__pycache__/__init__.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/email/__pycache__/_encoded_words.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/email/__pycache__/_parseaddr.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/email/__pycache__/_policybase.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/email/__pycache__/base64mime.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/email/__pycache__/charset.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/email/__pycache__/contentmanager.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/email/__pycache__/encoders.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/email/__pycache__/errors.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/email/__pycache__/feedparser.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/email/__pycache__/generator.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/email/__pycache__/header.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/email/__pycache__/headerregistry.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/email/__pycache__/iterators.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/email/__pycache__/message.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/email/__pycache__/parser.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/email/__pycache__/policy.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/email/__pycache__/quoprimime.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/email/__pycache__/utils.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/email/mime/__init__.py +0 -0
- data/miniconda3/lib/python3.13/email/mime/__pycache__/__init__.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/email/mime/__pycache__/application.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/email/mime/__pycache__/audio.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/email/mime/__pycache__/base.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/email/mime/__pycache__/image.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/email/mime/__pycache__/message.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/email/mime/__pycache__/multipart.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/email/mime/__pycache__/nonmultipart.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/email/mime/__pycache__/text.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/email/mime/application.py +37 -0
- data/miniconda3/lib/python3.13/email/mime/audio.py +97 -0
- data/miniconda3/lib/python3.13/email/mime/base.py +29 -0
- data/miniconda3/lib/python3.13/email/mime/image.py +152 -0
- data/miniconda3/lib/python3.13/email/mime/message.py +33 -0
- data/miniconda3/lib/python3.13/email/mime/multipart.py +47 -0
- data/miniconda3/lib/python3.13/email/mime/nonmultipart.py +21 -0
- data/miniconda3/lib/python3.13/email/mime/text.py +40 -0
- data/miniconda3/lib/python3.13/ensurepip/__pycache__/__init__.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/ensurepip/__pycache__/__main__.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/ensurepip/__pycache__/_uninstall.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/idlelib/Icons/README.txt +51 -0
- data/miniconda3/lib/python3.13/idlelib/Icons/idle.ico +0 -0
- data/miniconda3/lib/python3.13/idlelib/__pycache__/__init__.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/idlelib/__pycache__/__main__.cpython-313.pyc +0 -0
- data/miniconda3/lib/python3.13/idlelib/__pycache__/autocomplete.cpython-313.pyc +0 -0
data/miniconda3/lib/python3.13/__phello__/__pycache__/__init__.cpython-313.pyc
ADDED
|
Binary file (366 Bytes). View file
|
|
|
data/miniconda3/lib/python3.13/__phello__/__pycache__/spam.cpython-313.pyc
ADDED
|
Binary file (362 Bytes). View file
|
|
|
data/miniconda3/lib/python3.13/ctypes/macholib/__pycache__/__init__.cpython-313.pyc
ADDED
|
Binary file (311 Bytes). View file
|
|
|
data/miniconda3/lib/python3.13/ctypes/macholib/__pycache__/dyld.cpython-313.pyc
ADDED
|
Binary file (7.02 kB). View file
|
|
|
data/miniconda3/lib/python3.13/ctypes/macholib/__pycache__/dylib.cpython-313.pyc
ADDED
|
Binary file (1.22 kB). View file
|
|
|
data/miniconda3/lib/python3.13/email/__pycache__/__init__.cpython-313.pyc
ADDED
|
Binary file (1.88 kB). View file
|
|
|
data/miniconda3/lib/python3.13/email/__pycache__/_encoded_words.cpython-313.pyc
ADDED
|
Binary file (8.28 kB). View file
|
|
|
data/miniconda3/lib/python3.13/email/__pycache__/_parseaddr.cpython-313.pyc
ADDED
|
Binary file (23.6 kB). View file
|
|
|
data/miniconda3/lib/python3.13/email/__pycache__/_policybase.cpython-313.pyc
ADDED
|
Binary file (18 kB). View file
|
|
|
data/miniconda3/lib/python3.13/email/__pycache__/base64mime.cpython-313.pyc
ADDED
|
Binary file (3.97 kB). View file
|
|
|
data/miniconda3/lib/python3.13/email/__pycache__/charset.cpython-313.pyc
ADDED
|
Binary file (14.9 kB). View file
|
|
|
data/miniconda3/lib/python3.13/email/__pycache__/contentmanager.cpython-313.pyc
ADDED
|
Binary file (12.2 kB). View file
|
|
|
data/miniconda3/lib/python3.13/email/__pycache__/encoders.cpython-313.pyc
ADDED
|
Binary file (2.05 kB). View file
|
|
|
data/miniconda3/lib/python3.13/email/__pycache__/errors.cpython-313.pyc
ADDED
|
Binary file (7.58 kB). View file
|
|
|
data/miniconda3/lib/python3.13/email/__pycache__/feedparser.cpython-313.pyc
ADDED
|
Binary file (20.6 kB). View file
|
|
|
data/miniconda3/lib/python3.13/email/__pycache__/generator.cpython-313.pyc
ADDED
|
Binary file (20.6 kB). View file
|
|
|
data/miniconda3/lib/python3.13/email/__pycache__/header.cpython-313.pyc
ADDED
|
Binary file (25 kB). View file
|
|
|
data/miniconda3/lib/python3.13/email/__pycache__/headerregistry.cpython-313.pyc
ADDED
|
Binary file (31.4 kB). View file
|
|
|
data/miniconda3/lib/python3.13/email/__pycache__/iterators.cpython-313.pyc
ADDED
|
Binary file (2.81 kB). View file
|
|
|
data/miniconda3/lib/python3.13/email/__pycache__/message.cpython-313.pyc
ADDED
|
Binary file (51.8 kB). View file
|
|
|
data/miniconda3/lib/python3.13/email/__pycache__/parser.cpython-313.pyc
ADDED
|
Binary file (6.51 kB). View file
|
|
|
data/miniconda3/lib/python3.13/email/__pycache__/policy.cpython-313.pyc
ADDED
|
Binary file (11.4 kB). View file
|
|
|
data/miniconda3/lib/python3.13/email/__pycache__/quoprimime.cpython-313.pyc
ADDED
|
Binary file (9.9 kB). View file
|
|
|
data/miniconda3/lib/python3.13/email/__pycache__/utils.cpython-313.pyc
ADDED
|
Binary file (16.8 kB). View file
|
|
|
data/miniconda3/lib/python3.13/email/mime/__init__.py
ADDED
|
File without changes
|
data/miniconda3/lib/python3.13/email/mime/__pycache__/__init__.cpython-313.pyc
ADDED
|
Binary file (134 Bytes). View file
|
|
|
data/miniconda3/lib/python3.13/email/mime/__pycache__/application.cpython-313.pyc
ADDED
|
Binary file (1.66 kB). View file
|
|
|
data/miniconda3/lib/python3.13/email/mime/__pycache__/audio.cpython-313.pyc
ADDED
|
Binary file (3.32 kB). View file
|
|
|
data/miniconda3/lib/python3.13/email/mime/__pycache__/base.cpython-313.pyc
ADDED
|
Binary file (1.32 kB). View file
|
|
|
data/miniconda3/lib/python3.13/email/mime/__pycache__/image.cpython-313.pyc
ADDED
|
Binary file (5.81 kB). View file
|
|
|
data/miniconda3/lib/python3.13/email/mime/__pycache__/message.cpython-313.pyc
ADDED
|
Binary file (1.58 kB). View file
|
|
|
data/miniconda3/lib/python3.13/email/mime/__pycache__/multipart.cpython-313.pyc
ADDED
|
Binary file (1.7 kB). View file
|
|
|
data/miniconda3/lib/python3.13/email/mime/__pycache__/nonmultipart.cpython-313.pyc
ADDED
|
Binary file (914 Bytes). View file
|
|
|
data/miniconda3/lib/python3.13/email/mime/__pycache__/text.cpython-313.pyc
ADDED
|
Binary file (1.5 kB). View file
|
|
|
data/miniconda3/lib/python3.13/email/mime/application.py
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (C) 2001-2006 Python Software Foundation
|
| 2 |
+
# Author: Keith Dart
|
| 3 |
+
# Contact: email-sig@python.org
|
| 4 |
+
|
| 5 |
+
"""Class representing application/* type MIME documents."""
|
| 6 |
+
|
| 7 |
+
__all__ = ["MIMEApplication"]
|
| 8 |
+
|
| 9 |
+
from email import encoders
|
| 10 |
+
from email.mime.nonmultipart import MIMENonMultipart
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
class MIMEApplication(MIMENonMultipart):
|
| 14 |
+
"""Class for generating application/* MIME documents."""
|
| 15 |
+
|
| 16 |
+
def __init__(self, _data, _subtype='octet-stream',
|
| 17 |
+
_encoder=encoders.encode_base64, *, policy=None, **_params):
|
| 18 |
+
"""Create an application/* type MIME document.
|
| 19 |
+
|
| 20 |
+
_data contains the bytes for the raw application data.
|
| 21 |
+
|
| 22 |
+
_subtype is the MIME content type subtype, defaulting to
|
| 23 |
+
'octet-stream'.
|
| 24 |
+
|
| 25 |
+
_encoder is a function which will perform the actual encoding for
|
| 26 |
+
transport of the application data, defaulting to base64 encoding.
|
| 27 |
+
|
| 28 |
+
Any additional keyword arguments are passed to the base class
|
| 29 |
+
constructor, which turns them into parameters on the Content-Type
|
| 30 |
+
header.
|
| 31 |
+
"""
|
| 32 |
+
if _subtype is None:
|
| 33 |
+
raise TypeError('Invalid application MIME subtype')
|
| 34 |
+
MIMENonMultipart.__init__(self, 'application', _subtype, policy=policy,
|
| 35 |
+
**_params)
|
| 36 |
+
self.set_payload(_data)
|
| 37 |
+
_encoder(self)
|
data/miniconda3/lib/python3.13/email/mime/audio.py
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (C) 2001-2007 Python Software Foundation
|
| 2 |
+
# Author: Anthony Baxter
|
| 3 |
+
# Contact: email-sig@python.org
|
| 4 |
+
|
| 5 |
+
"""Class representing audio/* type MIME documents."""
|
| 6 |
+
|
| 7 |
+
__all__ = ['MIMEAudio']
|
| 8 |
+
|
| 9 |
+
from email import encoders
|
| 10 |
+
from email.mime.nonmultipart import MIMENonMultipart
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
class MIMEAudio(MIMENonMultipart):
|
| 14 |
+
"""Class for generating audio/* MIME documents."""
|
| 15 |
+
|
| 16 |
+
def __init__(self, _audiodata, _subtype=None,
|
| 17 |
+
_encoder=encoders.encode_base64, *, policy=None, **_params):
|
| 18 |
+
"""Create an audio/* type MIME document.
|
| 19 |
+
|
| 20 |
+
_audiodata contains the bytes for the raw audio data. If this data
|
| 21 |
+
can be decoded as au, wav, aiff, or aifc, then the
|
| 22 |
+
subtype will be automatically included in the Content-Type header.
|
| 23 |
+
Otherwise, you can specify the specific audio subtype via the
|
| 24 |
+
_subtype parameter. If _subtype is not given, and no subtype can be
|
| 25 |
+
guessed, a TypeError is raised.
|
| 26 |
+
|
| 27 |
+
_encoder is a function which will perform the actual encoding for
|
| 28 |
+
transport of the image data. It takes one argument, which is this
|
| 29 |
+
Image instance. It should use get_payload() and set_payload() to
|
| 30 |
+
change the payload to the encoded form. It should also add any
|
| 31 |
+
Content-Transfer-Encoding or other headers to the message as
|
| 32 |
+
necessary. The default encoding is Base64.
|
| 33 |
+
|
| 34 |
+
Any additional keyword arguments are passed to the base class
|
| 35 |
+
constructor, which turns them into parameters on the Content-Type
|
| 36 |
+
header.
|
| 37 |
+
"""
|
| 38 |
+
if _subtype is None:
|
| 39 |
+
_subtype = _what(_audiodata)
|
| 40 |
+
if _subtype is None:
|
| 41 |
+
raise TypeError('Could not find audio MIME subtype')
|
| 42 |
+
MIMENonMultipart.__init__(self, 'audio', _subtype, policy=policy,
|
| 43 |
+
**_params)
|
| 44 |
+
self.set_payload(_audiodata)
|
| 45 |
+
_encoder(self)
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
_rules = []
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
# Originally from the sndhdr module.
|
| 52 |
+
#
|
| 53 |
+
# There are others in sndhdr that don't have MIME types. :(
|
| 54 |
+
# Additional ones to be added to sndhdr? midi, mp3, realaudio, wma??
|
| 55 |
+
def _what(data):
|
| 56 |
+
# Try to identify a sound file type.
|
| 57 |
+
#
|
| 58 |
+
# sndhdr.what() had a pretty cruddy interface, unfortunately. This is why
|
| 59 |
+
# we re-do it here. It would be easier to reverse engineer the Unix 'file'
|
| 60 |
+
# command and use the standard 'magic' file, as shipped with a modern Unix.
|
| 61 |
+
for testfn in _rules:
|
| 62 |
+
if res := testfn(data):
|
| 63 |
+
return res
|
| 64 |
+
else:
|
| 65 |
+
return None
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
def rule(rulefunc):
|
| 69 |
+
_rules.append(rulefunc)
|
| 70 |
+
return rulefunc
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
@rule
|
| 74 |
+
def _aiff(h):
|
| 75 |
+
if not h.startswith(b'FORM'):
|
| 76 |
+
return None
|
| 77 |
+
if h[8:12] in {b'AIFC', b'AIFF'}:
|
| 78 |
+
return 'x-aiff'
|
| 79 |
+
else:
|
| 80 |
+
return None
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
@rule
|
| 84 |
+
def _au(h):
|
| 85 |
+
if h.startswith(b'.snd'):
|
| 86 |
+
return 'basic'
|
| 87 |
+
else:
|
| 88 |
+
return None
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
@rule
|
| 92 |
+
def _wav(h):
|
| 93 |
+
# 'RIFF' <len> 'WAVE' 'fmt ' <len>
|
| 94 |
+
if not h.startswith(b'RIFF') or h[8:12] != b'WAVE' or h[12:16] != b'fmt ':
|
| 95 |
+
return None
|
| 96 |
+
else:
|
| 97 |
+
return "x-wav"
|
data/miniconda3/lib/python3.13/email/mime/base.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (C) 2001-2006 Python Software Foundation
|
| 2 |
+
# Author: Barry Warsaw
|
| 3 |
+
# Contact: email-sig@python.org
|
| 4 |
+
|
| 5 |
+
"""Base class for MIME specializations."""
|
| 6 |
+
|
| 7 |
+
__all__ = ['MIMEBase']
|
| 8 |
+
|
| 9 |
+
import email.policy
|
| 10 |
+
|
| 11 |
+
from email import message
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
class MIMEBase(message.Message):
|
| 15 |
+
"""Base class for MIME specializations."""
|
| 16 |
+
|
| 17 |
+
def __init__(self, _maintype, _subtype, *, policy=None, **_params):
|
| 18 |
+
"""This constructor adds a Content-Type: and a MIME-Version: header.
|
| 19 |
+
|
| 20 |
+
The Content-Type: header is taken from the _maintype and _subtype
|
| 21 |
+
arguments. Additional parameters for this header are taken from the
|
| 22 |
+
keyword arguments.
|
| 23 |
+
"""
|
| 24 |
+
if policy is None:
|
| 25 |
+
policy = email.policy.compat32
|
| 26 |
+
message.Message.__init__(self, policy=policy)
|
| 27 |
+
ctype = '%s/%s' % (_maintype, _subtype)
|
| 28 |
+
self.add_header('Content-Type', ctype, **_params)
|
| 29 |
+
self['MIME-Version'] = '1.0'
|
data/miniconda3/lib/python3.13/email/mime/image.py
ADDED
|
@@ -0,0 +1,152 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (C) 2001-2006 Python Software Foundation
|
| 2 |
+
# Author: Barry Warsaw
|
| 3 |
+
# Contact: email-sig@python.org
|
| 4 |
+
|
| 5 |
+
"""Class representing image/* type MIME documents."""
|
| 6 |
+
|
| 7 |
+
__all__ = ['MIMEImage']
|
| 8 |
+
|
| 9 |
+
from email import encoders
|
| 10 |
+
from email.mime.nonmultipart import MIMENonMultipart
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
class MIMEImage(MIMENonMultipart):
|
| 14 |
+
"""Class for generating image/* type MIME documents."""
|
| 15 |
+
|
| 16 |
+
def __init__(self, _imagedata, _subtype=None,
|
| 17 |
+
_encoder=encoders.encode_base64, *, policy=None, **_params):
|
| 18 |
+
"""Create an image/* type MIME document.
|
| 19 |
+
|
| 20 |
+
_imagedata contains the bytes for the raw image data. If the data
|
| 21 |
+
type can be detected (jpeg, png, gif, tiff, rgb, pbm, pgm, ppm,
|
| 22 |
+
rast, xbm, bmp, webp, and exr attempted), then the subtype will be
|
| 23 |
+
automatically included in the Content-Type header. Otherwise, you can
|
| 24 |
+
specify the specific image subtype via the _subtype parameter.
|
| 25 |
+
|
| 26 |
+
_encoder is a function which will perform the actual encoding for
|
| 27 |
+
transport of the image data. It takes one argument, which is this
|
| 28 |
+
Image instance. It should use get_payload() and set_payload() to
|
| 29 |
+
change the payload to the encoded form. It should also add any
|
| 30 |
+
Content-Transfer-Encoding or other headers to the message as
|
| 31 |
+
necessary. The default encoding is Base64.
|
| 32 |
+
|
| 33 |
+
Any additional keyword arguments are passed to the base class
|
| 34 |
+
constructor, which turns them into parameters on the Content-Type
|
| 35 |
+
header.
|
| 36 |
+
"""
|
| 37 |
+
_subtype = _what(_imagedata) if _subtype is None else _subtype
|
| 38 |
+
if _subtype is None:
|
| 39 |
+
raise TypeError('Could not guess image MIME subtype')
|
| 40 |
+
MIMENonMultipart.__init__(self, 'image', _subtype, policy=policy,
|
| 41 |
+
**_params)
|
| 42 |
+
self.set_payload(_imagedata)
|
| 43 |
+
_encoder(self)
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
_rules = []
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
# Originally from the imghdr module.
|
| 50 |
+
def _what(data):
|
| 51 |
+
for rule in _rules:
|
| 52 |
+
if res := rule(data):
|
| 53 |
+
return res
|
| 54 |
+
else:
|
| 55 |
+
return None
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
def rule(rulefunc):
|
| 59 |
+
_rules.append(rulefunc)
|
| 60 |
+
return rulefunc
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
@rule
|
| 64 |
+
def _jpeg(h):
|
| 65 |
+
"""JPEG data with JFIF or Exif markers; and raw JPEG"""
|
| 66 |
+
if h[6:10] in (b'JFIF', b'Exif'):
|
| 67 |
+
return 'jpeg'
|
| 68 |
+
elif h[:4] == b'\xff\xd8\xff\xdb':
|
| 69 |
+
return 'jpeg'
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
@rule
|
| 73 |
+
def _png(h):
|
| 74 |
+
if h.startswith(b'\211PNG\r\n\032\n'):
|
| 75 |
+
return 'png'
|
| 76 |
+
|
| 77 |
+
|
| 78 |
+
@rule
|
| 79 |
+
def _gif(h):
|
| 80 |
+
"""GIF ('87 and '89 variants)"""
|
| 81 |
+
if h[:6] in (b'GIF87a', b'GIF89a'):
|
| 82 |
+
return 'gif'
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
@rule
|
| 86 |
+
def _tiff(h):
|
| 87 |
+
"""TIFF (can be in Motorola or Intel byte order)"""
|
| 88 |
+
if h[:2] in (b'MM', b'II'):
|
| 89 |
+
return 'tiff'
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
@rule
|
| 93 |
+
def _rgb(h):
|
| 94 |
+
"""SGI image library"""
|
| 95 |
+
if h.startswith(b'\001\332'):
|
| 96 |
+
return 'rgb'
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
@rule
|
| 100 |
+
def _pbm(h):
|
| 101 |
+
"""PBM (portable bitmap)"""
|
| 102 |
+
if len(h) >= 3 and \
|
| 103 |
+
h[0] == ord(b'P') and h[1] in b'14' and h[2] in b' \t\n\r':
|
| 104 |
+
return 'pbm'
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
@rule
|
| 108 |
+
def _pgm(h):
|
| 109 |
+
"""PGM (portable graymap)"""
|
| 110 |
+
if len(h) >= 3 and \
|
| 111 |
+
h[0] == ord(b'P') and h[1] in b'25' and h[2] in b' \t\n\r':
|
| 112 |
+
return 'pgm'
|
| 113 |
+
|
| 114 |
+
|
| 115 |
+
@rule
|
| 116 |
+
def _ppm(h):
|
| 117 |
+
"""PPM (portable pixmap)"""
|
| 118 |
+
if len(h) >= 3 and \
|
| 119 |
+
h[0] == ord(b'P') and h[1] in b'36' and h[2] in b' \t\n\r':
|
| 120 |
+
return 'ppm'
|
| 121 |
+
|
| 122 |
+
|
| 123 |
+
@rule
|
| 124 |
+
def _rast(h):
|
| 125 |
+
"""Sun raster file"""
|
| 126 |
+
if h.startswith(b'\x59\xA6\x6A\x95'):
|
| 127 |
+
return 'rast'
|
| 128 |
+
|
| 129 |
+
|
| 130 |
+
@rule
|
| 131 |
+
def _xbm(h):
|
| 132 |
+
"""X bitmap (X10 or X11)"""
|
| 133 |
+
if h.startswith(b'#define '):
|
| 134 |
+
return 'xbm'
|
| 135 |
+
|
| 136 |
+
|
| 137 |
+
@rule
|
| 138 |
+
def _bmp(h):
|
| 139 |
+
if h.startswith(b'BM'):
|
| 140 |
+
return 'bmp'
|
| 141 |
+
|
| 142 |
+
|
| 143 |
+
@rule
|
| 144 |
+
def _webp(h):
|
| 145 |
+
if h.startswith(b'RIFF') and h[8:12] == b'WEBP':
|
| 146 |
+
return 'webp'
|
| 147 |
+
|
| 148 |
+
|
| 149 |
+
@rule
|
| 150 |
+
def _exr(h):
|
| 151 |
+
if h.startswith(b'\x76\x2f\x31\x01'):
|
| 152 |
+
return 'exr'
|
data/miniconda3/lib/python3.13/email/mime/message.py
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (C) 2001-2006 Python Software Foundation
|
| 2 |
+
# Author: Barry Warsaw
|
| 3 |
+
# Contact: email-sig@python.org
|
| 4 |
+
|
| 5 |
+
"""Class representing message/* MIME documents."""
|
| 6 |
+
|
| 7 |
+
__all__ = ['MIMEMessage']
|
| 8 |
+
|
| 9 |
+
from email import message
|
| 10 |
+
from email.mime.nonmultipart import MIMENonMultipart
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
class MIMEMessage(MIMENonMultipart):
|
| 14 |
+
"""Class representing message/* MIME documents."""
|
| 15 |
+
|
| 16 |
+
def __init__(self, _msg, _subtype='rfc822', *, policy=None):
|
| 17 |
+
"""Create a message/* type MIME document.
|
| 18 |
+
|
| 19 |
+
_msg is a message object and must be an instance of Message, or a
|
| 20 |
+
derived class of Message, otherwise a TypeError is raised.
|
| 21 |
+
|
| 22 |
+
Optional _subtype defines the subtype of the contained message. The
|
| 23 |
+
default is "rfc822" (this is defined by the MIME standard, even though
|
| 24 |
+
the term "rfc822" is technically outdated by RFC 2822).
|
| 25 |
+
"""
|
| 26 |
+
MIMENonMultipart.__init__(self, 'message', _subtype, policy=policy)
|
| 27 |
+
if not isinstance(_msg, message.Message):
|
| 28 |
+
raise TypeError('Argument is not an instance of Message')
|
| 29 |
+
# It's convenient to use this base class method. We need to do it
|
| 30 |
+
# this way or we'll get an exception
|
| 31 |
+
message.Message.attach(self, _msg)
|
| 32 |
+
# And be sure our default type is set correctly
|
| 33 |
+
self.set_default_type('message/rfc822')
|
data/miniconda3/lib/python3.13/email/mime/multipart.py
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (C) 2002-2006 Python Software Foundation
|
| 2 |
+
# Author: Barry Warsaw
|
| 3 |
+
# Contact: email-sig@python.org
|
| 4 |
+
|
| 5 |
+
"""Base class for MIME multipart/* type messages."""
|
| 6 |
+
|
| 7 |
+
__all__ = ['MIMEMultipart']
|
| 8 |
+
|
| 9 |
+
from email.mime.base import MIMEBase
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
class MIMEMultipart(MIMEBase):
|
| 13 |
+
"""Base class for MIME multipart/* type messages."""
|
| 14 |
+
|
| 15 |
+
def __init__(self, _subtype='mixed', boundary=None, _subparts=None,
|
| 16 |
+
*, policy=None,
|
| 17 |
+
**_params):
|
| 18 |
+
"""Creates a multipart/* type message.
|
| 19 |
+
|
| 20 |
+
By default, creates a multipart/mixed message, with proper
|
| 21 |
+
Content-Type and MIME-Version headers.
|
| 22 |
+
|
| 23 |
+
_subtype is the subtype of the multipart content type, defaulting to
|
| 24 |
+
`mixed'.
|
| 25 |
+
|
| 26 |
+
boundary is the multipart boundary string. By default it is
|
| 27 |
+
calculated as needed.
|
| 28 |
+
|
| 29 |
+
_subparts is a sequence of initial subparts for the payload. It
|
| 30 |
+
must be an iterable object, such as a list. You can always
|
| 31 |
+
attach new subparts to the message by using the attach() method.
|
| 32 |
+
|
| 33 |
+
Additional parameters for the Content-Type header are taken from the
|
| 34 |
+
keyword arguments (or passed into the _params argument).
|
| 35 |
+
"""
|
| 36 |
+
MIMEBase.__init__(self, 'multipart', _subtype, policy=policy, **_params)
|
| 37 |
+
|
| 38 |
+
# Initialise _payload to an empty list as the Message superclass's
|
| 39 |
+
# implementation of is_multipart assumes that _payload is a list for
|
| 40 |
+
# multipart messages.
|
| 41 |
+
self._payload = []
|
| 42 |
+
|
| 43 |
+
if _subparts:
|
| 44 |
+
for p in _subparts:
|
| 45 |
+
self.attach(p)
|
| 46 |
+
if boundary:
|
| 47 |
+
self.set_boundary(boundary)
|
data/miniconda3/lib/python3.13/email/mime/nonmultipart.py
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (C) 2002-2006 Python Software Foundation
|
| 2 |
+
# Author: Barry Warsaw
|
| 3 |
+
# Contact: email-sig@python.org
|
| 4 |
+
|
| 5 |
+
"""Base class for MIME type messages that are not multipart."""
|
| 6 |
+
|
| 7 |
+
__all__ = ['MIMENonMultipart']
|
| 8 |
+
|
| 9 |
+
from email import errors
|
| 10 |
+
from email.mime.base import MIMEBase
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
class MIMENonMultipart(MIMEBase):
|
| 14 |
+
"""Base class for MIME non-multipart type messages."""
|
| 15 |
+
|
| 16 |
+
def attach(self, payload):
|
| 17 |
+
# The public API prohibits attaching multiple subparts to MIMEBase
|
| 18 |
+
# derived subtypes since none of them are, by definition, of content
|
| 19 |
+
# type multipart/*
|
| 20 |
+
raise errors.MultipartConversionError(
|
| 21 |
+
'Cannot attach additional subparts to non-multipart/*')
|
data/miniconda3/lib/python3.13/email/mime/text.py
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (C) 2001-2006 Python Software Foundation
|
| 2 |
+
# Author: Barry Warsaw
|
| 3 |
+
# Contact: email-sig@python.org
|
| 4 |
+
|
| 5 |
+
"""Class representing text/* type MIME documents."""
|
| 6 |
+
|
| 7 |
+
__all__ = ['MIMEText']
|
| 8 |
+
|
| 9 |
+
from email.mime.nonmultipart import MIMENonMultipart
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
class MIMEText(MIMENonMultipart):
|
| 13 |
+
"""Class for generating text/* type MIME documents."""
|
| 14 |
+
|
| 15 |
+
def __init__(self, _text, _subtype='plain', _charset=None, *, policy=None):
|
| 16 |
+
"""Create a text/* type MIME document.
|
| 17 |
+
|
| 18 |
+
_text is the string for this message object.
|
| 19 |
+
|
| 20 |
+
_subtype is the MIME sub content type, defaulting to "plain".
|
| 21 |
+
|
| 22 |
+
_charset is the character set parameter added to the Content-Type
|
| 23 |
+
header. This defaults to "us-ascii". Note that as a side-effect, the
|
| 24 |
+
Content-Transfer-Encoding header will also be set.
|
| 25 |
+
"""
|
| 26 |
+
|
| 27 |
+
# If no _charset was specified, check to see if there are non-ascii
|
| 28 |
+
# characters present. If not, use 'us-ascii', otherwise use utf-8.
|
| 29 |
+
# XXX: This can be removed once #7304 is fixed.
|
| 30 |
+
if _charset is None:
|
| 31 |
+
try:
|
| 32 |
+
_text.encode('us-ascii')
|
| 33 |
+
_charset = 'us-ascii'
|
| 34 |
+
except UnicodeEncodeError:
|
| 35 |
+
_charset = 'utf-8'
|
| 36 |
+
|
| 37 |
+
MIMENonMultipart.__init__(self, 'text', _subtype, policy=policy,
|
| 38 |
+
charset=str(_charset))
|
| 39 |
+
|
| 40 |
+
self.set_payload(_text, _charset)
|
data/miniconda3/lib/python3.13/ensurepip/__pycache__/__init__.cpython-313.pyc
ADDED
|
Binary file (8.32 kB). View file
|
|
|
data/miniconda3/lib/python3.13/ensurepip/__pycache__/__main__.cpython-313.pyc
ADDED
|
Binary file (318 Bytes). View file
|
|
|
data/miniconda3/lib/python3.13/ensurepip/__pycache__/_uninstall.cpython-313.pyc
ADDED
|
Binary file (1.32 kB). View file
|
|
|
data/miniconda3/lib/python3.13/idlelib/Icons/README.txt
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
IDLE-PYTHON LOGOS
|
| 2 |
+
|
| 3 |
+
These are sent to tk on Windows, *NIX, and non-Aqua macOS
|
| 4 |
+
in pyshell following "# set application icon".
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
2006?: Andrew Clover made variously sized python icons for win23.
|
| 8 |
+
https://www.doxdesk.com/software/py/pyicons.html
|
| 9 |
+
|
| 10 |
+
2006: 16, 32, and 48 bit .png versions were copied to CPython
|
| 11 |
+
as Python application icons, maybe in PC/icons/py.ico.
|
| 12 |
+
https://github.com/python/cpython/issues/43372
|
| 13 |
+
|
| 14 |
+
2014: They were copied (perhaps a bit revised) to idlelib/Icons.
|
| 15 |
+
https://github.com/python/cpython/issues/64605
|
| 16 |
+
.gif versions were also added.
|
| 17 |
+
|
| 18 |
+
2020: Add Clover's 256-bit image.
|
| 19 |
+
https://github.com/python/cpython/issues/82620
|
| 20 |
+
Other fixups were done.
|
| 21 |
+
|
| 22 |
+
The idle.ico file used for Windows was created with ImageMagick:
|
| 23 |
+
$ convert idle_16.png idle_32.png idle_48.png idle_256.png idle.ico
|
| 24 |
+
** This needs redoing whenever files are changed.
|
| 25 |
+
?? Do Start, Desktop, and Taskbar use idlelib/Icons files?
|
| 26 |
+
|
| 27 |
+
Issue added Windows Store PC/icons/idlex44.png and .../idlex150.png.
|
| 28 |
+
https://github.com/python/cpython/pull/22817
|
| 29 |
+
?? Should these be updated with major changes?
|
| 30 |
+
|
| 31 |
+
2022: Optimize .png images in CPython repository with external program.
|
| 32 |
+
https://github.com/python/cpython/pull/21348
|
| 33 |
+
idle.ico (and idlex##) were not updated.
|
| 34 |
+
|
| 35 |
+
The idlexx.gif files are only needed for *nix running tcl/tk 8.5.
|
| 36 |
+
As of 2022, this was known true for 1 'major' Linux distribution.
|
| 37 |
+
(Same would be true for any non-Aqua macOS with 8.5, but now none?)
|
| 38 |
+
Can be deleted when we require 8.6 or it is known always used.
|
| 39 |
+
|
| 40 |
+
Future: Derivatives of Python logo should be submitted for approval.
|
| 41 |
+
PSF Trademark Working Group / Committee psf-trademarks@python.org
|
| 42 |
+
https://www.python.org/community/logos/ # Original files
|
| 43 |
+
https://www.python.org/psf/trademarks-faq/
|
| 44 |
+
https://www.python.org/psf/trademarks/ # Usage.
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
OTHER GIFS: These are used by browsers using idlelib.tree.
|
| 48 |
+
At least some will not be used when tree is replaced by ttk.Treeview.
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
Edited 2024 August 26 by TJR.
|
data/miniconda3/lib/python3.13/idlelib/Icons/idle.ico
ADDED
|
|
data/miniconda3/lib/python3.13/idlelib/__pycache__/__init__.cpython-313.pyc
ADDED
|
Binary file (514 Bytes). View file
|
|
|
data/miniconda3/lib/python3.13/idlelib/__pycache__/__main__.cpython-313.pyc
ADDED
|
Binary file (329 Bytes). View file
|
|
|
data/miniconda3/lib/python3.13/idlelib/__pycache__/autocomplete.cpython-313.pyc
ADDED
|
Binary file (11.2 kB). View file
|
|
|