chunk_id
stringlengths
36
36
source
stringclasses
35 values
source_url
stringlengths
0
290
upstream_license
stringclasses
1 value
document_id
stringlengths
36
36
chunk_index
int64
0
324k
retrieved_at
stringclasses
2 values
chunker_version
stringclasses
4 values
content_hash
stringlengths
15
64
content
stringlengths
50
44.7k
namespace
stringclasses
9 values
source_name
stringclasses
35 values
raw_text
stringlengths
50
44.7k
cleaned_text
stringlengths
50
44.7k
tags
stringclasses
49 values
collection_name
stringclasses
11 values
4b7a25b5-fa46-4e17-9880-0d1477cf7398
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,886
supabase-export-v2
a8aca453e1c338ad
.. versionadded:: 3.6 [1]_ The central class in the :mod:`email` package is the :class:`EmailMessage` class, imported from the :mod:`!email.message` module. It is the base class for the :mod:`email` object model. :class:`EmailMessage` provides the core functionality for setting and querying header fields, for accessing...
trusted_official_docs
CPython Docs
.. versionadded:: 3.6 [1]_ The central class in the :mod:`email` package is the :class:`EmailMessage` class, imported from the :mod:`!email.message` module. It is the base class for the :mod:`email` object model. :class:`EmailMessage` provides the core functionality for setting and querying header fields, for accessing...
.. versionadded:: 3.6 [1]_ The central class in the :mod:`email` package is the :class:`EmailMessage` class, imported from the :mod:`!email.message` module. It is the base class for the :mod:`email` object model. :class:`EmailMessage` provides the core functionality for setting and querying header fields, for accessing...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4ff0b41c-f989-4e6e-bc78-5c8502fb1000
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,975
supabase-export-v2
8ad29bcdc9c3394e
completely from the :mailheader:`Content-Type` header. The header will be re-written in place without the parameter or its value. Optional *header* specifies an alternative to :mailheader:`Content-Type`. Use of the *requote* parameter with :class:`EmailMessage` objects is deprecated.
trusted_official_docs
CPython Docs
completely from the :mailheader:`Content-Type` header. The header will be re-written in place without the parameter or its value. Optional *header* specifies an alternative to :mailheader:`Content-Type`. Use of the *requote* parameter with :class:`EmailMessage` objects is deprecated.
completely from the :mailheader:`Content-Type` header. The header will be re-written in place without the parameter or its value. Optional *header* specifies an alternative to :mailheader:`Content-Type`. Use of the *requote* parameter with :class:`EmailMessage` objects is deprecated.
python, official-docs, cpython, P0
Local_Trusted_Corpus
52a11912-84bc-4f47-ab4f-f8bc392d386e
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,914
supabase-export-v2
d4aa11f89b1e301f
in which they were added to the message later. Any header deleted and then re-added is always appended to the end of the header list. These semantic differences are intentional and are biased toward convenience in the most common use cases.
trusted_official_docs
CPython Docs
in which they were added to the message later. Any header deleted and then re-added is always appended to the end of the header list. These semantic differences are intentional and are biased toward convenience in the most common use cases.
in which they were added to the message later. Any header deleted and then re-added is always appended to the end of the header list. These semantic differences are intentional and are biased toward convenience in the most common use cases.
python, official-docs, cpython, P0
Local_Trusted_Corpus
53416643-15cc-40ae-9f69-04cd0b9403d7
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,924
supabase-export-v2
85d882fd7f2b1056
which of those field values will be returned is undefined. Use the :meth:`get_all` method to get the values of all the extant headers named *name*. Using the standard (non-``compat32``) policies, the returned value is an instance of a subclass of :class:`email.headerregistry.BaseHeader`.
trusted_official_docs
CPython Docs
which of those field values will be returned is undefined. Use the :meth:`get_all` method to get the values of all the extant headers named *name*. Using the standard (non-``compat32``) policies, the returned value is an instance of a subclass of :class:`email.headerregistry.BaseHeader`.
which of those field values will be returned is undefined. Use the :meth:`get_all` method to get the values of all the extant headers named *name*. Using the standard (non-``compat32``) policies, the returned value is an instance of a subclass of :class:`email.headerregistry.BaseHeader`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
5351b8aa-3d51-4dd8-9bad-603cf2603d20
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,981
supabase-export-v2
957ebb4a3f41a637
.. method:: set_boundary(boundary) Set the ``boundary`` parameter of the :mailheader:`Content-Type` header to *boundary*. :meth:`set_boundary` will always quote *boundary* if necessary. A :exc:`~email.errors.HeaderParseError` is raised if the message object has no :mailheader:`Content-Type` header.
trusted_official_docs
CPython Docs
.. method:: set_boundary(boundary) Set the ``boundary`` parameter of the :mailheader:`Content-Type` header to *boundary*. :meth:`set_boundary` will always quote *boundary* if necessary. A :exc:`~email.errors.HeaderParseError` is raised if the message object has no :mailheader:`Content-Type` header.
.. method:: set_boundary(boundary) Set the ``boundary`` parameter of the :mailheader:`Content-Type` header to *boundary*. :meth:`set_boundary` will always quote *boundary* if necessary. A :exc:`~email.errors.HeaderParseError` is raised if the message object has no :mailheader:`Content-Type` header.
python, official-docs, cpython, P0
Local_Trusted_Corpus
5a54fb56-a63e-47da-9d78-870b84db8a80
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
5,045
supabase-export-v2
a551337952cb7923
.. attribute:: epilogue The *epilogue* attribute acts the same way as the *preamble* attribute, except that it contains text that appears between the last boundary and the end of the message. As with the :attr:`~EmailMessage.preamble`, if there is no epilog text this attribute will be ``None``.
trusted_official_docs
CPython Docs
.. attribute:: epilogue The *epilogue* attribute acts the same way as the *preamble* attribute, except that it contains text that appears between the last boundary and the end of the message. As with the :attr:`~EmailMessage.preamble`, if there is no epilog text this attribute will be ``None``.
.. attribute:: epilogue The *epilogue* attribute acts the same way as the *preamble* attribute, except that it contains text that appears between the last boundary and the end of the message. As with the :attr:`~EmailMessage.preamble`, if there is no epilog text this attribute will be ``None``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
5bed213f-4be3-428d-b324-ffc4a6242818
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,889
supabase-export-v2
0b8eacf80eea2f99
the MIME content type), for operating on the payload, for generating a serialized version of the message, and for recursively walking over the object tree. The :class:`EmailMessage` dictionary-like interface is indexed by the header names, which must be ASCII values. The values of the dictionary are strings with some e...
trusted_official_docs
CPython Docs
the MIME content type), for operating on the payload, for generating a serialized version of the message, and for recursively walking over the object tree. The :class:`EmailMessage` dictionary-like interface is indexed by the header names, which must be ASCII values. The values of the dictionary are strings with some e...
the MIME content type), for operating on the payload, for generating a serialized version of the message, and for recursively walking over the object tree. The :class:`EmailMessage` dictionary-like interface is indexed by the header names, which must be ASCII values. The values of the dictionary are strings with some e...
python, official-docs, cpython, P0
Local_Trusted_Corpus
696cd761-7f82-4e93-9410-d9104585cb62
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
5,033
supabase-export-v2
0e55a61d6a3689d5
If the message is any other type of ``multipart``, raise a :exc:`TypeError`. If *content_manager* is not specified, use the ``content_manager`` specified by the current :mod:`~email.policy`. .. method:: add_attachment(*args, content_manager=None, **kw)
trusted_official_docs
CPython Docs
If the message is any other type of ``multipart``, raise a :exc:`TypeError`. If *content_manager* is not specified, use the ``content_manager`` specified by the current :mod:`~email.policy`. .. method:: add_attachment(*args, content_manager=None, **kw)
If the message is any other type of ``multipart``, raise a :exc:`TypeError`. If *content_manager* is not specified, use the ``content_manager`` specified by the current :mod:`~email.policy`. .. method:: add_attachment(*args, content_manager=None, **kw)
python, official-docs, cpython, P0
Local_Trusted_Corpus
6a07f619-a12d-41dd-9297-9293dccdcd80
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
5,052
supabase-export-v2
abbf6f1b202ce297
.. [1] Originally added in 3.4 as a :term:`provisional module <provisional package>`. Docs for legacy message class moved to :ref:`compat32_message`. .. [2] The :class:`EmailMessage` class requires a policy that provides a ``content_manager`` attribute for content management methods like ``set_content()`` and ``get_c...
trusted_official_docs
CPython Docs
.. [1] Originally added in 3.4 as a :term:`provisional module <provisional package>`. Docs for legacy message class moved to :ref:`compat32_message`. .. [2] The :class:`EmailMessage` class requires a policy that provides a ``content_manager`` attribute for content management methods like ``set_content()`` and ``get_c...
.. [1] Originally added in 3.4 as a :term:`provisional module <provisional package>`. Docs for legacy message class moved to :ref:`compat32_message`. .. [2] The :class:`EmailMessage` class requires a policy that provides a ``content_manager`` attribute for content management methods like ``set_content()`` and ``get_c...
python, official-docs, cpython, P0
Local_Trusted_Corpus
6b647540-75b5-4969-b178-b9236d773214
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,984
supabase-export-v2
40cf3f644d85debe
.. method:: get_content_charset(failobj=None) Return the ``charset`` parameter of the :mailheader:`Content-Type` header, coerced to lower case. If there is no :mailheader:`Content-Type` header, or if that header has no ``charset`` parameter, *failobj* is returned.
trusted_official_docs
CPython Docs
.. method:: get_content_charset(failobj=None) Return the ``charset`` parameter of the :mailheader:`Content-Type` header, coerced to lower case. If there is no :mailheader:`Content-Type` header, or if that header has no ``charset`` parameter, *failobj* is returned.
.. method:: get_content_charset(failobj=None) Return the ``charset`` parameter of the :mailheader:`Content-Type` header, coerced to lower case. If there is no :mailheader:`Content-Type` header, or if that header has no ``charset`` parameter, *failobj* is returned.
python, official-docs, cpython, P0
Local_Trusted_Corpus
6e104e68-f24e-4d0f-8fa3-6c265e64f113
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
5,021
supabase-export-v2
903f05c89c613050
object, and passing along any other arguments or keywords as additional arguments. If *content_manager* is not specified, use the ``content_manager`` specified by the current :mod:`~email.policy`. .. method:: set_content(*args, content_manager=None, **kw)
trusted_official_docs
CPython Docs
object, and passing along any other arguments or keywords as additional arguments. If *content_manager* is not specified, use the ``content_manager`` specified by the current :mod:`~email.policy`. .. method:: set_content(*args, content_manager=None, **kw)
object, and passing along any other arguments or keywords as additional arguments. If *content_manager* is not specified, use the ``content_manager`` specified by the current :mod:`~email.policy`. .. method:: set_content(*args, content_manager=None, **kw)
python, official-docs, cpython, P0
Local_Trusted_Corpus
6f74128e-3ea6-42a3-b57a-cc1ef8a4e411
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
5,009
supabase-export-v2
c8e3a51c9e81e001
a sequence of strings from the set ``related``, ``html``, and ``plain``, and indicates the order of preference for the content type of the part returned. Start looking for candidate matches with the object on which the ``get_body`` method is called.
trusted_official_docs
CPython Docs
a sequence of strings from the set ``related``, ``html``, and ``plain``, and indicates the order of preference for the content type of the part returned. Start looking for candidate matches with the object on which the ``get_body`` method is called.
a sequence of strings from the set ``related``, ``html``, and ``plain``, and indicates the order of preference for the content type of the part returned. Start looking for candidate matches with the object on which the ``get_body`` method is called.
python, official-docs, cpython, P0
Local_Trusted_Corpus
74b49e07-63e2-42e9-a799-abc682437ea5
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,888
supabase-export-v2
27a771a966ce64fe
of headers and their own payload. The latter type of payload is indicated by the message having a MIME type such as :mimetype:`multipart/\*` or :mimetype:`message/rfc822`. The conceptual model provided by an :class:`EmailMessage` object is that of an ordered dictionary of headers coupled with a *payload* that represent...
trusted_official_docs
CPython Docs
of headers and their own payload. The latter type of payload is indicated by the message having a MIME type such as :mimetype:`multipart/\*` or :mimetype:`message/rfc822`. The conceptual model provided by an :class:`EmailMessage` object is that of an ordered dictionary of headers coupled with a *payload* that represent...
of headers and their own payload. The latter type of payload is indicated by the message having a MIME type such as :mimetype:`multipart/\*` or :mimetype:`message/rfc822`. The conceptual model provided by an :class:`EmailMessage` object is that of an ordered dictionary of headers coupled with a *payload* that represent...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7927cf57-989e-4f2c-b173-4716d46e4958
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
5,028
supabase-export-v2
50311d2c768ec097
.. method:: make_mixed(boundary=None) Convert a non-``multipart``, a ``multipart/related``, or a ``multipart-alternative`` into a ``multipart/mixed``, moving any existing :mailheader:`Content-` headers and payload into a (new) first part of the ``multipart``. If *boundary* is specified, use it as the boundary string...
trusted_official_docs
CPython Docs
.. method:: make_mixed(boundary=None) Convert a non-``multipart``, a ``multipart/related``, or a ``multipart-alternative`` into a ``multipart/mixed``, moving any existing :mailheader:`Content-` headers and payload into a (new) first part of the ``multipart``. If *boundary* is specified, use it as the boundary string...
.. method:: make_mixed(boundary=None) Convert a non-``multipart``, a ``multipart/related``, or a ``multipart-alternative`` into a ``multipart/mixed``, moving any existing :mailheader:`Content-` headers and payload into a (new) first part of the ``multipart``. If *boundary* is specified, use it as the boundary string...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7d48ac58-f26b-4bad-8b49-8ab1c11a5c5d
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,913
supabase-export-v2
9ea04ccf584d739c
Return the message's envelope header. Defaults to ``None`` if the envelope header was never set. The following methods implement the mapping-like interface for accessing the message's headers. Note that there are some semantic differences between these methods and a normal mapping (i.e. dictionary) interface. For ex...
trusted_official_docs
CPython Docs
Return the message's envelope header. Defaults to ``None`` if the envelope header was never set. The following methods implement the mapping-like interface for accessing the message's headers. Note that there are some semantic differences between these methods and a normal mapping (i.e. dictionary) interface. For ex...
Return the message's envelope header. Defaults to ``None`` if the envelope header was never set. The following methods implement the mapping-like interface for accessing the message's headers. Note that there are some semantic differences between these methods and a normal mapping (i.e. dictionary) interface. For ex...
python, official-docs, cpython, P0
Local_Trusted_Corpus
806c444e-0c70-49cd-bd46-7a8a94f1723a
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,915
supabase-export-v2
6f704aa323ddff01
These semantic differences are intentional and are biased toward convenience in the most common use cases. Note that in all cases, any envelope header present in the message is not included in the mapping interface.
trusted_official_docs
CPython Docs
These semantic differences are intentional and are biased toward convenience in the most common use cases. Note that in all cases, any envelope header present in the message is not included in the mapping interface.
These semantic differences are intentional and are biased toward convenience in the most common use cases. Note that in all cases, any envelope header present in the message is not included in the mapping interface.
python, official-docs, cpython, P0
Local_Trusted_Corpus
81e2e5d1-7de1-4632-955b-7977270c2a74
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,902
supabase-export-v2
dca3b82b7893ac7d
.. method:: as_bytes(unixfrom=False, policy=None) Return the entire message flattened as a bytes object. When optional *unixfrom* is true, the envelope header is included in the returned string. *unixfrom* defaults to ``False``. The *policy* argument may be used to override the default policy obtained from the messa...
trusted_official_docs
CPython Docs
.. method:: as_bytes(unixfrom=False, policy=None) Return the entire message flattened as a bytes object. When optional *unixfrom* is true, the envelope header is included in the returned string. *unixfrom* defaults to ``False``. The *policy* argument may be used to override the default policy obtained from the messa...
.. method:: as_bytes(unixfrom=False, policy=None) Return the entire message flattened as a bytes object. When optional *unixfrom* is true, the envelope header is included in the returned string. *unixfrom* defaults to ``False``. The *policy* argument may be used to override the default policy obtained from the messa...
python, official-docs, cpython, P0
Local_Trusted_Corpus
83fab475-3434-481d-8c50-aeec295f0671
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,897
supabase-export-v2
6da13c1e861132a0
serializing messages. Note also that this method is restricted to producing messages serialized as "7 bit clean" when :attr:`~email.policy.EmailPolicy.utf8` is ``False``, which is the default. .. versionchanged:: 3.6 the default behavior when *maxheaderlen* is not specified was changed from defaulting to 0 to defaulti...
trusted_official_docs
CPython Docs
serializing messages. Note also that this method is restricted to producing messages serialized as "7 bit clean" when :attr:`~email.policy.EmailPolicy.utf8` is ``False``, which is the default. .. versionchanged:: 3.6 the default behavior when *maxheaderlen* is not specified was changed from defaulting to 0 to defaulti...
serializing messages. Note also that this method is restricted to producing messages serialized as "7 bit clean" when :attr:`~email.policy.EmailPolicy.utf8` is ``False``, which is the default. .. versionchanged:: 3.6 the default behavior when *maxheaderlen* is not specified was changed from defaulting to 0 to defaulti...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8427f24a-7ffd-45f7-be22-03526ffda2a1
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,967
supabase-export-v2
1a822b19046ebe00
.. method:: set_param(param, value, header='Content-Type', requote=True, \ charset=None, language='', replace=False) Set a parameter in the :mailheader:`Content-Type` header. If the parameter already exists in the header, replace its value with *value*. When *header* is ``Content-Type`` (the default) and the header do...
trusted_official_docs
CPython Docs
.. method:: set_param(param, value, header='Content-Type', requote=True, \ charset=None, language='', replace=False) Set a parameter in the :mailheader:`Content-Type` header. If the parameter already exists in the header, replace its value with *value*. When *header* is ``Content-Type`` (the default) and the header do...
.. method:: set_param(param, value, header='Content-Type', requote=True, \ charset=None, language='', replace=False) Set a parameter in the :mailheader:`Content-Type` header. If the parameter already exists in the header, replace its value with *value*. When *header* is ``Content-Type`` (the default) and the header do...
python, official-docs, cpython, P0
Local_Trusted_Corpus
85e6ce9e-d3d3-4299-9674-7e57cb641437
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
5,014
supabase-export-v2
e777ad4b099784bd
If none of the candidates matches any of the preferences in *preferencelist*, return ``None``. Notes: (1) For most applications the only *preferencelist* combinations that really make sense are ``('plain',)``, ``('html', 'plain')``, and the default ``('related', 'html', 'plain')``. (2) Because matching starts with t...
trusted_official_docs
CPython Docs
If none of the candidates matches any of the preferences in *preferencelist*, return ``None``. Notes: (1) For most applications the only *preferencelist* combinations that really make sense are ``('plain',)``, ``('html', 'plain')``, and the default ``('related', 'html', 'plain')``. (2) Because matching starts with t...
If none of the candidates matches any of the preferences in *preferencelist*, return ``None``. Notes: (1) For most applications the only *preferencelist* combinations that really make sense are ``('plain',)``, ``('html', 'plain')``, and the default ``('related', 'html', 'plain')``. (2) Because matching starts with t...
python, official-docs, cpython, P0
Local_Trusted_Corpus
895c1b71-fce3-4fb8-8b3e-1a3d6903785c
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,940
supabase-export-v2
4c5483b6b08a415e
the named header field. This is identical to :meth:`~object.__getitem__` except that optional *failobj* is returned if the named header is missing (*failobj* defaults to ``None``). Here are some additional useful header related methods:
trusted_official_docs
CPython Docs
the named header field. This is identical to :meth:`~object.__getitem__` except that optional *failobj* is returned if the named header is missing (*failobj* defaults to ``None``). Here are some additional useful header related methods:
the named header field. This is identical to :meth:`~object.__getitem__` except that optional *failobj* is returned if the named header is missing (*failobj* defaults to ``None``). Here are some additional useful header related methods:
python, official-docs, cpython, P0
Local_Trusted_Corpus
8db68876-6960-4d22-8a71-98c5af1bafdb
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,908
supabase-export-v2
8f1f1a365e69f214
.. method:: is_multipart() Return ``True`` if the message's payload is a list of sub-\ :class:`EmailMessage` objects, otherwise return ``False``. When :meth:`is_multipart` returns ``False``, the payload should be a string object (which might be a CTE encoded binary payload). Note that :meth:`is_multipart` returning...
trusted_official_docs
CPython Docs
.. method:: is_multipart() Return ``True`` if the message's payload is a list of sub-\ :class:`EmailMessage` objects, otherwise return ``False``. When :meth:`is_multipart` returns ``False``, the payload should be a string object (which might be a CTE encoded binary payload). Note that :meth:`is_multipart` returning...
.. method:: is_multipart() Return ``True`` if the message's payload is a list of sub-\ :class:`EmailMessage` objects, otherwise return ``False``. When :meth:`is_multipart` returns ``False``, the payload should be a string object (which might be a CTE encoded binary payload). Note that :meth:`is_multipart` returning...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8e169ea7-c5ea-4415-a631-4422605f8b88
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
5,020
supabase-export-v2
6541171b2b506b01
.. method:: get_content(*args, content_manager=None, **kw) Call the :meth:`~email.contentmanager.ContentManager.get_content` method of the *content_manager*, passing self as the message object, and passing along any other arguments or keywords as additional arguments. If *content_manager* is not specified, use the `...
trusted_official_docs
CPython Docs
.. method:: get_content(*args, content_manager=None, **kw) Call the :meth:`~email.contentmanager.ContentManager.get_content` method of the *content_manager*, passing self as the message object, and passing along any other arguments or keywords as additional arguments. If *content_manager* is not specified, use the `...
.. method:: get_content(*args, content_manager=None, **kw) Call the :meth:`~email.contentmanager.ContentManager.get_content` method of the *content_manager*, passing self as the message object, and passing along any other arguments or keywords as additional arguments. If *content_manager* is not specified, use the `...
python, official-docs, cpython, P0
Local_Trusted_Corpus
917a36c0-86c2-455e-a022-3c6444d66a90
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,996
supabase-export-v2
dd6828695cfd0f19
.. method:: walk() The :meth:`walk` method is an all-purpose generator which can be used to iterate over all the parts and subparts of a message object tree, in depth-first traversal order. You will typically use :meth:`walk` as the iterator in a ``for`` loop; each iteration returns the next subpart.
trusted_official_docs
CPython Docs
.. method:: walk() The :meth:`walk` method is an all-purpose generator which can be used to iterate over all the parts and subparts of a message object tree, in depth-first traversal order. You will typically use :meth:`walk` as the iterator in a ``for`` loop; each iteration returns the next subpart.
.. method:: walk() The :meth:`walk` method is an all-purpose generator which can be used to iterate over all the parts and subparts of a message object tree, in depth-first traversal order. You will typically use :meth:`walk` as the iterator in a ``for`` loop; each iteration returns the next subpart.
python, official-docs, cpython, P0
Local_Trusted_Corpus
953a39b7-215c-4e84-bef6-cd60a0740ae3
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,974
supabase-export-v2
d733eebadad96af2
.. method:: del_param(param, header='content-type', requote=True) Remove the given parameter completely from the :mailheader:`Content-Type` header. The header will be re-written in place without the parameter or its value. Optional *header* specifies an alternative to :mailheader:`Content-Type`.
trusted_official_docs
CPython Docs
.. method:: del_param(param, header='content-type', requote=True) Remove the given parameter completely from the :mailheader:`Content-Type` header. The header will be re-written in place without the parameter or its value. Optional *header* specifies an alternative to :mailheader:`Content-Type`.
.. method:: del_param(param, header='content-type', requote=True) Remove the given parameter completely from the :mailheader:`Content-Type` header. The header will be re-written in place without the parameter or its value. Optional *header* specifies an alternative to :mailheader:`Content-Type`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
957bca62-6731-4305-b31d-ed7ac548771e
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,954
supabase-export-v2
8cc88b4ac4aad734
.. method:: replace_header(_name, _value) Replace a header. Replace the first header found in the message that matches *_name*, retaining header order and field name case of the original header. If no matching header is found, raise a :exc:`KeyError`.
trusted_official_docs
CPython Docs
.. method:: replace_header(_name, _value) Replace a header. Replace the first header found in the message that matches *_name*, retaining header order and field name case of the original header. If no matching header is found, raise a :exc:`KeyError`.
.. method:: replace_header(_name, _value) Replace a header. Replace the first header found in the message that matches *_name*, retaining header order and field name case of the original header. If no matching header is found, raise a :exc:`KeyError`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9ae249cc-1ce9-4914-a521-a74b6742ccd3
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,927
supabase-export-v2
54ff28951f8f3d73
Add a header to the message with field name *name* and value *val*. The field is appended to the end of the message's existing headers. Note that this does *not* overwrite or delete any existing header with the same name. If you want to ensure that the new header is the only one present in the message with field name...
trusted_official_docs
CPython Docs
Add a header to the message with field name *name* and value *val*. The field is appended to the end of the message's existing headers. Note that this does *not* overwrite or delete any existing header with the same name. If you want to ensure that the new header is the only one present in the message with field name...
Add a header to the message with field name *name* and value *val*. The field is appended to the end of the message's existing headers. Note that this does *not* overwrite or delete any existing header with the same name. If you want to ensure that the new header is the only one present in the message with field name...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9cb45099-ff9a-49de-804a-06e7cecee278
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,965
supabase-export-v2
2b4b94827ac7d118
.. method:: set_default_type(ctype) Set the default content type. *ctype* should either be :mimetype:`text/plain` or :mimetype:`message/rfc822`, although this is not enforced. The default content type is not stored in the :mailheader:`Content-Type` header, so it only affects the return value of the ``get_content_ty...
trusted_official_docs
CPython Docs
.. method:: set_default_type(ctype) Set the default content type. *ctype* should either be :mimetype:`text/plain` or :mimetype:`message/rfc822`, although this is not enforced. The default content type is not stored in the :mailheader:`Content-Type` header, so it only affects the return value of the ``get_content_ty...
.. method:: set_default_type(ctype) Set the default content type. *ctype* should either be :mimetype:`text/plain` or :mimetype:`message/rfc822`, although this is not enforced. The default content type is not stored in the :mailheader:`Content-Type` header, so it only affects the return value of the ``get_content_ty...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a114d6ae-4ff8-4a30-b9f0-611564bda9ac
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
5,022
supabase-export-v2
fcd7babd9a0eaefe
.. method:: set_content(*args, content_manager=None, **kw) Call the :meth:`~email.contentmanager.ContentManager.set_content` method of the *content_manager*, passing self as the message object, and passing along any other arguments or keywords as additional arguments. If *content_manager* is not specified, use the `...
trusted_official_docs
CPython Docs
.. method:: set_content(*args, content_manager=None, **kw) Call the :meth:`~email.contentmanager.ContentManager.set_content` method of the *content_manager*, passing self as the message object, and passing along any other arguments or keywords as additional arguments. If *content_manager* is not specified, use the `...
.. method:: set_content(*args, content_manager=None, **kw) Call the :meth:`~email.contentmanager.ContentManager.set_content` method of the *content_manager*, passing self as the message object, and passing along any other arguments or keywords as additional arguments. If *content_manager* is not specified, use the `...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a31d3054-30fc-4914-a1a9-688056ff6457
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,946
supabase-export-v2
4656611ab2223aff
in Python identifiers). Normally, the parameter will be added as ``key="value"`` unless the value is ``None``, in which case only the key will be added. If the value contains non-ASCII characters, the charset and language may be explicitly controlled by specifying the value as a three tuple in the format ``(CHARSET, ...
trusted_official_docs
CPython Docs
in Python identifiers). Normally, the parameter will be added as ``key="value"`` unless the value is ``None``, in which case only the key will be added. If the value contains non-ASCII characters, the charset and language may be explicitly controlled by specifying the value as a three tuple in the format ``(CHARSET, ...
in Python identifiers). Normally, the parameter will be added as ``key="value"`` unless the value is ``None``, in which case only the key will be added. If the value contains non-ASCII characters, the charset and language may be explicitly controlled by specifying the value as a three tuple in the format ``(CHARSET, ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a9d6eada-e8c1-48f1-9d31-9e81c5ddc75a
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,970
supabase-export-v2
6026fadb4acc1764
(the default) the header is moved to the end of the list of headers. If *replace* is ``True``, the header will be updated in place. Use of the *requote* parameter with :class:`EmailMessage` objects is deprecated.
trusted_official_docs
CPython Docs
(the default) the header is moved to the end of the list of headers. If *replace* is ``True``, the header will be updated in place. Use of the *requote* parameter with :class:`EmailMessage` objects is deprecated.
(the default) the header is moved to the end of the list of headers. If *replace* is ``True``, the header will be updated in place. Use of the *requote* parameter with :class:`EmailMessage` objects is deprecated.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ab4f8841-0dd8-4a5c-9e08-0aa92c2a1d7d
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,900
supabase-export-v2
e1513bc89c32fdcb
Equivalent to ``as_string(policy=self.policy.clone(utf8=True))``. Allows ``str(msg)`` to produce a string containing the serialized message in a readable format. .. versionchanged:: 3.4 the method was changed to use ``utf8=True``, thus producing an :rfc:`6531`-like message representation, instead of being a direct al...
trusted_official_docs
CPython Docs
Equivalent to ``as_string(policy=self.policy.clone(utf8=True))``. Allows ``str(msg)`` to produce a string containing the serialized message in a readable format. .. versionchanged:: 3.4 the method was changed to use ``utf8=True``, thus producing an :rfc:`6531`-like message representation, instead of being a direct al...
Equivalent to ``as_string(policy=self.policy.clone(utf8=True))``. Allows ``str(msg)`` to produce a string containing the serialized message in a readable format. .. versionchanged:: 3.4 the method was changed to use ``utf8=True``, thus producing an :rfc:`6531`-like message representation, instead of being a direct al...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ab578685-09f1-4569-bffc-e7d2a79a5dd2
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,968
supabase-export-v2
b6d637c001ac9bbe
exist in the message, add it, set its value to :mimetype:`text/plain`, and append the new parameter value. Optional *header* specifies an alternative header to :mailheader:`Content-Type`. If the value contains non-ASCII characters, the charset and language may be explicitly specified using the optional *charset* and *...
trusted_official_docs
CPython Docs
exist in the message, add it, set its value to :mimetype:`text/plain`, and append the new parameter value. Optional *header* specifies an alternative header to :mailheader:`Content-Type`. If the value contains non-ASCII characters, the charset and language may be explicitly specified using the optional *charset* and *...
exist in the message, add it, set its value to :mimetype:`text/plain`, and append the new parameter value. Optional *header* specifies an alternative header to :mailheader:`Content-Type`. If the value contains non-ASCII characters, the charset and language may be explicitly specified using the optional *charset* and *...
python, official-docs, cpython, P0
Local_Trusted_Corpus
adedf53e-cf13-4b39-9908-492cd7435014
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,963
supabase-export-v2
9ed83865372ea8c5
.. method:: get_default_type() Return the default content type. Most messages have a default content type of :mimetype:`text/plain`, except for messages that are subparts of :mimetype:`multipart/digest` containers. Such subparts have a default content type of :mimetype:`message/rfc822`.
trusted_official_docs
CPython Docs
.. method:: get_default_type() Return the default content type. Most messages have a default content type of :mimetype:`text/plain`, except for messages that are subparts of :mimetype:`multipart/digest` containers. Such subparts have a default content type of :mimetype:`message/rfc822`.
.. method:: get_default_type() Return the default content type. Most messages have a default content type of :mimetype:`text/plain`, except for messages that are subparts of :mimetype:`multipart/digest` containers. Such subparts have a default content type of :mimetype:`message/rfc822`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
afccd2b7-ab3f-45d9-97b0-fb8836495890
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,904
supabase-export-v2
a47ed94598fad6fe
the :class:`EmailMessage` if defaults need to be filled in to complete the transformation to a string (for example, MIME boundaries may be generated or modified). Note that this method is provided as a convenience and may not be the most useful way to serialize messages in your application, especially if you are deal...
trusted_official_docs
CPython Docs
the :class:`EmailMessage` if defaults need to be filled in to complete the transformation to a string (for example, MIME boundaries may be generated or modified). Note that this method is provided as a convenience and may not be the most useful way to serialize messages in your application, especially if you are deal...
the :class:`EmailMessage` if defaults need to be filled in to complete the transformation to a string (for example, MIME boundaries may be generated or modified). Note that this method is provided as a convenience and may not be the most useful way to serialize messages in your application, especially if you are deal...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b00bcf46-4b90-42a8-b445-e120ea8bcdc3
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,956
supabase-export-v2
655fda48194468fe
.. method:: get_content_type() Return the message's content type, coerced to lower case of the form :mimetype:`maintype/subtype`. If there is no :mailheader:`Content-Type` header in the message return the value returned by :meth:`get_default_type`. If the :mailheader:`Content-Type` header is invalid, return ``text/...
trusted_official_docs
CPython Docs
.. method:: get_content_type() Return the message's content type, coerced to lower case of the form :mimetype:`maintype/subtype`. If there is no :mailheader:`Content-Type` header in the message return the value returned by :meth:`get_default_type`. If the :mailheader:`Content-Type` header is invalid, return ``text/...
.. method:: get_content_type() Return the message's content type, coerced to lower case of the form :mimetype:`maintype/subtype`. If there is no :mailheader:`Content-Type` header in the message return the value returned by :meth:`get_default_type`. If the :mailheader:`Content-Type` header is invalid, return ``text/...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b59beaf8-c2b0-4940-8e95-e6eae19e0907
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
5,005
supabase-export-v2
d269a704aa5061fc
... part.is_multipart()) True True False False False True False False False False False True False False >>> _structure(msg) multipart/report text/plain message/delivery-status text/plain text/plain message/rfc822 text/plain Here the ``message`` parts are not ``multiparts``, but they do contain subparts. ``is_multipar...
trusted_official_docs
CPython Docs
... part.is_multipart()) True True False False False True False False False False False True False False >>> _structure(msg) multipart/report text/plain message/delivery-status text/plain text/plain message/rfc822 text/plain Here the ``message`` parts are not ``multiparts``, but they do contain subparts. ``is_multipar...
... part.is_multipart()) True True False False False True False False False False False True False False >>> _structure(msg) multipart/report text/plain message/delivery-status text/plain text/plain message/rfc822 text/plain Here the ``message`` parts are not ``multiparts``, but they do contain subparts. ``is_multipar...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b7a66990-d88a-485e-a85e-9a11eb056d5e
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
5,042
supabase-export-v2
f950c9383d929b32
armor. However, when viewing the raw text of the message, or when viewing the message in a non-MIME aware reader, this text can become visible. The *preamble* attribute contains this leading extra-armor text for MIME documents. When the :class:`~email.parser.Parser` discovers some text after the headers but before th...
trusted_official_docs
CPython Docs
armor. However, when viewing the raw text of the message, or when viewing the message in a non-MIME aware reader, this text can become visible. The *preamble* attribute contains this leading extra-armor text for MIME documents. When the :class:`~email.parser.Parser` discovers some text after the headers but before th...
armor. However, when viewing the raw text of the message, or when viewing the message in a non-MIME aware reader, this text can become visible. The *preamble* attribute contains this leading extra-armor text for MIME documents. When the :class:`~email.parser.Parser` discovers some text after the headers but before th...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b86c7bd7-5b75-42ec-b8a1-be78302dbb74
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
5,031
supabase-export-v2
1b7689dc03486fcd
is not specified, use the ``content_manager`` specified by the current :mod:`~email.policy`. If the added part has no :mailheader:`Content-Disposition` header, add one with the value ``inline``. .. method:: add_alternative(*args, content_manager=None, **kw)
trusted_official_docs
CPython Docs
is not specified, use the ``content_manager`` specified by the current :mod:`~email.policy`. If the added part has no :mailheader:`Content-Disposition` header, add one with the value ``inline``. .. method:: add_alternative(*args, content_manager=None, **kw)
is not specified, use the ``content_manager`` specified by the current :mod:`~email.policy`. If the added part has no :mailheader:`Content-Disposition` header, add one with the value ``inline``. .. method:: add_alternative(*args, content_manager=None, **kw)
python, official-docs, cpython, P0
Local_Trusted_Corpus
bd013b71-8ad5-4621-abd1-e0ade1f120c4
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,890
supabase-export-v2
da86a5970e4052c4
The keys are ordered, but unlike a real dict, there can be duplicates. Additional methods are provided for working with headers that have duplicate keys. The *payload* is either a string or bytes object, in the case of simple message objects, or a list of :class:`EmailMessage` objects, for MIME container documents such...
trusted_official_docs
CPython Docs
The keys are ordered, but unlike a real dict, there can be duplicates. Additional methods are provided for working with headers that have duplicate keys. The *payload* is either a string or bytes object, in the case of simple message objects, or a list of :class:`EmailMessage` objects, for MIME container documents such...
The keys are ordered, but unlike a real dict, there can be duplicates. Additional methods are provided for working with headers that have duplicate keys. The *payload* is either a string or bytes object, in the case of simple message objects, or a list of :class:`EmailMessage` objects, for MIME container documents such...
python, official-docs, cpython, P0
Local_Trusted_Corpus
bd793576-525e-4b20-b48f-653c8767f0e5
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,896
supabase-export-v2
452e3bd5aa6d0ab9
the :class:`EmailMessage` if defaults need to be filled in to complete the transformation to a string (for example, MIME boundaries may be generated or modified). Note that this method is provided as a convenience and may not be the most useful way to serialize messages in your application, especially if you are deal...
trusted_official_docs
CPython Docs
the :class:`EmailMessage` if defaults need to be filled in to complete the transformation to a string (for example, MIME boundaries may be generated or modified). Note that this method is provided as a convenience and may not be the most useful way to serialize messages in your application, especially if you are deal...
the :class:`EmailMessage` if defaults need to be filled in to complete the transformation to a string (for example, MIME boundaries may be generated or modified). Note that this method is provided as a convenience and may not be the most useful way to serialize messages in your application, especially if you are deal...
python, official-docs, cpython, P0
Local_Trusted_Corpus
bf547b7f-8f91-4f5a-9fb3-ad211607d22c
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,986
supabase-export-v2
3de1797d0bd7c682
.. method:: get_charsets(failobj=None) Return a list containing the character set names in the message. If the message is a :mimetype:`multipart`, then the list will contain one element for each subpart in the payload, otherwise, it will be a list of length 1.
trusted_official_docs
CPython Docs
.. method:: get_charsets(failobj=None) Return a list containing the character set names in the message. If the message is a :mimetype:`multipart`, then the list will contain one element for each subpart in the payload, otherwise, it will be a list of length 1.
.. method:: get_charsets(failobj=None) Return a list containing the character set names in the message. If the message is a :mimetype:`multipart`, then the list will contain one element for each subpart in the payload, otherwise, it will be a list of length 1.
python, official-docs, cpython, P0
Local_Trusted_Corpus
bf98ee41-03a6-4deb-a3c2-c805eb9e4af7
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,979
supabase-export-v2
5a0487b843224bae
.. method:: get_boundary(failobj=None) Return the value of the ``boundary`` parameter of the :mailheader:`Content-Type` header of the message, or *failobj* if either the header is missing, or has no ``boundary`` parameter. The returned string will always be unquoted as per :func:`email.utils.unquote`.
trusted_official_docs
CPython Docs
.. method:: get_boundary(failobj=None) Return the value of the ``boundary`` parameter of the :mailheader:`Content-Type` header of the message, or *failobj* if either the header is missing, or has no ``boundary`` parameter. The returned string will always be unquoted as per :func:`email.utils.unquote`.
.. method:: get_boundary(failobj=None) Return the value of the ``boundary`` parameter of the :mailheader:`Content-Type` header of the message, or *failobj* if either the header is missing, or has no ``boundary`` parameter. The returned string will always be unquoted as per :func:`email.utils.unquote`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c0f1ddf9-13db-4173-b6b9-2b05729b68fb
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,887
supabase-export-v2
79b88828a890fea4
:mod:`email` object model. :class:`EmailMessage` provides the core functionality for setting and querying header fields, for accessing message bodies, and for creating or modifying structured messages. An email message consists of *headers* and a *payload* (which is also referred to as the *content*). Headers are :rfc:...
trusted_official_docs
CPython Docs
:mod:`email` object model. :class:`EmailMessage` provides the core functionality for setting and querying header fields, for accessing message bodies, and for creating or modifying structured messages. An email message consists of *headers* and a *payload* (which is also referred to as the *content*). Headers are :rfc:...
:mod:`email` object model. :class:`EmailMessage` provides the core functionality for setting and querying header fields, for accessing message bodies, and for creating or modifying structured messages. An email message consists of *headers* and a *payload* (which is also referred to as the *content*). Headers are :rfc:...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c1fbefce-578c-4bbb-87bc-1226aa4cd1c5
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,957
supabase-export-v2
7e70888baf5b16fc
form :mimetype:`maintype/subtype`. If there is no :mailheader:`Content-Type` header in the message return the value returned by :meth:`get_default_type`. If the :mailheader:`Content-Type` header is invalid, return ``text/plain``. (According to :rfc:`2045`, messages always have a default type, :meth:`get_content_type` ...
trusted_official_docs
CPython Docs
form :mimetype:`maintype/subtype`. If there is no :mailheader:`Content-Type` header in the message return the value returned by :meth:`get_default_type`. If the :mailheader:`Content-Type` header is invalid, return ``text/plain``. (According to :rfc:`2045`, messages always have a default type, :meth:`get_content_type` ...
form :mimetype:`maintype/subtype`. If there is no :mailheader:`Content-Type` header in the message return the value returned by :meth:`get_default_type`. If the :mailheader:`Content-Type` header is invalid, return ``text/plain``. (According to :rfc:`2045`, messages always have a default type, :meth:`get_content_type` ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c279fbeb-9fea-45d6-9d0e-e07f910e89c1
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,942
supabase-export-v2
7525eb5428ba79fc
.. method:: get_all(name, failobj=None) Return a list of all the values for the field named *name*. If there are no such named headers in the message, *failobj* is returned (defaults to ``None``).
trusted_official_docs
CPython Docs
.. method:: get_all(name, failobj=None) Return a list of all the values for the field named *name*. If there are no such named headers in the message, *failobj* is returned (defaults to ``None``).
.. method:: get_all(name, failobj=None) Return a list of all the values for the field named *name*. If there are no such named headers in the message, *failobj* is returned (defaults to ``None``).
python, official-docs, cpython, P0
Local_Trusted_Corpus
c43a35b3-1876-4698-af44-d8f9b50bf78f
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,992
supabase-export-v2
951f8c60bb102c51
.. method:: get_content_disposition() Return the lowercased value (without parameters) of the message's :mailheader:`Content-Disposition` header if it has one, or ``None``. The possible values for this method are *inline*, *attachment* or ``None`` if the message follows :rfc:`2183`.
trusted_official_docs
CPython Docs
.. method:: get_content_disposition() Return the lowercased value (without parameters) of the message's :mailheader:`Content-Disposition` header if it has one, or ``None``. The possible values for this method are *inline*, *attachment* or ``None`` if the message follows :rfc:`2183`.
.. method:: get_content_disposition() Return the lowercased value (without parameters) of the message's :mailheader:`Content-Disposition` header if it has one, or ``None``. The possible values for this method are *inline*, *attachment* or ``None`` if the message follows :rfc:`2183`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c6bf19a5-2c29-4c73-bf5a-0e1e1fb6be37
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,893
supabase-export-v2
a46a7dbe91eba4b3
for line endings (instead of the RFC mandated ``\r\n``, it uses the Python standard ``\n`` line endings). For more information see the :mod:`~email.policy` documentation. [2]_ .. method:: as_string(unixfrom=False, maxheaderlen=None, policy=None)
trusted_official_docs
CPython Docs
for line endings (instead of the RFC mandated ``\r\n``, it uses the Python standard ``\n`` line endings). For more information see the :mod:`~email.policy` documentation. [2]_ .. method:: as_string(unixfrom=False, maxheaderlen=None, policy=None)
for line endings (instead of the RFC mandated ``\r\n``, it uses the Python standard ``\n`` line endings). For more information see the :mod:`~email.policy` documentation. [2]_ .. method:: as_string(unixfrom=False, maxheaderlen=None, policy=None)
python, official-docs, cpython, P0
Local_Trusted_Corpus
c8b5b5a0-c76c-4fe8-83c5-5049221a2a03
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
5,012
supabase-export-v2
0a4120658b3e9c38
with a matching :mailheader:`Content-ID` is found, consider only it when looking for candidate matches. Otherwise consider only the first (default root) part of the ``multipart/related``. If a part has a :mailheader:`Content-Disposition` header, only consider the part a candidate match if the value of the header is ``...
trusted_official_docs
CPython Docs
with a matching :mailheader:`Content-ID` is found, consider only it when looking for candidate matches. Otherwise consider only the first (default root) part of the ``multipart/related``. If a part has a :mailheader:`Content-Disposition` header, only consider the part a candidate match if the value of the header is ``...
with a matching :mailheader:`Content-ID` is found, consider only it when looking for candidate matches. Otherwise consider only the first (default root) part of the ``multipart/related``. If a part has a :mailheader:`Content-Disposition` header, only consider the part a candidate match if the value of the header is ``...
python, official-docs, cpython, P0
Local_Trusted_Corpus
cb86bb7b-bc87-49fb-a219-c34123105d7d
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,943
supabase-export-v2
d3ee08bcf3327c51
of all the values for the field named *name*. If there are no such named headers in the message, *failobj* is returned (defaults to ``None``). .. method:: add_header(_name, _value, **_params)
trusted_official_docs
CPython Docs
of all the values for the field named *name*. If there are no such named headers in the message, *failobj* is returned (defaults to ``None``). .. method:: add_header(_name, _value, **_params)
of all the values for the field named *name*. If there are no such named headers in the message, *failobj* is returned (defaults to ``None``). .. method:: add_header(_name, _value, **_params)
python, official-docs, cpython, P0
Local_Trusted_Corpus
cce5aff9-b3f6-4607-8cc9-6e782ba6e83c
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,903
supabase-export-v2
ccb2d344001c3028
instance. This can be used to control some of the formatting produced by the method, since the specified *policy* will be passed to the :class:`~email.generator.BytesGenerator`. Flattening the message may trigger changes to the :class:`EmailMessage` if defaults need to be filled in to complete the transformation to a ...
trusted_official_docs
CPython Docs
instance. This can be used to control some of the formatting produced by the method, since the specified *policy* will be passed to the :class:`~email.generator.BytesGenerator`. Flattening the message may trigger changes to the :class:`EmailMessage` if defaults need to be filled in to complete the transformation to a ...
instance. This can be used to control some of the formatting produced by the method, since the specified *policy* will be passed to the :class:`~email.generator.BytesGenerator`. Flattening the message may trigger changes to the :class:`EmailMessage` if defaults need to be filled in to complete the transformation to a ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d33a5d2e-12c7-42ce-9f36-b8e3f5523c9a
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
5,002
supabase-export-v2
3c41a04641eeb664
>>> for part in msg.walk(): ... print(part.get_content_type()) multipart/report text/plain message/delivery-status text/plain text/plain message/rfc822 text/plain ``walk`` iterates over the subparts of any part where :meth:`is_multipart` returns ``True``, even though ``msg.get_content_maintype() == 'multipart'`` may ...
trusted_official_docs
CPython Docs
>>> for part in msg.walk(): ... print(part.get_content_type()) multipart/report text/plain message/delivery-status text/plain text/plain message/rfc822 text/plain ``walk`` iterates over the subparts of any part where :meth:`is_multipart` returns ``True``, even though ``msg.get_content_maintype() == 'multipart'`` may ...
>>> for part in msg.walk(): ... print(part.get_content_type()) multipart/report text/plain message/delivery-status text/plain text/plain message/rfc822 text/plain ``walk`` iterates over the subparts of any part where :meth:`is_multipart` returns ``True``, even though ``msg.get_content_maintype() == 'multipart'`` may ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
da8bd1b6-e1ff-432d-815c-75fa96cc8dbb
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
5,024
supabase-export-v2
05a42d4b6483aae3
.. method:: make_related(boundary=None) Convert a non-``multipart`` message into a ``multipart/related`` message, moving any existing :mailheader:`Content-` headers and payload into a (new) first part of the ``multipart``. If *boundary* is specified, use it as the boundary string in the multipart, otherwise leave th...
trusted_official_docs
CPython Docs
.. method:: make_related(boundary=None) Convert a non-``multipart`` message into a ``multipart/related`` message, moving any existing :mailheader:`Content-` headers and payload into a (new) first part of the ``multipart``. If *boundary* is specified, use it as the boundary string in the multipart, otherwise leave th...
.. method:: make_related(boundary=None) Convert a non-``multipart`` message into a ``multipart/related`` message, moving any existing :mailheader:`Content-` headers and payload into a (new) first part of the ``multipart``. If *boundary* is specified, use it as the boundary string in the multipart, otherwise leave th...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e5871f89-ad3b-498b-a11d-93a0e6469347
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
5,041
supabase-export-v2
1c937107ee15355f
.. attribute:: preamble The format of a MIME document allows for some text between the blank line following the headers, and the first multipart boundary string. Normally, this text is never visible in a MIME-aware mail reader because it falls outside the standard MIME armor. However, when viewing the raw text of t...
trusted_official_docs
CPython Docs
.. attribute:: preamble The format of a MIME document allows for some text between the blank line following the headers, and the first multipart boundary string. Normally, this text is never visible in a MIME-aware mail reader because it falls outside the standard MIME armor. However, when viewing the raw text of t...
.. attribute:: preamble The format of a MIME document allows for some text between the blank line following the headers, and the first multipart boundary string. Normally, this text is never visible in a MIME-aware mail reader because it falls outside the standard MIME armor. However, when viewing the raw text of t...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e859ec7a-b479-4154-a493-4edc15e366e7
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
5,029
supabase-export-v2
f6b10916e3226f24
the boundary string in the multipart, otherwise leave the boundary to be automatically created when it is needed (for example, when the message is serialized). .. method:: add_related(*args, content_manager=None, **kw)
trusted_official_docs
CPython Docs
the boundary string in the multipart, otherwise leave the boundary to be automatically created when it is needed (for example, when the message is serialized). .. method:: add_related(*args, content_manager=None, **kw)
the boundary string in the multipart, otherwise leave the boundary to be automatically created when it is needed (for example, when the message is serialized). .. method:: add_related(*args, content_manager=None, **kw)
python, official-docs, cpython, P0
Local_Trusted_Corpus
ed2a68f0-0a89-42c5-9ba0-03248d57a61c
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
5,011
supabase-export-v2
1274d942c5db12d5
in *preferencelist*, consider the root part (or subpart of the root part) of any related encountered as a candidate if the (sub-)part matches a preference. When encountering a ``multipart/related``, check the ``start`` parameter and if a part with a matching :mailheader:`Content-ID` is found, consider only it when lo...
trusted_official_docs
CPython Docs
in *preferencelist*, consider the root part (or subpart of the root part) of any related encountered as a candidate if the (sub-)part matches a preference. When encountering a ``multipart/related``, check the ``start`` parameter and if a part with a matching :mailheader:`Content-ID` is found, consider only it when lo...
in *preferencelist*, consider the root part (or subpart of the root part) of any related encountered as a candidate if the (sub-)part matches a preference. When encountering a ``multipart/related``, check the ``start`` parameter and if a part with a matching :mailheader:`Content-ID` is found, consider only it when lo...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f1f4dcb2-7b53-4261-ac0a-5429ab267947
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,920
supabase-export-v2
0675af56063c7a9d
field named *name*. Matching is done without regard to case and *name* does not include the trailing colon. Used for the ``in`` operator. For example:: if 'message-id' in myMessage: print('Message-ID:', myMessage['message-id'])
trusted_official_docs
CPython Docs
field named *name*. Matching is done without regard to case and *name* does not include the trailing colon. Used for the ``in`` operator. For example:: if 'message-id' in myMessage: print('Message-ID:', myMessage['message-id'])
field named *name*. Matching is done without regard to case and *name* does not include the trailing colon. Used for the ``in`` operator. For example:: if 'message-id' in myMessage: print('Message-ID:', myMessage['message-id'])
python, official-docs, cpython, P0
Local_Trusted_Corpus
f3f0844d-3221-40fb-84ae-458a63e544cb
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,987
supabase-export-v2
8d49eca6fa5d4090
is a :mimetype:`multipart`, then the list will contain one element for each subpart in the payload, otherwise, it will be a list of length 1. Each item in the list will be a string which is the value of the ``charset`` parameter in the :mailheader:`Content-Type` header for the represented subpart. If the subpart has ...
trusted_official_docs
CPython Docs
is a :mimetype:`multipart`, then the list will contain one element for each subpart in the payload, otherwise, it will be a list of length 1. Each item in the list will be a string which is the value of the ``charset`` parameter in the :mailheader:`Content-Type` header for the represented subpart. If the subpart has ...
is a :mimetype:`multipart`, then the list will contain one element for each subpart in the payload, otherwise, it will be a list of length 1. Each item in the list will be a string which is the value of the ``charset`` parameter in the :mailheader:`Content-Type` header for the represented subpart. If the subpart has ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f4d93b14-b4a0-43db-b4db-02e7d9bf22d6
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,919
supabase-export-v2
4b2a7470ecaa1a4c
.. method:: __contains__(name) Return ``True`` if the message object has a field named *name*. Matching is done without regard to case and *name* does not include the trailing colon. Used for the ``in`` operator. For example::
trusted_official_docs
CPython Docs
.. method:: __contains__(name) Return ``True`` if the message object has a field named *name*. Matching is done without regard to case and *name* does not include the trailing colon. Used for the ``in`` operator. For example::
.. method:: __contains__(name) Return ``True`` if the message object has a field named *name*. Matching is done without regard to case and *name* does not include the trailing colon. Used for the ``in`` operator. For example::
python, official-docs, cpython, P0
Local_Trusted_Corpus
f712d867-2741-4ec4-843b-e902c50130d7
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,997
supabase-export-v2
7733d96df12d6479
message object tree, in depth-first traversal order. You will typically use :meth:`walk` as the iterator in a ``for`` loop; each iteration returns the next subpart. Here's an example that prints the MIME type of every part of a multipart message structure:
trusted_official_docs
CPython Docs
message object tree, in depth-first traversal order. You will typically use :meth:`walk` as the iterator in a ``for`` loop; each iteration returns the next subpart. Here's an example that prints the MIME type of every part of a multipart message structure:
message object tree, in depth-first traversal order. You will typically use :meth:`walk` as the iterator in a ``for`` loop; each iteration returns the next subpart. Here's an example that prints the MIME type of every part of a multipart message structure:
python, official-docs, cpython, P0
Local_Trusted_Corpus
f7bfaaaf-e0c0-4904-8014-b66c15d7d3f7
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,971
supabase-export-v2
5509a97ea45087f7
Use of the *requote* parameter with :class:`EmailMessage` objects is deprecated. Note that existing parameter values of headers may be accessed through the :attr:`~email.headerregistry.ParameterizedMIMEHeader.params` attribute of the header value (for example, ``msg['Content-Type'].params['charset']``).
trusted_official_docs
CPython Docs
Use of the *requote* parameter with :class:`EmailMessage` objects is deprecated. Note that existing parameter values of headers may be accessed through the :attr:`~email.headerregistry.ParameterizedMIMEHeader.params` attribute of the header value (for example, ``msg['Content-Type'].params['charset']``).
Use of the *requote* parameter with :class:`EmailMessage` objects is deprecated. Note that existing parameter values of headers may be accessed through the :attr:`~email.headerregistry.ParameterizedMIMEHeader.params` attribute of the header value (for example, ``msg['Content-Type'].params['charset']``).
python, official-docs, cpython, P0
Local_Trusted_Corpus
f8086159-1d40-4b92-84c6-e9e4f46ade10
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
5,016
supabase-export-v2
88fbe1f48d190153
.. method:: iter_attachments() Return an iterator over all of the immediate sub-parts of the message that are not candidate "body" parts. That is, skip the first occurrence of each of ``text/plain``, ``text/html``, ``multipart/related``, or ``multipart/alternative`` (unless they are explicitly marked as attachments...
trusted_official_docs
CPython Docs
.. method:: iter_attachments() Return an iterator over all of the immediate sub-parts of the message that are not candidate "body" parts. That is, skip the first occurrence of each of ``text/plain``, ``text/html``, ``multipart/related``, or ``multipart/alternative`` (unless they are explicitly marked as attachments...
.. method:: iter_attachments() Return an iterator over all of the immediate sub-parts of the message that are not candidate "body" parts. That is, skip the first occurrence of each of ``text/plain``, ``text/html``, ``multipart/related``, or ``multipart/alternative`` (unless they are explicitly marked as attachments...
python, official-docs, cpython, P0
Local_Trusted_Corpus
fa3702ef-3121-46b4-b788-27d93a3a11b0
CPython Docs
file://datasets/cpython/Doc/library/email.message.rst
unknown
41ff365b-2463-49c8-9171-2a528ffea4cc
4,894
supabase-export-v2
1e0abf9b0b144f5b
.. method:: as_string(unixfrom=False, maxheaderlen=None, policy=None) Return the entire message flattened as a string. When optional *unixfrom* is true, the envelope header is included in the returned string. *unixfrom* defaults to ``False``. For backward compatibility with the base :class:`~email.message.Message` c...
trusted_official_docs
CPython Docs
.. method:: as_string(unixfrom=False, maxheaderlen=None, policy=None) Return the entire message flattened as a string. When optional *unixfrom* is true, the envelope header is included in the returned string. *unixfrom* defaults to ``False``. For backward compatibility with the base :class:`~email.message.Message` c...
.. method:: as_string(unixfrom=False, maxheaderlen=None, policy=None) Return the entire message flattened as a string. When optional *unixfrom* is true, the envelope header is included in the returned string. *unixfrom* defaults to ``False``. For backward compatibility with the base :class:`~email.message.Message` c...
python, official-docs, cpython, P0
Local_Trusted_Corpus
037745e8-57ac-4838-a227-23337a7acdea
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,139
supabase-export-v2
3a4572daa9ced596
to be prepended to a zip file. The zip application format uses this ability to prepend a standard POSIX "shebang" line to the file (``#!/path/to/interpreter``). Formally, the Python zip application format is therefore:
trusted_official_docs
CPython Docs
to be prepended to a zip file. The zip application format uses this ability to prepend a standard POSIX "shebang" line to the file (``#!/path/to/interpreter``). Formally, the Python zip application format is therefore:
to be prepended to a zip file. The zip application format uses this ability to prepend a standard POSIX "shebang" line to the file (``#!/path/to/interpreter``). Formally, the Python zip application format is therefore:
python, official-docs, cpython, P0
Local_Trusted_Corpus
044ca39b-45d0-4f15-9329-1ebbef87f525
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,112
supabase-export-v2
473dd06d8b12d6b5
$ python -m zipapp myapp -p "/usr/bin/env python" $ ./myapp.pyz <output from myapp> To replace the shebang line on an existing archive, create a modified archive using the :func:`create_archive` function::
trusted_official_docs
CPython Docs
$ python -m zipapp myapp -p "/usr/bin/env python" $ ./myapp.pyz <output from myapp> To replace the shebang line on an existing archive, create a modified archive using the :func:`create_archive` function::
$ python -m zipapp myapp -p "/usr/bin/env python" $ ./myapp.pyz <output from myapp> To replace the shebang line on an existing archive, create a modified archive using the :func:`create_archive` function::
python, official-docs, cpython, P0
Local_Trusted_Corpus
04883d98-2dcc-4d62-8adf-2440a619ca19
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,135
supabase-export-v2
b5abd65e50820b53
Caveats ~~~~~~~ If your application depends on a package that includes a C extension, that package cannot be run from a zip file (this is an OS limitation, as executable code must be present in the filesystem for the OS loader to load it). In this case, you can exclude that dependency from the zipfile, and either requi...
trusted_official_docs
CPython Docs
Caveats ~~~~~~~ If your application depends on a package that includes a C extension, that package cannot be run from a zip file (this is an OS limitation, as executable code must be present in the filesystem for the OS loader to load it). In this case, you can exclude that dependency from the zipfile, and either requi...
Caveats ~~~~~~~ If your application depends on a package that includes a C extension, that package cannot be run from a zip file (this is an OS limitation, as executable code must be present in the filesystem for the OS loader to load it). In this case, you can exclude that dependency from the zipfile, and either requi...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0a0d275b-b21d-4751-85bf-8c988c170a00
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,078
supabase-export-v2
ea70f929b09aa563
.. option:: -m <mainfn>, --main=<mainfn> Write a ``__main__.py`` file to the archive that executes *mainfn*. The *mainfn* argument should have the form "pkg.mod:fn", where "pkg.mod" is a package/module in the archive, and "fn" is a callable in the given module. The ``__main__.py`` file will execute that callable.
trusted_official_docs
CPython Docs
.. option:: -m <mainfn>, --main=<mainfn> Write a ``__main__.py`` file to the archive that executes *mainfn*. The *mainfn* argument should have the form "pkg.mod:fn", where "pkg.mod" is a package/module in the archive, and "fn" is a callable in the given module. The ``__main__.py`` file will execute that callable.
.. option:: -m <mainfn>, --main=<mainfn> Write a ``__main__.py`` file to the archive that executes *mainfn*. The *mainfn* argument should have the form "pkg.mod:fn", where "pkg.mod" is a package/module in the archive, and "fn" is a callable in the given module. The ``__main__.py`` file will execute that callable.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0fc8a2f3-19b2-41df-9439-fcc2e04c07b5
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,096
supabase-export-v2
da47ae01b9d6504e
to omit *main* if the source is a directory and does not contain a ``__main__.py`` file, as otherwise the resulting archive would not be executable. The optional *filter* argument specifies a callback function that is passed a Path object representing the path to the file being added (relative to the source directory...
trusted_official_docs
CPython Docs
to omit *main* if the source is a directory and does not contain a ``__main__.py`` file, as otherwise the resulting archive would not be executable. The optional *filter* argument specifies a callback function that is passed a Path object representing the path to the file being added (relative to the source directory...
to omit *main* if the source is a directory and does not contain a ``__main__.py`` file, as otherwise the resulting archive would not be executable. The optional *filter* argument specifies a callback function that is passed a Path object representing the path to the file being added (relative to the source directory...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1389cdbc-391b-4935-9c27-64833c5372d9
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,093
supabase-export-v2
11c9f1bc092cadd6
The *target* argument determines where the resulting archive will be written: * If it is the name of a file, or a :term:`path-like object`, the archive will be written to that file. * If it is an open file object, the archive will be written to that file object, which must be open for writing in bytes mode. * If the ...
trusted_official_docs
CPython Docs
The *target* argument determines where the resulting archive will be written: * If it is the name of a file, or a :term:`path-like object`, the archive will be written to that file. * If it is an open file object, the archive will be written to that file object, which must be open for writing in bytes mode. * If the ...
The *target* argument determines where the resulting archive will be written: * If it is the name of a file, or a :term:`path-like object`, the archive will be written to that file. * If it is an open file object, the archive will be written to that file object, which must be open for writing in bytes mode. * If the ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1546f06d-2c72-45fc-8964-3b69cc5f7125
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,059
supabase-export-v2
ede1586a62c25567
-------------- This module provides tools to manage the creation of zip files containing Python code, which can be :ref:`executed directly by the Python interpreter <using-on-interface-options>`. The module provides both a :ref:`zipapp-command-line-interface` and a :ref:`zipapp-python-api`.
trusted_official_docs
CPython Docs
-------------- This module provides tools to manage the creation of zip files containing Python code, which can be :ref:`executed directly by the Python interpreter <using-on-interface-options>`. The module provides both a :ref:`zipapp-command-line-interface` and a :ref:`zipapp-python-api`.
-------------- This module provides tools to manage the creation of zip files containing Python code, which can be :ref:`executed directly by the Python interpreter <using-on-interface-options>`. The module provides both a :ref:`zipapp-command-line-interface` and a :ref:`zipapp-python-api`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
156a0e71-8c3b-4274-95b5-b93ffd91b051
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,123
supabase-export-v2
c1692247c54ca217
installed on their system. The key to doing this is to bundle all of the application's dependencies into the archive, along with the application code. The steps to create a standalone archive are as follows:
trusted_official_docs
CPython Docs
installed on their system. The key to doing this is to bundle all of the application's dependencies into the archive, along with the application code. The steps to create a standalone archive are as follows:
installed on their system. The key to doing this is to bundle all of the application's dependencies into the archive, along with the application code. The steps to create a standalone archive are as follows:
python, official-docs, cpython, P0
Local_Trusted_Corpus
18504adf-acc4-43b6-b9ae-96ca483062f3
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,094
supabase-export-v2
c71359db9515f553
the source must be a directory and the target will be a file with the same name as the source, with a ``.pyz`` extension added. The *interpreter* argument specifies the name of the Python interpreter with which the archive will be executed. It is written as a "shebang" line at the start of the archive. On POSIX, this...
trusted_official_docs
CPython Docs
the source must be a directory and the target will be a file with the same name as the source, with a ``.pyz`` extension added. The *interpreter* argument specifies the name of the Python interpreter with which the archive will be executed. It is written as a "shebang" line at the start of the archive. On POSIX, this...
the source must be a directory and the target will be a file with the same name as the source, with a ``.pyz`` extension added. The *interpreter* argument specifies the name of the Python interpreter with which the archive will be executed. It is written as a "shebang" line at the start of the archive. On POSIX, this...
python, official-docs, cpython, P0
Local_Trusted_Corpus
20d549d3-7cf3-4717-97d5-6c997f728e3d
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,079
supabase-export-v2
977a2ee757c32537
"pkg.mod:fn", where "pkg.mod" is a package/module in the archive, and "fn" is a callable in the given module. The ``__main__.py`` file will execute that callable. :option:`--main` cannot be specified when copying an archive.
trusted_official_docs
CPython Docs
"pkg.mod:fn", where "pkg.mod" is a package/module in the archive, and "fn" is a callable in the given module. The ``__main__.py`` file will execute that callable. :option:`--main` cannot be specified when copying an archive.
"pkg.mod:fn", where "pkg.mod" is a package/module in the archive, and "fn" is a callable in the given module. The ``__main__.py`` file will execute that callable. :option:`--main` cannot be specified when copying an archive.
python, official-docs, cpython, P0
Local_Trusted_Corpus
227e3873-747d-4dde-80e3-d19132383414
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,092
supabase-export-v2
be44ef30ef95bc7a
The content of the file should be an application archive, and the file object is assumed to be positioned at the start of the archive. The *target* argument determines where the resulting archive will be written:
trusted_official_docs
CPython Docs
The content of the file should be an application archive, and the file object is assumed to be positioned at the start of the archive. The *target* argument determines where the resulting archive will be written:
The content of the file should be an application archive, and the file object is assumed to be positioned at the start of the archive. The *target* argument determines where the resulting archive will be written:
python, official-docs, cpython, P0
Local_Trusted_Corpus
2464bff7-2331-436a-aa02-c5a4c76fc68e
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,099
supabase-export-v2
28b0ec7d26cddaee
If a file object is specified for *source* or *target*, it is the caller's responsibility to close it after calling create_archive. When copying an existing archive, file objects supplied only need ``read`` and ``readline``, or ``write`` methods. When creating an archive from a directory, if the target is a file obje...
trusted_official_docs
CPython Docs
If a file object is specified for *source* or *target*, it is the caller's responsibility to close it after calling create_archive. When copying an existing archive, file objects supplied only need ``read`` and ``readline``, or ``write`` methods. When creating an archive from a directory, if the target is a file obje...
If a file object is specified for *source* or *target*, it is the caller's responsibility to close it after calling create_archive. When copying an existing archive, file objects supplied only need ``read`` and ``readline``, or ``write`` methods. When creating an archive from a directory, if the target is a file obje...
python, official-docs, cpython, P0
Local_Trusted_Corpus
29f27ca6-0bf8-4bd7-b5a9-95cfcce73024
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,074
supabase-export-v2
a878012096487b9a
with the extension ``.pyz`` added. If an explicit filename is given, it is used as is (so a ``.pyz`` extension should be included if required). An output filename must be specified if the *source* is an archive (and in that case, *output* must not be the same as *source*).
trusted_official_docs
CPython Docs
with the extension ``.pyz`` added. If an explicit filename is given, it is used as is (so a ``.pyz`` extension should be included if required). An output filename must be specified if the *source* is an archive (and in that case, *output* must not be the same as *source*).
with the extension ``.pyz`` added. If an explicit filename is given, it is used as is (so a ``.pyz`` extension should be included if required). An output filename must be specified if the *source* is an archive (and in that case, *output* must not be the same as *source*).
python, official-docs, cpython, P0
Local_Trusted_Corpus
30970eec-ccb3-4d2a-b388-339e1bc15870
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,070
supabase-export-v2
c1d071eea1501d5b
and it will be copied to the target archive (or the contents of its shebang line will be displayed if the --info option is specified). The following options are understood:
trusted_official_docs
CPython Docs
and it will be copied to the target archive (or the contents of its shebang line will be displayed if the --info option is specified). The following options are understood:
and it will be copied to the target archive (or the contents of its shebang line will be displayed if the --info option is specified). The following options are understood:
python, official-docs, cpython, P0
Local_Trusted_Corpus
3b6e51c0-8363-45cc-a03f-e5308365f4ec
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,073
supabase-export-v2
da333b791c55011c
.. option:: -o <output>, --output=<output> Write the output to a file named *output*. If this option is not specified, the output filename will be the same as the input *source*, with the extension ``.pyz`` added. If an explicit filename is given, it is used as is (so a ``.pyz`` extension should be included if requi...
trusted_official_docs
CPython Docs
.. option:: -o <output>, --output=<output> Write the output to a file named *output*. If this option is not specified, the output filename will be the same as the input *source*, with the extension ``.pyz`` added. If an explicit filename is given, it is used as is (so a ``.pyz`` extension should be included if requi...
.. option:: -o <output>, --output=<output> Write the output to a file named *output*. If this option is not specified, the output filename will be the same as the input *source*, with the extension ``.pyz`` added. If an explicit filename is given, it is used as is (so a ``.pyz`` extension should be included if requi...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3f939aab-7e8f-4c86-b9ce-c38c021f75e0
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,124
supabase-export-v2
d4f319ccb6164ee8
The steps to create a standalone archive are as follows: 1. Create your application in a directory as normal, so you have a ``myapp`` directory containing a ``__main__.py`` file, and any supporting application code.
trusted_official_docs
CPython Docs
The steps to create a standalone archive are as follows: 1. Create your application in a directory as normal, so you have a ``myapp`` directory containing a ``__main__.py`` file, and any supporting application code.
The steps to create a standalone archive are as follows: 1. Create your application in a directory as normal, so you have a ``myapp`` directory containing a ``__main__.py`` file, and any supporting application code.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4b05dc78-afe3-4a2c-8f4d-bd628cd707c6
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,119
supabase-export-v2
a771956a519c2d9b
the interpreter used is portable. The Python launcher for Windows supports most common forms of POSIX ``#!`` line, but there are other issues to consider: * If you use "/usr/bin/env python" (or other forms of the "python" command, such as "/usr/bin/python"), you need to consider that your users may have either Python...
trusted_official_docs
CPython Docs
the interpreter used is portable. The Python launcher for Windows supports most common forms of POSIX ``#!`` line, but there are other issues to consider: * If you use "/usr/bin/env python" (or other forms of the "python" command, such as "/usr/bin/python"), you need to consider that your users may have either Python...
the interpreter used is portable. The Python launcher for Windows supports most common forms of POSIX ``#!`` line, but there are other issues to consider: * If you use "/usr/bin/env python" (or other forms of the "python" command, such as "/usr/bin/python"), you need to consider that your users may have either Python...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5e7e9300-3793-4f82-beb2-a9fc51717ff6
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,137
supabase-export-v2
9bd034faaadb5ea4
The Python Zip Application Archive Format ----------------------------------------- Python has been able to execute zip files which contain a ``__main__.py`` file since version 2.6. In order to be executed by Python, an application archive simply has to be a standard zip file containing a ``__main__.py`` file which wil...
trusted_official_docs
CPython Docs
The Python Zip Application Archive Format ----------------------------------------- Python has been able to execute zip files which contain a ``__main__.py`` file since version 2.6. In order to be executed by Python, an application archive simply has to be a standard zip file containing a ``__main__.py`` file which wil...
The Python Zip Application Archive Format ----------------------------------------- Python has been able to execute zip files which contain a ``__main__.py`` file since version 2.6. In order to be executed by Python, an application archive simply has to be a standard zip file containing a ``__main__.py`` file which wil...
python, official-docs, cpython, P0
Local_Trusted_Corpus
655b58a5-ae29-48a8-9304-e73618f19038
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,082
supabase-export-v2
f74b7c4889ba2ab6
Compress files with the deflate method, reducing the size of the output file. By default, files are stored uncompressed in the archive. :option:`--compress` has no effect when copying an archive.
trusted_official_docs
CPython Docs
Compress files with the deflate method, reducing the size of the output file. By default, files are stored uncompressed in the archive. :option:`--compress` has no effect when copying an archive.
Compress files with the deflate method, reducing the size of the output file. By default, files are stored uncompressed in the archive. :option:`--compress` has no effect when copying an archive.
python, official-docs, cpython, P0
Local_Trusted_Corpus
6edb85e7-79ea-41ca-8c03-58997e247db8
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,118
supabase-export-v2
99ff05f99cdd33d6
Specifying the Interpreter -------------------------- Note that if you specify an interpreter and then distribute your application archive, you need to ensure that the interpreter used is portable. The Python launcher for Windows supports most common forms of POSIX ``#!`` line, but there are other issues to consider:
trusted_official_docs
CPython Docs
Specifying the Interpreter -------------------------- Note that if you specify an interpreter and then distribute your application archive, you need to ensure that the interpreter used is portable. The Python launcher for Windows supports most common forms of POSIX ``#!`` line, but there are other issues to consider:
Specifying the Interpreter -------------------------- Note that if you specify an interpreter and then distribute your application archive, you need to ensure that the interpreter used is portable. The Python launcher for Windows supports most common forms of POSIX ``#!`` line, but there are other issues to consider:
python, official-docs, cpython, P0
Local_Trusted_Corpus
6ffcb82e-8760-4c30-b2c8-e88f31c6369b
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,136
supabase-export-v2
db90ffa876ea23b4
to ship appropriate binaries for your target architecture(s) (and potentially pick the correct version to add to ``sys.path`` at runtime, based on the user's machine). The Python Zip Application Archive Format -----------------------------------------
trusted_official_docs
CPython Docs
to ship appropriate binaries for your target architecture(s) (and potentially pick the correct version to add to ``sys.path`` at runtime, based on the user's machine). The Python Zip Application Archive Format -----------------------------------------
to ship appropriate binaries for your target architecture(s) (and potentially pick the correct version to add to ``sys.path`` at runtime, based on the user's machine). The Python Zip Application Archive Format -----------------------------------------
python, official-docs, cpython, P0
Local_Trusted_Corpus
76690f46-39d1-45fd-9581-8e079c6c62c5
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,095
supabase-export-v2
a82b4e1562fec30c
shebang line being written. If an interpreter is specified, and the target is a filename, the executable bit of the target file will be set. The *main* argument specifies the name of a callable which will be used as the main program for the archive. It can only be specified if the source is a directory, and the sourc...
trusted_official_docs
CPython Docs
shebang line being written. If an interpreter is specified, and the target is a filename, the executable bit of the target file will be set. The *main* argument specifies the name of a callable which will be used as the main program for the archive. It can only be specified if the source is a directory, and the sourc...
shebang line being written. If an interpreter is specified, and the target is a filename, the executable bit of the target file will be set. The *main* argument specifies the name of a callable which will be used as the main program for the archive. It can only be specified if the source is a directory, and the sourc...
python, official-docs, cpython, P0
Local_Trusted_Corpus
76708395-95ed-4bfa-886a-395e17fe1be2
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,140
supabase-export-v2
09801acda3e8dbeb
Formally, the Python zip application format is therefore: 1. An optional shebang line, containing the characters ``b'#!'`` followed by an interpreter name, and then a newline (``b'\n'``) character. The interpreter name can be anything acceptable to the OS "shebang" processing, or the Python launcher on Windows. The ...
trusted_official_docs
CPython Docs
Formally, the Python zip application format is therefore: 1. An optional shebang line, containing the characters ``b'#!'`` followed by an interpreter name, and then a newline (``b'\n'``) character. The interpreter name can be anything acceptable to the OS "shebang" processing, or the Python launcher on Windows. The ...
Formally, the Python zip application format is therefore: 1. An optional shebang line, containing the characters ``b'#!'`` followed by an interpreter name, and then a newline (``b'\n'``) character. The interpreter name can be anything acceptable to the OS "shebang" processing, or the Python launcher on Windows. The ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7b93a75c-4dd1-4c0d-abc9-4d717c629831
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,125
supabase-export-v2
ee2602575d95de57
1. Create your application in a directory as normal, so you have a ``myapp`` directory containing a ``__main__.py`` file, and any supporting application code. 2. Install all of your application's dependencies into the ``myapp`` directory, using pip:
trusted_official_docs
CPython Docs
1. Create your application in a directory as normal, so you have a ``myapp`` directory containing a ``__main__.py`` file, and any supporting application code. 2. Install all of your application's dependencies into the ``myapp`` directory, using pip:
1. Create your application in a directory as normal, so you have a ``myapp`` directory containing a ``__main__.py`` file, and any supporting application code. 2. Install all of your application's dependencies into the ``myapp`` directory, using pip:
python, official-docs, cpython, P0
Local_Trusted_Corpus
82ef5984-21d3-4ab1-8f20-eaac17efc653
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,122
supabase-export-v2
8e0004e543feff2b
Creating Standalone Applications with zipapp -------------------------------------------- Using the :mod:`!zipapp` module, it is possible to create self-contained Python programs, which can be distributed to end users who only need to have a suitable version of Python installed on their system. The key to doing this is...
trusted_official_docs
CPython Docs
Creating Standalone Applications with zipapp -------------------------------------------- Using the :mod:`!zipapp` module, it is possible to create self-contained Python programs, which can be distributed to end users who only need to have a suitable version of Python installed on their system. The key to doing this is...
Creating Standalone Applications with zipapp -------------------------------------------- Using the :mod:`!zipapp` module, it is possible to create self-contained Python programs, which can be distributed to end users who only need to have a suitable version of Python installed on their system. The key to doing this is...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8f831a7c-6500-465a-a66d-b08f3268c44c
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,077
supabase-export-v2
d7a5810bd4ab660f
the command to run. Also, on POSIX, make the archive executable. The default is to write no ``#!`` line, and not make the file executable. .. option:: -m <mainfn>, --main=<mainfn>
trusted_official_docs
CPython Docs
the command to run. Also, on POSIX, make the archive executable. The default is to write no ``#!`` line, and not make the file executable. .. option:: -m <mainfn>, --main=<mainfn>
the command to run. Also, on POSIX, make the archive executable. The default is to write no ``#!`` line, and not make the file executable. .. option:: -m <mainfn>, --main=<mainfn>
python, official-docs, cpython, P0
Local_Trusted_Corpus
96b05bc3-af1d-4a3a-93b0-ec9e10523d71
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,128
supabase-export-v2
baac42250ebb6e0e
$ python -m pip install -r requirements.txt --target myapp (this assumes you have your project requirements in a ``requirements.txt`` file - if not, you can just list the dependencies manually on the pip command line).
trusted_official_docs
CPython Docs
$ python -m pip install -r requirements.txt --target myapp (this assumes you have your project requirements in a ``requirements.txt`` file - if not, you can just list the dependencies manually on the pip command line).
$ python -m pip install -r requirements.txt --target myapp (this assumes you have your project requirements in a ``requirements.txt`` file - if not, you can just list the dependencies manually on the pip command line).
python, official-docs, cpython, P0
Local_Trusted_Corpus
a51a4e02-6e60-438c-a07a-adc34d67388d
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,097
supabase-export-v2
795f726216785f62
object representing the path to the file being added (relative to the source directory). It should return ``True`` if the file is to be added. The optional *compressed* argument determines whether files are compressed. If set to ``True``, files in the archive are compressed with the deflate method; otherwise, files a...
trusted_official_docs
CPython Docs
object representing the path to the file being added (relative to the source directory). It should return ``True`` if the file is to be added. The optional *compressed* argument determines whether files are compressed. If set to ``True``, files in the archive are compressed with the deflate method; otherwise, files a...
object representing the path to the file being added (relative to the source directory). It should return ``True`` if the file is to be added. The optional *compressed* argument determines whether files are compressed. If set to ``True``, files in the archive are compressed with the deflate method; otherwise, files a...
python, official-docs, cpython, P0
Local_Trusted_Corpus
aa7dee08-b40f-4e80-a006-be95352c8880
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,114
supabase-export-v2
3b675f17a692f091
>>> import zipapp >>> zipapp.create_archive('old_archive.pyz', 'new_archive.pyz', '/usr/bin/python3') To update the file in place, do the replacement in memory using a :class:`~io.BytesIO` object, and then overwrite the source afterwards. Note that there is a risk when overwriting a file in place that an error will res...
trusted_official_docs
CPython Docs
>>> import zipapp >>> zipapp.create_archive('old_archive.pyz', 'new_archive.pyz', '/usr/bin/python3') To update the file in place, do the replacement in memory using a :class:`~io.BytesIO` object, and then overwrite the source afterwards. Note that there is a risk when overwriting a file in place that an error will res...
>>> import zipapp >>> zipapp.create_archive('old_archive.pyz', 'new_archive.pyz', '/usr/bin/python3') To update the file in place, do the replacement in memory using a :class:`~io.BytesIO` object, and then overwrite the source afterwards. Note that there is a risk when overwriting a file in place that an error will res...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b1aec8d8-df48-4aaf-af79-965a97a70fb5
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,133
supabase-export-v2
aea65b7094a45158
can be run on any machine with the appropriate interpreter available. See :ref:`zipapp-specifying-the-interpreter` for details. It can be shipped to users as a single file. On Unix, the ``myapp.pyz`` file is executable as it stands. You can rename the file to remove the ``.pyz`` extension if you prefer a "plain" comman...
trusted_official_docs
CPython Docs
can be run on any machine with the appropriate interpreter available. See :ref:`zipapp-specifying-the-interpreter` for details. It can be shipped to users as a single file. On Unix, the ``myapp.pyz`` file is executable as it stands. You can rename the file to remove the ``.pyz`` extension if you prefer a "plain" comman...
can be run on any machine with the appropriate interpreter available. See :ref:`zipapp-specifying-the-interpreter` for details. It can be shipped to users as a single file. On Unix, the ``myapp.pyz`` file is executable as it stands. You can rename the file to remove the ``.pyz`` extension if you prefer a "plain" comman...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c71524a0-7b7b-43cb-b7c2-f6d1bc041f23
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,142
supabase-export-v2
c477ece346c751e1
If an application archive has a shebang line, it may have the executable bit set on POSIX systems, to allow it to be executed directly. There is no requirement that the tools in this module are used to create application archives - the module is a convenience, but archives in the above format created by any means are a...
trusted_official_docs
CPython Docs
If an application archive has a shebang line, it may have the executable bit set on POSIX systems, to allow it to be executed directly. There is no requirement that the tools in this module are used to create application archives - the module is a convenience, but archives in the above format created by any means are a...
If an application archive has a shebang line, it may have the executable bit set on POSIX systems, to allow it to be executed directly. There is no requirement that the tools in this module are used to create application archives - the module is a convenience, but archives in the above format created by any means are a...
python, official-docs, cpython, P0
Local_Trusted_Corpus
cbe98ee5-5e08-4d90-9375-d19020495528
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,061
supabase-export-v2
7debdac0cc5f237a
Basic Example ------------- The following example shows how the :ref:`zipapp-command-line-interface` can be used to create an executable archive from a directory containing Python code. When run, the archive will execute the ``main`` function from the module ``myapp`` in the archive.
trusted_official_docs
CPython Docs
Basic Example ------------- The following example shows how the :ref:`zipapp-command-line-interface` can be used to create an executable archive from a directory containing Python code. When run, the archive will execute the ``main`` function from the module ``myapp`` in the archive.
Basic Example ------------- The following example shows how the :ref:`zipapp-command-line-interface` can be used to create an executable archive from a directory containing Python code. When run, the archive will execute the ``main`` function from the module ``myapp`` in the archive.
python, official-docs, cpython, P0
Local_Trusted_Corpus
cdb61d23-94e3-4699-86e6-ad46bf043819
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,138
supabase-export-v2
d217501ec8dce384
of the script (in this case the zip file) will be placed on :data:`sys.path` and thus further modules can be imported from the zip file. The zip file format allows arbitrary data to be prepended to a zip file. The zip application format uses this ability to prepend a standard POSIX "shebang" line to the file (``#!/path...
trusted_official_docs
CPython Docs
of the script (in this case the zip file) will be placed on :data:`sys.path` and thus further modules can be imported from the zip file. The zip file format allows arbitrary data to be prepended to a zip file. The zip application format uses this ability to prepend a standard POSIX "shebang" line to the file (``#!/path...
of the script (in this case the zip file) will be placed on :data:`sys.path` and thus further modules can be imported from the zip file. The zip file format allows arbitrary data to be prepended to a zip file. The zip application format uses this ability to prepend a standard POSIX "shebang" line to the file (``#!/path...
python, official-docs, cpython, P0
Local_Trusted_Corpus
cf0d3297-e61a-466e-a1a5-e13238398f66
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,091
supabase-export-v2
2c640f89600d016d
Create an application archive from *source*. The source can be any of the following: * The name of a directory, or a :term:`path-like object` referring to a directory, in which case a new application archive will be created from the content of that directory. * The name of an existing application archive file, or a :...
trusted_official_docs
CPython Docs
Create an application archive from *source*. The source can be any of the following: * The name of a directory, or a :term:`path-like object` referring to a directory, in which case a new application archive will be created from the content of that directory. * The name of an existing application archive file, or a :...
Create an application archive from *source*. The source can be any of the following: * The name of a directory, or a :term:`path-like object` referring to a directory, in which case a new application archive will be created from the content of that directory. * The name of an existing application archive file, or a :...
python, official-docs, cpython, P0
Local_Trusted_Corpus
cfd096cb-0c5a-412f-be1b-40641b2ef4e0
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,129
supabase-export-v2
2c83420babbef797
assumes you have your project requirements in a ``requirements.txt`` file - if not, you can just list the dependencies manually on the pip command line). 3. Package the application using:
trusted_official_docs
CPython Docs
assumes you have your project requirements in a ``requirements.txt`` file - if not, you can just list the dependencies manually on the pip command line). 3. Package the application using:
assumes you have your project requirements in a ``requirements.txt`` file - if not, you can just list the dependencies manually on the pip command line). 3. Package the application using:
python, official-docs, cpython, P0
Local_Trusted_Corpus
d145ac2a-0ea6-4993-b3f0-e1652871fbd0
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,098
supabase-export-v2
bd0eb01fcc851d3b
files in the archive are compressed with the deflate method; otherwise, files are stored uncompressed. This argument has no effect when copying an existing archive. If a file object is specified for *source* or *target*, it is the caller's responsibility to close it after calling create_archive.
trusted_official_docs
CPython Docs
files in the archive are compressed with the deflate method; otherwise, files are stored uncompressed. This argument has no effect when copying an existing archive. If a file object is specified for *source* or *target*, it is the caller's responsibility to close it after calling create_archive.
files in the archive are compressed with the deflate method; otherwise, files are stored uncompressed. This argument has no effect when copying an existing archive. If a file object is specified for *source* or *target*, it is the caller's responsibility to close it after calling create_archive.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d7628d0a-118d-44ed-9dbc-d293dc3fd706
CPython Docs
file://datasets/cpython/Doc/library/zipapp.rst
unknown
7e6347e7-09be-496f-ac93-4481f8807e34
5,100
supabase-export-v2
4cb3c649d0eb1e49
directory, if the target is a file object it will be passed to the ``zipfile.ZipFile`` class, and must supply the methods needed by that class. .. versionchanged:: 3.7 Added the *filter* and *compressed* parameters.
trusted_official_docs
CPython Docs
directory, if the target is a file object it will be passed to the ``zipfile.ZipFile`` class, and must supply the methods needed by that class. .. versionchanged:: 3.7 Added the *filter* and *compressed* parameters.
directory, if the target is a file object it will be passed to the ``zipfile.ZipFile`` class, and must supply the methods needed by that class. .. versionchanged:: 3.7 Added the *filter* and *compressed* parameters.
python, official-docs, cpython, P0
Local_Trusted_Corpus