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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8494ebdc-1b1f-4ca2-9d1f-29deae754ce2 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,066 | supabase-export-v2 | 644e490b1b043e58 | separate string. If there is no fragment identifier in *url*, return *url* unmodified and an empty string (by default) or ``None`` if *missing_as_none* is true.
The return value is a :term:`named tuple`, its items can be accessed by index
or as named attributes: | trusted_official_docs | CPython Docs | separate string. If there is no fragment identifier in *url*, return *url* unmodified and an empty string (by default) or ``None`` if *missing_as_none* is true.
The return value is a :term:`named tuple`, its items can be accessed by index
or as named attributes: | separate string. If there is no fragment identifier in *url*, return *url* unmodified and an empty string (by default) or ``None`` if *missing_as_none* is true.
The return value is a :term:`named tuple`, its items can be accessed by index
or as named attributes: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
85edf23b-858d-4caf-9d6a-6279a6ce2077 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,046 | supabase-export-v2 | 3b1b9a0448f2655c | of the URL (see :rfc:`3986`). :func:`urlsplit` should generally be used instead of :func:`urlparse`. A separate function is needed to separate the path segments and parameters.
.. function:: urlunparse(parts)
urlunparse(parts, *, keep_empty) | trusted_official_docs | CPython Docs | of the URL (see :rfc:`3986`). :func:`urlsplit` should generally be used instead of :func:`urlparse`. A separate function is needed to separate the path segments and parameters.
.. function:: urlunparse(parts)
urlunparse(parts, *, keep_empty) | of the URL (see :rfc:`3986`). :func:`urlsplit` should generally be used instead of :func:`urlparse`. A separate function is needed to separate the path segments and parameters.
.. function:: urlunparse(parts)
urlunparse(parts, *, keep_empty) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8607c94e-5302-4c3c-8289-984b93b3b35f | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,091 | supabase-export-v2 | 2af7b60d37df32eb | Structured Parse Results ------------------------
The result objects from the :func:`urlsplit`, :func:`urlparse` and
:func:`urldefrag` functions are subclasses of the :class:`tuple` type. These subclasses add the attributes listed in the documentation for
those functions, the encoding and decoding support described in ... | trusted_official_docs | CPython Docs | Structured Parse Results ------------------------
The result objects from the :func:`urlsplit`, :func:`urlparse` and
:func:`urldefrag` functions are subclasses of the :class:`tuple` type. These subclasses add the attributes listed in the documentation for
those functions, the encoding and decoding support described in ... | Structured Parse Results ------------------------
The result objects from the :func:`urlsplit`, :func:`urlparse` and
:func:`urldefrag` functions are subclasses of the :class:`tuple` type. These subclasses add the attributes listed in the documentation for
those functions, the encoding and decoding support described in ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8ced8c37-01c6-4fb4-8761-f1b62e41cdd8 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,116 | supabase-export-v2 | 74957d570dd85850 | operations to recreate the original data from the contents of a URL component if that task isn't already covered by the URL parsing functions above.
.. function:: quote(string, safe='/', encoding=None, errors=None) | trusted_official_docs | CPython Docs | operations to recreate the original data from the contents of a URL component if that task isn't already covered by the URL parsing functions above.
.. function:: quote(string, safe='/', encoding=None, errors=None) | operations to recreate the original data from the contents of a URL component if that task isn't already covered by the URL parsing functions above.
.. function:: quote(string, safe='/', encoding=None, errors=None) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8fef9b8f-d7aa-4bf5-849a-20cea59a0c78 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,118 | supabase-export-v2 | 12ab19e632eace57 | the path section of a URL. The optional *safe* parameter specifies additional ASCII characters that should not be quoted --- its default value is ``'/'``.
*string* may be either a :class:`str` or a :class:`bytes` object. | trusted_official_docs | CPython Docs | the path section of a URL. The optional *safe* parameter specifies additional ASCII characters that should not be quoted --- its default value is ``'/'``.
*string* may be either a :class:`str` or a :class:`bytes` object. | the path section of a URL. The optional *safe* parameter specifies additional ASCII characters that should not be quoted --- its default value is ``'/'``.
*string* may be either a :class:`str` or a :class:`bytes` object. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
90ebe6c4-a857-48bb-907a-ded42d6cd395 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,028 | supabase-export-v2 | 4b0935bf402328e6 | .. function:: parse_qsl(qs, keep_blank_values=False, strict_parsing=False, encoding='utf-8', errors='replace', max_num_fields=None, separator='&')
Parse a query string given as a string argument (data of type
:mimetype:`application/x-www-form-urlencoded`). Data are returned as a list of
name, value pairs. | trusted_official_docs | CPython Docs | .. function:: parse_qsl(qs, keep_blank_values=False, strict_parsing=False, encoding='utf-8', errors='replace', max_num_fields=None, separator='&')
Parse a query string given as a string argument (data of type
:mimetype:`application/x-www-form-urlencoded`). Data are returned as a list of
name, value pairs. | .. function:: parse_qsl(qs, keep_blank_values=False, strict_parsing=False, encoding='utf-8', errors='replace', max_num_fields=None, separator='&')
Parse a query string given as a string argument (data of type
:mimetype:`application/x-www-form-urlencoded`). Data are returned as a list of
name, value pairs. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
913c52ae-6438-411c-914f-541ce64a3b9e | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,000 | supabase-export-v2 | 19e577f870e04b74 | Unmatched square brackets in the :attr:`netloc` attribute will raise a :exc:`ValueError`.
Characters in the :attr:`netloc` attribute that decompose under NFKC
normalization (as used by the IDNA encoding) into any of ``/``, ``?``,
``#``, ``@``, or ``:`` will raise a :exc:`ValueError`. If the URL is
decomposed before ... | trusted_official_docs | CPython Docs | Unmatched square brackets in the :attr:`netloc` attribute will raise a :exc:`ValueError`.
Characters in the :attr:`netloc` attribute that decompose under NFKC
normalization (as used by the IDNA encoding) into any of ``/``, ``?``,
``#``, ``@``, or ``:`` will raise a :exc:`ValueError`. If the URL is
decomposed before ... | Unmatched square brackets in the :attr:`netloc` attribute will raise a :exc:`ValueError`.
Characters in the :attr:`netloc` attribute that decompose under NFKC
normalization (as used by the IDNA encoding) into any of ``/``, ``?``,
``#``, ``@``, or ``:`` will raise a :exc:`ValueError`. If the URL is
decomposed before ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
93dcd707-1244-4237-baa7-702ee1ba31c4 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,045 | supabase-export-v2 | 00176f6aea0a4945 | :class:`ParseResult` or :class:`ParseResultBytes`. Its items are the same as for the :func:`!urlsplit` result, except that *params* is inserted at index 3, between *path* and *query*.
This function is based on obsoleted :rfc:`1738` and :rfc:`1808`, which
listed *params* as the main URL component. The more recent URL s... | trusted_official_docs | CPython Docs | :class:`ParseResult` or :class:`ParseResultBytes`. Its items are the same as for the :func:`!urlsplit` result, except that *params* is inserted at index 3, between *path* and *query*.
This function is based on obsoleted :rfc:`1738` and :rfc:`1808`, which
listed *params* as the main URL component. The more recent URL s... | :class:`ParseResult` or :class:`ParseResultBytes`. Its items are the same as for the :func:`!urlsplit` result, except that *params* is inserted at index 3, between *path* and *query*.
This function is based on obsoleted :rfc:`1738` and :rfc:`1808`, which
listed *params* as the main URL component. The more recent URL s... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
98dc19d7-b941-4310-80bd-8cd5119882e7 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,008 | supabase-export-v2 | 4d256e0d62f33794 | .. versionchanged:: 3.2 Added IPv6 URL parsing capabilities.
.. versionchanged:: 3.3
The fragment is now parsed for all URL schemes (unless *allow_fragments* is
false), in accordance with :rfc:`3986`. Previously, an allowlist of
schemes that support fragments existed. | trusted_official_docs | CPython Docs | .. versionchanged:: 3.2 Added IPv6 URL parsing capabilities.
.. versionchanged:: 3.3
The fragment is now parsed for all URL schemes (unless *allow_fragments* is
false), in accordance with :rfc:`3986`. Previously, an allowlist of
schemes that support fragments existed. | .. versionchanged:: 3.2 Added IPv6 URL parsing capabilities.
.. versionchanged:: 3.3
The fragment is now parsed for all URL schemes (unless *allow_fragments* is
false), in accordance with :rfc:`3986`. Previously, an allowlist of
schemes that support fragments existed. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9b3e23ae-36d3-443a-9c8c-c7ff3b168cb0 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,124 | supabase-export-v2 | 42e39cea9a6da135 | .. function:: quote_plus(string, safe='', encoding=None, errors=None)
Like :func:`quote`, but also replace spaces with plus signs, as required for
quoting HTML form values when building up a query string to go into a URL. Plus signs in the original string are escaped unless they are included in
*safe*. It also does n... | trusted_official_docs | CPython Docs | .. function:: quote_plus(string, safe='', encoding=None, errors=None)
Like :func:`quote`, but also replace spaces with plus signs, as required for
quoting HTML form values when building up a query string to go into a URL. Plus signs in the original string are escaped unless they are included in
*safe*. It also does n... | .. function:: quote_plus(string, safe='', encoding=None, errors=None)
Like :func:`quote`, but also replace spaces with plus signs, as required for
quoting HTML form values when building up a query string to go into a URL. Plus signs in the original string are escaped unless they are included in
*safe*. It also does n... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9e6bcfeb-576e-4e0e-b4ea-751b5d36c901 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,078 | supabase-export-v2 | 0c1845dff8279527 | some component parts as empty strings or ``None`` (depending on the value of the *missing_as_none* argument). Or components may contain more than perhaps they should.
We recommend that users of these APIs where the values may be used anywhere
with security implications code defensively. Do some verification within your... | trusted_official_docs | CPython Docs | some component parts as empty strings or ``None`` (depending on the value of the *missing_as_none* argument). Or components may contain more than perhaps they should.
We recommend that users of these APIs where the values may be used anywhere
with security implications code defensively. Do some verification within your... | some component parts as empty strings or ``None`` (depending on the value of the *missing_as_none* argument). Or components may contain more than perhaps they should.
We recommend that users of these APIs where the values may be used anywhere
with security implications code defensively. Do some verification within your... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a10faba3-33ed-4324-9d98-a6e4d1016dcd | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 18,994 | supabase-export-v2 | 822a95432255da23 | the same type (text or bytes) as *urlstring* or ``None``, except that the ``''`` is always allowed, and is automatically converted to ``b''`` if appropriate.
If the *allow_fragments* argument is false, fragment identifiers are not
recognized. Instead, they are parsed as part of the path
or query component, and :attr:... | trusted_official_docs | CPython Docs | the same type (text or bytes) as *urlstring* or ``None``, except that the ``''`` is always allowed, and is automatically converted to ``b''`` if appropriate.
If the *allow_fragments* argument is false, fragment identifiers are not
recognized. Instead, they are parsed as part of the path
or query component, and :attr:... | the same type (text or bytes) as *urlstring* or ``None``, except that the ``''`` is always allowed, and is automatically converted to ``b''`` if appropriate.
If the *allow_fragments* argument is false, fragment identifiers are not
recognized. Instead, they are parsed as part of the path
or query component, and :attr:... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a4586433-460e-41c6-93a1-9bfccbfffcd8 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,084 | supabase-export-v2 | 7b2d490c4366b830 | passed in, the result will also contain only :class:`str` data. If :class:`bytes` or :class:`bytearray` data is passed in, the result will contain only :class:`bytes` data.
Attempting to mix :class:`str` data with :class:`bytes` or
:class:`bytearray` in a single function call will result in a
:exc:`TypeError` being rai... | trusted_official_docs | CPython Docs | passed in, the result will also contain only :class:`str` data. If :class:`bytes` or :class:`bytearray` data is passed in, the result will contain only :class:`bytes` data.
Attempting to mix :class:`str` data with :class:`bytes` or
:class:`bytearray` in a single function call will result in a
:exc:`TypeError` being rai... | passed in, the result will also contain only :class:`str` data. If :class:`bytes` or :class:`bytearray` data is passed in, the result will contain only :class:`bytes` data.
Attempting to mix :class:`str` data with :class:`bytes` or
:class:`bytearray` in a single function call will result in a
:exc:`TypeError` being rai... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a61fa8bc-8e41-4df1-bf35-167e7a2baebf | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,026 | supabase-export-v2 | a761ddc113c9c1a7 | both ``;`` and ``&`` as query parameter separator. This has been changed to allow only a single separator key, with ``&`` as the default separator.
.. deprecated:: 3.14
Accepting objects with false values (like ``0`` and ``[]``) except empty
strings and byte-like objects and ``None`` is now deprecated. | trusted_official_docs | CPython Docs | both ``;`` and ``&`` as query parameter separator. This has been changed to allow only a single separator key, with ``&`` as the default separator.
.. deprecated:: 3.14
Accepting objects with false values (like ``0`` and ``[]``) except empty
strings and byte-like objects and ``None`` is now deprecated. | both ``;`` and ``&`` as query parameter separator. This has been changed to allow only a single separator key, with ``&`` as the default separator.
.. deprecated:: 3.14
Accepting objects with false values (like ``0`` and ``[]``) except empty
strings and byte-like objects and ``None`` is now deprecated. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
aa7d9b60-959c-4a24-8b6c-e2a2b70c0733 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,018 | supabase-export-v2 | 741c166681e55ea2 | be retained as blank strings. The default false value indicates that blank values are to be ignored and treated as if they were not included.
The optional argument *strict_parsing* is a flag indicating what to do with
parsing errors. If false (the default), errors are silently ignored. If true,
errors raise a :exc:`V... | trusted_official_docs | CPython Docs | be retained as blank strings. The default false value indicates that blank values are to be ignored and treated as if they were not included.
The optional argument *strict_parsing* is a flag indicating what to do with
parsing errors. If false (the default), errors are silently ignored. If true,
errors raise a :exc:`V... | be retained as blank strings. The default false value indicates that blank values are to be ignored and treated as if they were not included.
The optional argument *strict_parsing* is a flag indicating what to do with
parsing errors. If false (the default), errors are silently ignored. If true,
errors raise a :exc:`V... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b52d99e2-e3b9-4c82-b009-7421dd44b7bf | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 18,990 | supabase-export-v2 | 47eec84b2ee28227 | 'docs.python.org:80' >>> o.hostname 'docs.python.org' >>> o.port 80 >>> o._replace(fragment="").geturl() 'http://docs.python.org:80/3/library/urllib.parse.html?highlight=params' >>> urlsplit("http://docs.python.org?") SplitResult(scheme='http', netloc='docs.python.org', path='', query='', fragment='') >>> urlsplit("htt... | trusted_official_docs | CPython Docs | 'docs.python.org:80' >>> o.hostname 'docs.python.org' >>> o.port 80 >>> o._replace(fragment="").geturl() 'http://docs.python.org:80/3/library/urllib.parse.html?highlight=params' >>> urlsplit("http://docs.python.org?") SplitResult(scheme='http', netloc='docs.python.org', path='', query='', fragment='') >>> urlsplit("htt... | 'docs.python.org:80' >>> o.hostname 'docs.python.org' >>> o.port 80 >>> o._replace(fragment="").geturl() 'http://docs.python.org:80/3/library/urllib.parse.html?highlight=params' >>> urlsplit("http://docs.python.org?") SplitResult(scheme='http', netloc='docs.python.org', path='', query='', fragment='') >>> urlsplit("htt... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bc1254b4-de56-48df-8665-640c92b6253b | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 18,981 | supabase-export-v2 | d3ba87ee29afe7d0 | Handling for the ``itms-services`` scheme is always removed on iOS; on macOS, it *may* be removed if CPython has been built with the :option:`--with-app-store-compliance` option.
The :mod:`!urllib.parse` module defines functions that fall into two broad
categories: URL parsing and URL quoting. These are covered in deta... | trusted_official_docs | CPython Docs | Handling for the ``itms-services`` scheme is always removed on iOS; on macOS, it *may* be removed if CPython has been built with the :option:`--with-app-store-compliance` option.
The :mod:`!urllib.parse` module defines functions that fall into two broad
categories: URL parsing and URL quoting. These are covered in deta... | Handling for the ``itms-services`` scheme is always removed on iOS; on macOS, it *may* be removed if CPython has been built with the :option:`--with-app-store-compliance` option.
The :mod:`!urllib.parse` module defines functions that fall into two broad
categories: URL parsing and URL quoting. These are covered in deta... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bf28ec8f-c83f-4b4e-81e6-b9d14f641bf5 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 18,977 | supabase-export-v2 | 655d47a81af86926 | --------------
This module defines a standard interface to break Uniform Resource Locator (URL)
strings up in components (addressing scheme, network location, path etc.), to
combine the components back into a URL string, and to convert a "relative URL"
to an absolute URL given a "base URL." | trusted_official_docs | CPython Docs | --------------
This module defines a standard interface to break Uniform Resource Locator (URL)
strings up in components (addressing scheme, network location, path etc.), to
combine the components back into a URL string, and to convert a "relative URL"
to an absolute URL given a "base URL." | --------------
This module defines a standard interface to break Uniform Resource Locator (URL)
strings up in components (addressing scheme, network location, path etc.), to
combine the components back into a URL string, and to convert a "relative URL"
to an absolute URL given a "base URL." | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c02e736d-ce5d-4bae-8833-00b8b49ce5c8 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,017 | supabase-export-v2 | 96802d737542ca91 | Data are returned as a dictionary. The dictionary keys are the unique query variable names and the values are lists of values for each name.
The optional argument *keep_blank_values* is a flag indicating whether blank
values in percent-encoded queries should be treated as blank strings. A true value
indicates that bl... | trusted_official_docs | CPython Docs | Data are returned as a dictionary. The dictionary keys are the unique query variable names and the values are lists of values for each name.
The optional argument *keep_blank_values* is a flag indicating whether blank
values in percent-encoded queries should be treated as blank strings. A true value
indicates that bl... | Data are returned as a dictionary. The dictionary keys are the unique query variable names and the values are lists of values for each name.
The optional argument *keep_blank_values* is a flag indicating whether blank
values in percent-encoded queries should be treated as blank strings. A true value
indicates that bl... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c050ed4c-399d-4fb0-b3ba-97d38002aaae | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 18,980 | supabase-export-v2 | eafdf781ca3f73fc | .. impl-detail::
The inclusion of the ``itms-services`` URL scheme can prevent an app from
passing Apple's App Store review process for the macOS and iOS App Stores. Handling for the ``itms-services`` scheme is always removed on iOS; on
macOS, it *may* be removed if CPython has been built with the
:option:`--with-ap... | trusted_official_docs | CPython Docs | .. impl-detail::
The inclusion of the ``itms-services`` URL scheme can prevent an app from
passing Apple's App Store review process for the macOS and iOS App Stores. Handling for the ``itms-services`` scheme is always removed on iOS; on
macOS, it *may* be removed if CPython has been built with the
:option:`--with-ap... | .. impl-detail::
The inclusion of the ``itms-services`` URL scheme can prevent an app from
passing Apple's App Store review process for the macOS and iOS App Stores. Handling for the ``itms-services`` scheme is always removed on iOS; on
macOS, it *may* be removed if CPython has been built with the
:option:`--with-ap... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c5465fd6-3328-4646-8688-2dc47c99770c | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,130 | supabase-export-v2 | 41d91f9015b65262 | .. function:: unquote(string, encoding='utf-8', errors='replace')
Replace :samp:`%{xx}` escapes with their single-character equivalent. The optional *encoding* and *errors* parameters specify how to decode
percent-encoded sequences into Unicode characters, as accepted by the
:meth:`bytes.decode` method. | trusted_official_docs | CPython Docs | .. function:: unquote(string, encoding='utf-8', errors='replace')
Replace :samp:`%{xx}` escapes with their single-character equivalent. The optional *encoding* and *errors* parameters specify how to decode
percent-encoded sequences into Unicode characters, as accepted by the
:meth:`bytes.decode` method. | .. function:: unquote(string, encoding='utf-8', errors='replace')
Replace :samp:`%{xx}` escapes with their single-character equivalent. The optional *encoding* and *errors* parameters specify how to decode
percent-encoded sequences into Unicode characters, as accepted by the
:meth:`bytes.decode` method. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c623b49d-704f-44ea-8bb8-34489692ce87 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,153 | supabase-export-v2 | 7c5f40b77ba3a53a | .. versionchanged:: 3.5 Added the *quote_via* parameter.
.. deprecated:: 3.14
Accepting objects with false values (like ``0`` and ``[]``) except empty
strings and byte-like objects and ``None`` is now deprecated. | trusted_official_docs | CPython Docs | .. versionchanged:: 3.5 Added the *quote_via* parameter.
.. deprecated:: 3.14
Accepting objects with false values (like ``0`` and ``[]``) except empty
strings and byte-like objects and ``None`` is now deprecated. | .. versionchanged:: 3.5 Added the *quote_via* parameter.
.. deprecated:: 3.14
Accepting objects with false values (like ``0`` and ``[]``) except empty
strings and byte-like objects and ``None`` is now deprecated. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c8cc5b69-e251-4173-9756-96272b9cfec1 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,150 | supabase-export-v2 | 91a1868e81a41e66 | To reverse this encoding process, :func:`parse_qs` and :func:`parse_qsl` are provided in this module to parse query strings into Python data structures.
Refer to :ref:`urllib examples <urllib-examples>` to find out how the
:func:`urllib.parse.urlencode` method can be used for generating the query
string of a URL or d... | trusted_official_docs | CPython Docs | To reverse this encoding process, :func:`parse_qs` and :func:`parse_qsl` are provided in this module to parse query strings into Python data structures.
Refer to :ref:`urllib examples <urllib-examples>` to find out how the
:func:`urllib.parse.urlencode` method can be used for generating the query
string of a URL or d... | To reverse this encoding process, :func:`parse_qs` and :func:`parse_qsl` are provided in this module to parse query strings into Python data structures.
Refer to :ref:`urllib examples <urllib-examples>` to find out how the
:func:`urllib.parse.urlencode` method can be used for generating the query
string of a URL or d... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ca56f1dc-7f30-4d0a-8df9-7db6a33c977c | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 18,997 | supabase-export-v2 | 994af7b773b3fdde | (lower case) | ``None`` | +------------------+-------+-------------------------+-------------------------------+ | :attr:`port` | | Port number as integer, | ``None`` | | | | if present | | +------------------+-------+-------------------------+-------------------------------+
.. [1] Depending on the value of the *missi... | trusted_official_docs | CPython Docs | (lower case) | ``None`` | +------------------+-------+-------------------------+-------------------------------+ | :attr:`port` | | Port number as integer, | ``None`` | | | | if present | | +------------------+-------+-------------------------+-------------------------------+
.. [1] Depending on the value of the *missi... | (lower case) | ``None`` | +------------------+-------+-------------------------+-------------------------------+ | :attr:`port` | | Port number as integer, | ``None`` | | | | if present | | +------------------+-------+-------------------------+-------------------------------+
.. [1] Depending on the value of the *missi... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ca822c32-3a9d-4078-9a06-841d1c8c8d2e | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,083 | supabase-export-v2 | 5b6068c0182298ff | as sequences of ASCII bytes. Accordingly, the URL parsing functions in this module all operate on :class:`bytes` and :class:`bytearray` objects in addition to :class:`str` objects.
If :class:`str` data is passed in, the result will also contain only
:class:`str` data. If :class:`bytes` or :class:`bytearray` data is
pas... | trusted_official_docs | CPython Docs | as sequences of ASCII bytes. Accordingly, the URL parsing functions in this module all operate on :class:`bytes` and :class:`bytearray` objects in addition to :class:`str` objects.
If :class:`str` data is passed in, the result will also contain only
:class:`str` data. If :class:`bytes` or :class:`bytearray` data is
pas... | as sequences of ASCII bytes. Accordingly, the URL parsing functions in this module all operate on :class:`bytes` and :class:`bytearray` objects in addition to :class:`str` objects.
If :class:`str` data is passed in, the result will also contain only
:class:`str` data. If :class:`bytes` or :class:`bytearray` data is
pas... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cbcf590f-a210-465c-bcd3-1087480a626b | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,095 | supabase-export-v2 | 5e069c4dc6585fcd | only empty fragment identifiers will be removed. For :func:`urlsplit` and :func:`urlparse` results, all noted changes will be made to the URL returned by this method.
The result of this method remains unchanged if passed back through the original
parsing function: | trusted_official_docs | CPython Docs | only empty fragment identifiers will be removed. For :func:`urlsplit` and :func:`urlparse` results, all noted changes will be made to the URL returned by this method.
The result of this method remains unchanged if passed back through the original
parsing function: | only empty fragment identifiers will be removed. For :func:`urlsplit` and :func:`urlparse` results, all noted changes will be made to the URL returned by this method.
The result of this method remains unchanged if passed back through the original
parsing function: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cc6fde41-27ac-4dea-a0fe-1b1dc9b2cecc | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,049 | supabase-export-v2 | 6e74178755c61d8a | if the URL that was parsed originally had unnecessary delimiters (for example, a ``?`` with an empty query; the RFC states that these are equivalent).
If *keep_empty* is true, empty strings are kept in the result (for example,
a ``?`` for an empty query), only ``None`` components are omitted. This allows rebuilding a ... | trusted_official_docs | CPython Docs | if the URL that was parsed originally had unnecessary delimiters (for example, a ``?`` with an empty query; the RFC states that these are equivalent).
If *keep_empty* is true, empty strings are kept in the result (for example,
a ``?`` for an empty query), only ``None`` components are omitted. This allows rebuilding a ... | if the URL that was parsed originally had unnecessary delimiters (for example, a ``?`` with an empty query; the RFC states that these are equivalent).
If *keep_empty* is true, empty strings are kept in the result (for example,
a ``?`` for an empty query), only ``None`` components are omitted. This allows rebuilding a ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cd07618b-f1c0-43a8-b682-2022f341d0c9 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,077 | supabase-export-v2 | 6f9ab0326f26e021 | consider invalid. They may also succeed on some inputs that might not be considered URLs elsewhere. Their purpose is for practical functionality rather than purity.
Instead of raising an exception on unusual input, they may instead return some
component parts as empty strings or ``None`` (depending on the value of the
... | trusted_official_docs | CPython Docs | consider invalid. They may also succeed on some inputs that might not be considered URLs elsewhere. Their purpose is for practical functionality rather than purity.
Instead of raising an exception on unusual input, they may instead return some
component parts as empty strings or ``None`` (depending on the value of the
... | consider invalid. They may also succeed on some inputs that might not be considered URLs elsewhere. Their purpose is for practical functionality rather than purity.
Instead of raising an exception on unusual input, they may instead return some
component parts as empty strings or ``None`` (depending on the value of the
... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cd249dc8-727c-4e8a-9733-c99f82ef3d3c | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,053 | supabase-export-v2 | 1ae24c0243dfc24e | base URL, in particular the addressing scheme, the network location and (part of) the path, to provide missing components in the relative URL. For example:
>>> from urllib.parse import urljoin
>>> urljoin('http://www.cwi.nl/%7Eguido/Python.html', 'FAQ.html')
'http://www.cwi.nl/%7Eguido/FAQ.html' | trusted_official_docs | CPython Docs | base URL, in particular the addressing scheme, the network location and (part of) the path, to provide missing components in the relative URL. For example:
>>> from urllib.parse import urljoin
>>> urljoin('http://www.cwi.nl/%7Eguido/Python.html', 'FAQ.html')
'http://www.cwi.nl/%7Eguido/FAQ.html' | base URL, in particular the addressing scheme, the network location and (part of) the path, to provide missing components in the relative URL. For example:
>>> from urllib.parse import urljoin
>>> urljoin('http://www.cwi.nl/%7Eguido/Python.html', 'FAQ.html')
'http://www.cwi.nl/%7Eguido/FAQ.html' | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dafb0d5c-b113-4523-8d6d-abdfe2f93c13 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,085 | supabase-export-v2 | 366ea15c5d471b0c | or :class:`bytearray` in a single function call will result in a :exc:`TypeError` being raised, while attempting to pass in non-ASCII byte values will trigger :exc:`UnicodeDecodeError`.
To support easier conversion of result objects between :class:`str` and
:class:`bytes`, all return values from URL parsing functions p... | trusted_official_docs | CPython Docs | or :class:`bytearray` in a single function call will result in a :exc:`TypeError` being raised, while attempting to pass in non-ASCII byte values will trigger :exc:`UnicodeDecodeError`.
To support easier conversion of result objects between :class:`str` and
:class:`bytes`, all return values from URL parsing functions p... | or :class:`bytearray` in a single function call will result in a :exc:`TypeError` being raised, while attempting to pass in non-ASCII byte values will trigger :exc:`UnicodeDecodeError`.
To support easier conversion of result objects between :class:`str` and
:class:`bytes`, all return values from URL parsing functions p... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
df1408f6-1bc4-4033-a4a3-337117332a02 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,094 | supabase-export-v2 | 64bb83fb7c1ad7c2 | lower case and empty components may be dropped. Specifically, empty parameters, queries, and fragment identifiers will be removed unless the URL was parsed with ``missing_as_none=True``.
For :func:`urldefrag` results, only empty fragment identifiers will be removed. For :func:`urlsplit` and :func:`urlparse` results, al... | trusted_official_docs | CPython Docs | lower case and empty components may be dropped. Specifically, empty parameters, queries, and fragment identifiers will be removed unless the URL was parsed with ``missing_as_none=True``.
For :func:`urldefrag` results, only empty fragment identifiers will be removed. For :func:`urlsplit` and :func:`urlparse` results, al... | lower case and empty components may be dropped. Specifically, empty parameters, queries, and fragment identifiers will be removed unless the URL was parsed with ``missing_as_none=True``.
For :func:`urldefrag` results, only empty fragment identifiers will be removed. For :func:`urlsplit` and :func:`urlparse` results, al... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e359dee1-2461-4177-a043-26e08f9e413b | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 18,996 | supabase-export-v2 | c487b40e4bb5e4dc | The return value is a :term:`named tuple`, which means that its items can be accessed by index or as named attributes, which are:
+------------------+-------+-------------------------+-------------------------------+
| Attribute | Index | Value | Value if not present |
+==================+=======+====================... | trusted_official_docs | CPython Docs | The return value is a :term:`named tuple`, which means that its items can be accessed by index or as named attributes, which are:
+------------------+-------+-------------------------+-------------------------------+
| Attribute | Index | Value | Value if not present |
+==================+=======+====================... | The return value is a :term:`named tuple`, which means that its items can be accessed by index or as named attributes, which are:
+------------------+-------+-------------------------+-------------------------------+
| Attribute | Index | Value | Value if not present |
+==================+=======+====================... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e67556ca-5503-4fc3-91eb-0525f19bd708 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 18,992 | supabase-export-v2 | 2054e415da5f9853 | .. doctest:: :options: +NORMALIZE_WHITESPACE
>>> from urllib.parse import urlsplit
>>> urlsplit('//www.cwi.nl:80/%7Eguido/Python.html')
SplitResult(scheme='', netloc='www.cwi.nl:80', path='/%7Eguido/Python.html',
query='', fragment='')
>>> urlsplit('www.cwi.nl/%7Eguido/Python.html')
SplitResult(scheme='', netloc='... | trusted_official_docs | CPython Docs | .. doctest:: :options: +NORMALIZE_WHITESPACE
>>> from urllib.parse import urlsplit
>>> urlsplit('//www.cwi.nl:80/%7Eguido/Python.html')
SplitResult(scheme='', netloc='www.cwi.nl:80', path='/%7Eguido/Python.html',
query='', fragment='')
>>> urlsplit('www.cwi.nl/%7Eguido/Python.html')
SplitResult(scheme='', netloc='... | .. doctest:: :options: +NORMALIZE_WHITESPACE
>>> from urllib.parse import urlsplit
>>> urlsplit('//www.cwi.nl:80/%7Eguido/Python.html')
SplitResult(scheme='', netloc='www.cwi.nl:80', path='/%7Eguido/Python.html',
query='', fragment='')
>>> urlsplit('www.cwi.nl/%7Eguido/Python.html')
SplitResult(scheme='', netloc='... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e6c50f67-6ecb-46ee-87d1-d668136340d5 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 18,993 | supabase-export-v2 | 3531a0cd2028146d | path='/%7Eguido/Python.html', query='', fragment='') >>> urlsplit('www.cwi.nl/%7Eguido/Python.html') SplitResult(scheme='', netloc='', path='www.cwi.nl/%7Eguido/Python.html', query='', fragment='') >>> urlsplit('help/Python.html') SplitResult(scheme='', netloc='', path='help/Python.html', query='', fragment='') >>> url... | trusted_official_docs | CPython Docs | path='/%7Eguido/Python.html', query='', fragment='') >>> urlsplit('www.cwi.nl/%7Eguido/Python.html') SplitResult(scheme='', netloc='', path='www.cwi.nl/%7Eguido/Python.html', query='', fragment='') >>> urlsplit('help/Python.html') SplitResult(scheme='', netloc='', path='help/Python.html', query='', fragment='') >>> url... | path='/%7Eguido/Python.html', query='', fragment='') >>> urlsplit('www.cwi.nl/%7Eguido/Python.html') SplitResult(scheme='', netloc='', path='www.cwi.nl/%7Eguido/Python.html', query='', fragment='') >>> urlsplit('help/Python.html') SplitResult(scheme='', netloc='', path='help/Python.html', query='', fragment='') >>> url... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e876c4a6-aaa2-48e9-bb9a-0f216bfddf9f | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,052 | supabase-export-v2 | 0ccd058ef04941df | .. function:: urljoin(base, url, allow_fragments=True)
Construct a full ("absolute") URL by combining a "base URL" (*base*) with
another URL (*url*). Informally, this uses components of the base URL, in
particular the addressing scheme, the network location and (part of) the
path, to provide missing components in th... | trusted_official_docs | CPython Docs | .. function:: urljoin(base, url, allow_fragments=True)
Construct a full ("absolute") URL by combining a "base URL" (*base*) with
another URL (*url*). Informally, this uses components of the base URL, in
particular the addressing scheme, the network location and (part of) the
path, to provide missing components in th... | .. function:: urljoin(base, url, allow_fragments=True)
Construct a full ("absolute") URL by combining a "base URL" (*base*) with
another URL (*url*). Informally, this uses components of the base URL, in
particular the addressing scheme, the network location and (part of) the
path, to provide missing components in th... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e8ac57b1-7091-41af-a799-aa0e5faca07b | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,086 | supabase-export-v2 | f01b8bc3445c359d | rather than ``'utf-8'``). Each produces a value of a corresponding type that contains either :class:`bytes` data (for :meth:`encode` methods) or :class:`str` data (for :meth:`decode` methods).
Applications that need to operate on potentially improperly quoted URLs
that may contain non-ASCII data will need to do their o... | trusted_official_docs | CPython Docs | rather than ``'utf-8'``). Each produces a value of a corresponding type that contains either :class:`bytes` data (for :meth:`encode` methods) or :class:`str` data (for :meth:`decode` methods).
Applications that need to operate on potentially improperly quoted URLs
that may contain non-ASCII data will need to do their o... | rather than ``'utf-8'``). Each produces a value of a corresponding type that contains either :class:`bytes` data (for :meth:`encode` methods) or :class:`str` data (for :meth:`decode` methods).
Applications that need to operate on potentially improperly quoted URLs
that may contain non-ASCII data will need to do their o... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
eb935ec5-4493-4fee-b328-197cbb090563 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,016 | supabase-export-v2 | 998f901ab129cbaf | .. function:: parse_qs(qs, keep_blank_values=False, strict_parsing=False, encoding='utf-8', errors='replace', max_num_fields=None, separator='&')
Parse a query string given as a string argument (data of type
:mimetype:`application/x-www-form-urlencoded`). Data are returned as a
dictionary. The dictionary keys are the... | trusted_official_docs | CPython Docs | .. function:: parse_qs(qs, keep_blank_values=False, strict_parsing=False, encoding='utf-8', errors='replace', max_num_fields=None, separator='&')
Parse a query string given as a string argument (data of type
:mimetype:`application/x-www-form-urlencoded`). Data are returned as a
dictionary. The dictionary keys are the... | .. function:: parse_qs(qs, keep_blank_values=False, strict_parsing=False, encoding='utf-8', errors='replace', max_num_fields=None, separator='&')
Parse a query string given as a string argument (data of type
:mimetype:`application/x-www-form-urlencoded`). Data are returned as a
dictionary. The dictionary keys are the... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f01c8341-f39f-422f-9f4e-c793d4a9c3be | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,159 | supabase-export-v2 | f3ecc624161b39f4 | :rfc:`2396` - Uniform Resource Identifiers (URI): Generic Syntax Document describing the generic syntactic requirements for both Uniform Resource Names (URNs) and Uniform Resource Locators (URLs).
:rfc:`2368` - The mailto URL scheme. Parsing requirements for mailto URL schemes. | trusted_official_docs | CPython Docs | :rfc:`2396` - Uniform Resource Identifiers (URI): Generic Syntax Document describing the generic syntactic requirements for both Uniform Resource Names (URNs) and Uniform Resource Locators (URLs).
:rfc:`2368` - The mailto URL scheme. Parsing requirements for mailto URL schemes. | :rfc:`2396` - Uniform Resource Identifiers (URI): Generic Syntax Document describing the generic syntactic requirements for both Uniform Resource Names (URNs) and Uniform Resource Locators (URLs).
:rfc:`2368` - The mailto URL scheme. Parsing requirements for mailto URL schemes. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f7512c68-b474-4ab1-950b-b8d0adedebef | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,158 | supabase-export-v2 | 624bf219536bf981 | :rfc:`2732` - Format for Literal IPv6 Addresses in URL's. This specifies the parsing requirements of IPv6 URLs.
:rfc:`2396` - Uniform Resource Identifiers (URI): Generic Syntax
Document describing the generic syntactic requirements for both Uniform Resource
Names (URNs) and Uniform Resource Locators (URLs). | trusted_official_docs | CPython Docs | :rfc:`2732` - Format for Literal IPv6 Addresses in URL's. This specifies the parsing requirements of IPv6 URLs.
:rfc:`2396` - Uniform Resource Identifiers (URI): Generic Syntax
Document describing the generic syntactic requirements for both Uniform Resource
Names (URNs) and Uniform Resource Locators (URLs). | :rfc:`2732` - Format for Literal IPv6 Addresses in URL's. This specifies the parsing requirements of IPv6 URLs.
:rfc:`2396` - Uniform Resource Identifiers (URI): Generic Syntax
Document describing the generic syntactic requirements for both Uniform Resource
Names (URNs) and Uniform Resource Locators (URLs). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fbd354c1-c35e-48ad-b400-efbfcc7ec2e7 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,073 | supabase-export-v2 | a9ae9d0b052cffc1 | .. function:: unwrap(url)
Extract the url from a wrapped URL (that is, a string formatted as
``<URL:scheme://host/path>``, ``<scheme://host/path>``, ``URL:scheme://host/path``
or ``scheme://host/path``). If *url* is not a wrapped URL, it is returned
without changes. | trusted_official_docs | CPython Docs | .. function:: unwrap(url)
Extract the url from a wrapped URL (that is, a string formatted as
``<URL:scheme://host/path>``, ``<scheme://host/path>``, ``URL:scheme://host/path``
or ``scheme://host/path``). If *url* is not a wrapped URL, it is returned
without changes. | .. function:: unwrap(url)
Extract the url from a wrapped URL (that is, a string formatted as
``<URL:scheme://host/path>``, ``<scheme://host/path>``, ``URL:scheme://host/path``
or ``scheme://host/path``). If *url* is not a wrapped URL, it is returned
without changes. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fce6e5c3-5bd1-47ec-9fcf-687a6bdea0a3 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,040 | supabase-export-v2 | cffa4d5533150ebc | Construct a URL from a tuple as returned by :func:`urlsplit`. The *parts* argument can be any five-item iterable.
This may result in a slightly different, but equivalent URL, if the
URL that was parsed originally had unnecessary delimiters (for example,
a ``?`` with an empty query; the RFC states that these are equiv... | trusted_official_docs | CPython Docs | Construct a URL from a tuple as returned by :func:`urlsplit`. The *parts* argument can be any five-item iterable.
This may result in a slightly different, but equivalent URL, if the
URL that was parsed originally had unnecessary delimiters (for example,
a ``?`` with an empty query; the RFC states that these are equiv... | Construct a URL from a tuple as returned by :func:`urlsplit`. The *parts* argument can be any five-item iterable.
This may result in a slightly different, but equivalent URL, if the
URL that was parsed originally had unnecessary delimiters (for example,
a ``?`` with an empty query; the RFC states that these are equiv... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fd62e77a-444d-491f-b2fd-52e3c378ce5f | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,145 | supabase-export-v2 | 4f7e47959cae5b72 | .. function:: urlencode(query, doseq=False, safe='', encoding=None, \ errors=None, quote_via=quote_plus)
Convert a mapping object or a sequence of two-element tuples, which may
contain :class:`str` or :class:`bytes` objects, to a percent-encoded ASCII
text string. If the resultant string is to be used as a *data* for... | trusted_official_docs | CPython Docs | .. function:: urlencode(query, doseq=False, safe='', encoding=None, \ errors=None, quote_via=quote_plus)
Convert a mapping object or a sequence of two-element tuples, which may
contain :class:`str` or :class:`bytes` objects, to a percent-encoded ASCII
text string. If the resultant string is to be used as a *data* for... | .. function:: urlencode(query, doseq=False, safe='', encoding=None, \ errors=None, quote_via=quote_plus)
Convert a mapping object or a sequence of two-element tuples, which may
contain :class:`str` or :class:`bytes` objects, to a percent-encoded ASCII
text string. If the resultant string is to be used as a *data* for... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
201d361d-86ca-48bf-ab2a-19149e32f5c4 | CPython Docs | file://datasets/cpython/Doc/library/msilib.rst | unknown | 567cc9b4-c62e-471f-a1e9-c57cbd570a7f | 19,167 | supabase-export-v2 | b9edda587b8c922d | part of the Python standard library. It was :ref:`removed in Python 3.13 <whatsnew313-pep594>` after being deprecated in Python 3.11. The removal was decided in :pep:`594`.
The last version of Python that provided the :mod:`!msilib` module was
`Python 3.12 <https://docs.python.org/3.12/library/msilib.html>`_. | trusted_official_docs | CPython Docs | part of the Python standard library. It was :ref:`removed in Python 3.13 <whatsnew313-pep594>` after being deprecated in Python 3.11. The removal was decided in :pep:`594`.
The last version of Python that provided the :mod:`!msilib` module was
`Python 3.12 <https://docs.python.org/3.12/library/msilib.html>`_. | part of the Python standard library. It was :ref:`removed in Python 3.13 <whatsnew313-pep594>` after being deprecated in Python 3.11. The removal was decided in :pep:`594`.
The last version of Python that provided the :mod:`!msilib` module was
`Python 3.12 <https://docs.python.org/3.12/library/msilib.html>`_. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
78a7f639-98c8-4cbc-af1a-315d6c0ff0d8 | CPython Docs | file://datasets/cpython/Doc/library/asynchat.rst | unknown | 64f63390-3d84-4680-a055-4067c12c204e | 19,172 | supabase-export-v2 | b38df17813c2319d | part of the Python standard library. It was :ref:`removed in Python 3.12 <whatsnew312-removed>` after being deprecated in Python 3.6. The removal was decided in :pep:`594`.
Applications should use the :mod:`asyncio` module instead. | trusted_official_docs | CPython Docs | part of the Python standard library. It was :ref:`removed in Python 3.12 <whatsnew312-removed>` after being deprecated in Python 3.6. The removal was decided in :pep:`594`.
Applications should use the :mod:`asyncio` module instead. | part of the Python standard library. It was :ref:`removed in Python 3.12 <whatsnew312-removed>` after being deprecated in Python 3.6. The removal was decided in :pep:`594`.
Applications should use the :mod:`asyncio` module instead. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
73ddf918-077e-4a8e-8ae6-a04b57e3c7d5 | CPython Docs | file://datasets/cpython/Doc/library/unix.rst | unknown | b7862707-796f-4046-baa0-a20fce52a6aa | 19,175 | supabase-export-v2 | 50c2efdfd01d2aa5 | ********************** Unix-specific services **********************
The modules described in this chapter provide interfaces to features that are
unique to the Unix operating system, or in some cases to some or many variants
of it. Here's an overview: | trusted_official_docs | CPython Docs | ********************** Unix-specific services **********************
The modules described in this chapter provide interfaces to features that are
unique to the Unix operating system, or in some cases to some or many variants
of it. Here's an overview: | ********************** Unix-specific services **********************
The modules described in this chapter provide interfaces to features that are
unique to the Unix operating system, or in some cases to some or many variants
of it. Here's an overview: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0703417f-b4a9-415b-a09d-be40397330b0 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,187 | supabase-export-v2 | a72c7573d144882e | .. versionchanged:: 3.3 ASCII-only Unicode strings are now accepted by the decoding functions of the modern interface.
.. versionchanged:: 3.4
Any :term:`bytes-like objects <bytes-like object>` are now accepted by all
encoding and decoding functions in this module. Ascii85/Base85 support added. | trusted_official_docs | CPython Docs | .. versionchanged:: 3.3 ASCII-only Unicode strings are now accepted by the decoding functions of the modern interface.
.. versionchanged:: 3.4
Any :term:`bytes-like objects <bytes-like object>` are now accepted by all
encoding and decoding functions in this module. Ascii85/Base85 support added. | .. versionchanged:: 3.3 ASCII-only Unicode strings are now accepted by the decoding functions of the modern interface.
.. versionchanged:: 3.4
Any :term:`bytes-like objects <bytes-like object>` are now accepted by all
encoding and decoding functions in this module. Ascii85/Base85 support added. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
095ee7f7-6267-49ba-9fa0-dd4e56aabc3b | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,215 | supabase-export-v2 | aef2c087da63b479 | ``_`` instead of ``/`` in the standard Base64 alphabet, and return the encoded :class:`bytes`. The result can still contain ``=`` if *padded* is true (default).
.. versionchanged:: 3.15
Added the *padded* parameter. | trusted_official_docs | CPython Docs | ``_`` instead of ``/`` in the standard Base64 alphabet, and return the encoded :class:`bytes`. The result can still contain ``=`` if *padded* is true (default).
.. versionchanged:: 3.15
Added the *padded* parameter. | ``_`` instead of ``/`` in the standard Base64 alphabet, and return the encoded :class:`bytes`. The result can still contain ``=`` if *padded* is true (default).
.. versionchanged:: 3.15
Added the *padded* parameter. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0c09f4ed-6e76-4b8e-a543-d4e42cade7e9 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,277 | supabase-export-v2 | 1171b569d6b0e20f | Encode the :term:`bytes-like object` *b* using base85 (as used in e.g. git-style binary diffs) and return the encoded :class:`bytes`.
If *pad* is true, the input is padded with ``b'\0'`` so its length is a
multiple of 4 bytes before encoding. | trusted_official_docs | CPython Docs | Encode the :term:`bytes-like object` *b* using base85 (as used in e.g. git-style binary diffs) and return the encoded :class:`bytes`.
If *pad* is true, the input is padded with ``b'\0'`` so its length is a
multiple of 4 bytes before encoding. | Encode the :term:`bytes-like object` *b* using base85 (as used in e.g. git-style binary diffs) and return the encoded :class:`bytes`.
If *pad* is true, the input is padded with ``b'\0'`` so its length is a
multiple of 4 bytes before encoding. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0e8e2fdd-48db-405a-abe9-8f0ed7f634c4 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,269 | supabase-export-v2 | c854460ace434afa | Decode the Ascii85 encoded :term:`bytes-like object` or ASCII string *b* and return the decoded :class:`bytes`.
*foldspaces* is a flag that specifies whether the 'y' short sequence
should be accepted as shorthand for 4 consecutive spaces (ASCII 0x20). This feature is not supported by the "standard" Ascii85 encoding. | trusted_official_docs | CPython Docs | Decode the Ascii85 encoded :term:`bytes-like object` or ASCII string *b* and return the decoded :class:`bytes`.
*foldspaces* is a flag that specifies whether the 'y' short sequence
should be accepted as shorthand for 4 consecutive spaces (ASCII 0x20). This feature is not supported by the "standard" Ascii85 encoding. | Decode the Ascii85 encoded :term:`bytes-like object` or ASCII string *b* and return the decoded :class:`bytes`.
*foldspaces* is a flag that specifies whether the 'y' short sequence
should be accepted as shorthand for 4 consecutive spaces (ASCII 0x20). This feature is not supported by the "standard" Ascii85 encoding. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
128938ab-7ae3-4c72-8cb5-ffe1d2aaa212 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,232 | supabase-export-v2 | 2a780984d678c3ad | If *canonical* is true, non-zero padding bits are rejected. See :func:`binascii.a2b_base32` for details.
A :exc:`binascii.Error` is raised if *s* is
incorrectly padded or if there are non-alphabet characters present in the
input. | trusted_official_docs | CPython Docs | If *canonical* is true, non-zero padding bits are rejected. See :func:`binascii.a2b_base32` for details.
A :exc:`binascii.Error` is raised if *s* is
incorrectly padded or if there are non-alphabet characters present in the
input. | If *canonical* is true, non-zero padding bits are rejected. See :func:`binascii.a2b_base32` for details.
A :exc:`binascii.Error` is raised if *s* is
incorrectly padded or if there are non-alphabet characters present in the
input. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
15d27821-1511-437c-940b-2efd554c1748 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,204 | supabase-export-v2 | a7be95c660dbafdb | padding check, but the ``+`` and ``/`` characters keep their meaning if they are not in *altchars* (they will be discarded in future Python versions).
If *validate* is true, these non-alphabet characters in the input
result in a :exc:`binascii.Error`. | trusted_official_docs | CPython Docs | padding check, but the ``+`` and ``/`` characters keep their meaning if they are not in *altchars* (they will be discarded in future Python versions).
If *validate* is true, these non-alphabet characters in the input
result in a :exc:`binascii.Error`. | padding check, but the ``+`` and ``/`` characters keep their meaning if they are not in *altchars* (they will be discarded in future Python versions).
If *validate* is true, these non-alphabet characters in the input
result in a :exc:`binascii.Error`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
193c616c-c16c-4ee2-867c-1f443c2b1358 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,196 | supabase-export-v2 | e0adc20f1a83ee96 | If *wrapcol* is non-zero, insert a newline (``b'\n'``) character after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not insert any newlines.
.. versionchanged:: 3.15
Added the *padded* and *wrapcol* parameters. | trusted_official_docs | CPython Docs | If *wrapcol* is non-zero, insert a newline (``b'\n'``) character after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not insert any newlines.
.. versionchanged:: 3.15
Added the *padded* and *wrapcol* parameters. | If *wrapcol* is non-zero, insert a newline (``b'\n'``) character after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not insert any newlines.
.. versionchanged:: 3.15
Added the *padded* and *wrapcol* parameters. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1a667459-a420-421c-a5aa-d2e43a90570f | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,310 | supabase-export-v2 | ead999b3c77bc762 | .. function:: encodebytes(s)
Encode the :term:`bytes-like object` *s*, which can contain arbitrary binary
data, and return :class:`bytes` containing the base64-encoded data, with newlines
(``b'\n'``) inserted after every 76 bytes of output, and ensuring that
there is a trailing newline, as per :rfc:`2045` (MIME). | trusted_official_docs | CPython Docs | .. function:: encodebytes(s)
Encode the :term:`bytes-like object` *s*, which can contain arbitrary binary
data, and return :class:`bytes` containing the base64-encoded data, with newlines
(``b'\n'``) inserted after every 76 bytes of output, and ensuring that
there is a trailing newline, as per :rfc:`2045` (MIME). | .. function:: encodebytes(s)
Encode the :term:`bytes-like object` *s*, which can contain arbitrary binary
data, and return :class:`bytes` containing the base64-encoded data, with newlines
(``b'\n'``) inserted after every 76 bytes of output, and ensuring that
there is a trailing newline, as per :rfc:`2045` (MIME). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
253caacb-354b-48e9-a7cf-05dd4c5fbae4 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,227 | supabase-export-v2 | 7c70413768b0b02c | Decode the Base32 encoded :term:`bytes-like object` or ASCII string *s* and return the decoded :class:`bytes`.
Optional *casefold* is a flag specifying
whether a lowercase alphabet is acceptable as input. For security purposes,
the default is ``False``. | trusted_official_docs | CPython Docs | Decode the Base32 encoded :term:`bytes-like object` or ASCII string *s* and return the decoded :class:`bytes`.
Optional *casefold* is a flag specifying
whether a lowercase alphabet is acceptable as input. For security purposes,
the default is ``False``. | Decode the Base32 encoded :term:`bytes-like object` or ASCII string *s* and return the decoded :class:`bytes`.
Optional *casefold* is a flag specifying
whether a lowercase alphabet is acceptable as input. For security purposes,
the default is ``False``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2740a4d8-74c2-42d2-96fd-4389aabedd8e | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,258 | supabase-export-v2 | 8888c7f5263a2431 | The two functions present in this module differ in how they handle the following:
* Whether to include enclosing ``<~`` and ``~>`` markers
* Whether to include newline characters
* The set of ASCII characters used for encoding
* Handling of null bytes | trusted_official_docs | CPython Docs | The two functions present in this module differ in how they handle the following:
* Whether to include enclosing ``<~`` and ``~>`` markers
* Whether to include newline characters
* The set of ASCII characters used for encoding
* Handling of null bytes | The two functions present in this module differ in how they handle the following:
* Whether to include enclosing ``<~`` and ``~>`` markers
* Whether to include newline characters
* The set of ASCII characters used for encoding
* Handling of null bytes | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2bc61b06-7300-4e5e-906d-60794c33d95d | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,262 | supabase-export-v2 | 6033ec298b6e7cfc | Encode the :term:`bytes-like object` *b* using Ascii85 and return the encoded :class:`bytes`.
*foldspaces* is an optional flag that uses the special short sequence 'y'
instead of 4 consecutive spaces (ASCII 0x20) as supported by 'btoa'. This
feature is not supported by the "standard" Ascii85 encoding. | trusted_official_docs | CPython Docs | Encode the :term:`bytes-like object` *b* using Ascii85 and return the encoded :class:`bytes`.
*foldspaces* is an optional flag that uses the special short sequence 'y'
instead of 4 consecutive spaces (ASCII 0x20) as supported by 'btoa'. This
feature is not supported by the "standard" Ascii85 encoding. | Encode the :term:`bytes-like object` *b* using Ascii85 and return the encoded :class:`bytes`.
*foldspaces* is an optional flag that uses the special short sequence 'y'
instead of 4 consecutive spaces (ASCII 0x20) as supported by 'btoa'. This
feature is not supported by the "standard" Ascii85 encoding. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3220f1f0-40a0-4c73-acae-c6b0d21f3ca9 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,200 | supabase-export-v2 | 073816e5cba25090 | *altchars* must be a :term:`bytes-like object` or ASCII string of length 2 which specifies the alternative alphabet used instead of the ``+`` and ``/`` characters.
If *padded* is true, the last group of 4 base 64 alphabet characters must
be padded with the '=' character. If *padded* is false, padding is neither requir... | trusted_official_docs | CPython Docs | *altchars* must be a :term:`bytes-like object` or ASCII string of length 2 which specifies the alternative alphabet used instead of the ``+`` and ``/`` characters.
If *padded* is true, the last group of 4 base 64 alphabet characters must
be padded with the '=' character. If *padded* is false, padding is neither requir... | *altchars* must be a :term:`bytes-like object` or ASCII string of length 2 which specifies the alternative alphabet used instead of the ``+`` and ``/`` characters.
If *padded* is true, the last group of 4 base 64 alphabet characters must
be padded with the '=' character. If *padded* is false, padding is neither requir... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
337f4043-62f2-42e8-91a1-e67cdee4e3ca | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,203 | supabase-export-v2 | 992148e8289eea21 | of the encoded data and the excess pad characters will be ignored. The default value of *validate* is ``True`` if *ignorechars* is specified, ``False`` otherwise.
If *validate* is false, characters that are neither
in the normal base-64 alphabet nor (if *ignorechars* is not specified)
the alternative alphabet are
di... | trusted_official_docs | CPython Docs | of the encoded data and the excess pad characters will be ignored. The default value of *validate* is ``True`` if *ignorechars* is specified, ``False`` otherwise.
If *validate* is false, characters that are neither
in the normal base-64 alphabet nor (if *ignorechars* is not specified)
the alternative alphabet are
di... | of the encoded data and the excess pad characters will be ignored. The default value of *validate* is ``True`` if *ignorechars* is specified, ``False`` otherwise.
If *validate* is false, characters that are neither
in the normal base-64 alphabet nor (if *ignorechars* is not specified)
the alternative alphabet are
di... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
40318b1b-c687-42ed-bbb7-e3b613c83dab | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,183 | supabase-export-v2 | 4647edcc5e6971f6 | --------------
This module provides functions for encoding binary data to printable
ASCII characters and decoding such encodings back to binary data. This includes the :ref:`encodings specified in <base64-rfc-4648>`
:rfc:`4648` (Base64, Base32 and Base16)
and the non-standard :ref:`Base85 encodings <base64-base-85>`. | trusted_official_docs | CPython Docs | --------------
This module provides functions for encoding binary data to printable
ASCII characters and decoding such encodings back to binary data. This includes the :ref:`encodings specified in <base64-rfc-4648>`
:rfc:`4648` (Base64, Base32 and Base16)
and the non-standard :ref:`Base85 encodings <base64-base-85>`. | --------------
This module provides functions for encoding binary data to printable
ASCII characters and decoding such encodings back to binary data. This includes the :ref:`encodings specified in <base64-rfc-4648>`
:rfc:`4648` (Base64, Base32 and Base16)
and the non-standard :ref:`Base85 encodings <base64-base-85>`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
45e48638-011e-4e61-8524-fa0566549d3c | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,246 | supabase-export-v2 | ffc79946f09e356b | If *wrapcol* is non-zero, insert a newline (``b'\n'``) character after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not add any newlines.
.. versionchanged:: 3.15
Added the *wrapcol* parameter. | trusted_official_docs | CPython Docs | If *wrapcol* is non-zero, insert a newline (``b'\n'``) character after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not add any newlines.
.. versionchanged:: 3.15
Added the *wrapcol* parameter. | If *wrapcol* is non-zero, insert a newline (``b'\n'``) character after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not add any newlines.
.. versionchanged:: 3.15
Added the *wrapcol* parameter. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
47909b4c-7a76-4845-882f-85b866a731f7 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,250 | supabase-export-v2 | 3e082e792dc1d0bf | Optional *casefold* is a flag specifying whether a lowercase alphabet is acceptable as input. For security purposes, the default is ``False``.
*ignorechars* should be a :term:`bytes-like object` containing characters
to ignore from the input. | trusted_official_docs | CPython Docs | Optional *casefold* is a flag specifying whether a lowercase alphabet is acceptable as input. For security purposes, the default is ``False``.
*ignorechars* should be a :term:`bytes-like object` containing characters
to ignore from the input. | Optional *casefold* is a flag specifying whether a lowercase alphabet is acceptable as input. For security purposes, the default is ``False``.
*ignorechars* should be a :term:`bytes-like object` containing characters
to ignore from the input. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
493015ae-e1a4-4e1a-af68-8bd1d9b2d466 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,222 | supabase-export-v2 | 877eb78264e60bb6 | Encode the :term:`bytes-like object` *s* using Base32 and return the encoded :class:`bytes`.
If *padded* is true (default), pad the encoded data with the '='
character to a size multiple of 8. If *padded* is false, do not add the pad characters. | trusted_official_docs | CPython Docs | Encode the :term:`bytes-like object` *s* using Base32 and return the encoded :class:`bytes`.
If *padded* is true (default), pad the encoded data with the '='
character to a size multiple of 8. If *padded* is false, do not add the pad characters. | Encode the :term:`bytes-like object` *s* using Base32 and return the encoded :class:`bytes`.
If *padded* is true (default), pad the encoded data with the '='
character to a size multiple of 8. If *padded* is false, do not add the pad characters. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4fc88099-9ae9-45c1-9180-83d5aaea17fb | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,249 | supabase-export-v2 | 397c5dfc453e99b2 | Decode the Base16 encoded :term:`bytes-like object` or ASCII string *s* and return the decoded :class:`bytes`.
Optional *casefold* is a flag specifying whether a
lowercase alphabet is acceptable as input. For security purposes, the default
is ``False``. | trusted_official_docs | CPython Docs | Decode the Base16 encoded :term:`bytes-like object` or ASCII string *s* and return the decoded :class:`bytes`.
Optional *casefold* is a flag specifying whether a
lowercase alphabet is acceptable as input. For security purposes, the default
is ``False``. | Decode the Base16 encoded :term:`bytes-like object` or ASCII string *s* and return the decoded :class:`bytes`.
Optional *casefold* is a flag specifying whether a
lowercase alphabet is acceptable as input. For security purposes, the default
is ``False``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5248b811-c39a-48d8-a95d-9b0385e1791d | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,240 | supabase-export-v2 | 15356269abfbd5f4 | Similar to :func:`b32decode` but uses the Extended Hex Alphabet, as defined in :rfc:`4648`.
This version does not allow the digit 0 (zero) to the letter O (oh) and digit
1 (one) to either the letter I (eye) or letter L (el) mappings, all these
characters are included in the Extended Hex Alphabet and are not
intercha... | trusted_official_docs | CPython Docs | Similar to :func:`b32decode` but uses the Extended Hex Alphabet, as defined in :rfc:`4648`.
This version does not allow the digit 0 (zero) to the letter O (oh) and digit
1 (one) to either the letter I (eye) or letter L (el) mappings, all these
characters are included in the Extended Hex Alphabet and are not
intercha... | Similar to :func:`b32decode` but uses the Extended Hex Alphabet, as defined in :rfc:`4648`.
This version does not allow the digit 0 (zero) to the letter O (oh) and digit
1 (one) to either the letter I (eye) or letter L (el) mappings, all these
characters are included in the Extended Hex Alphabet and are not
intercha... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5be2ffd3-c61c-4dda-93c4-f45bca10f7da | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,271 | supabase-export-v2 | 5092b8b7a78cc4ba | *adobe* controls whether the input sequence is in Adobe Ascii85 format (i.e. is framed with <~ and ~>).
*ignorechars* should be a :term:`bytes-like object` containing characters
to ignore from the input. This should only contain whitespace characters, and by
default contains all whitespace characters in ASCII. | trusted_official_docs | CPython Docs | *adobe* controls whether the input sequence is in Adobe Ascii85 format (i.e. is framed with <~ and ~>).
*ignorechars* should be a :term:`bytes-like object` containing characters
to ignore from the input. This should only contain whitespace characters, and by
default contains all whitespace characters in ASCII. | *adobe* controls whether the input sequence is in Adobe Ascii85 format (i.e. is framed with <~ and ~>).
*ignorechars* should be a :term:`bytes-like object` containing characters
to ignore from the input. This should only contain whitespace characters, and by
default contains all whitespace characters in ASCII. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5c94d986-ba50-4fc0-9b0b-64443903e4c4 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,259 | supabase-export-v2 | 8c96c698c8f11d01 | enclosing ``<~`` and ``~>`` markers * Whether to include newline characters * The set of ASCII characters used for encoding * Handling of null bytes
Refer to the documentation of the individual functions for more information. | trusted_official_docs | CPython Docs | enclosing ``<~`` and ``~>`` markers * Whether to include newline characters * The set of ASCII characters used for encoding * Handling of null bytes
Refer to the documentation of the individual functions for more information. | enclosing ``<~`` and ``~>`` markers * Whether to include newline characters * The set of ASCII characters used for encoding * Handling of null bytes
Refer to the documentation of the individual functions for more information. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
61b17d2e-e6ea-44af-99f1-04981b933669 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,186 | supabase-export-v2 | 1e41d77449c168f5 | 76 characters as per :rfc:`2045`. Note that if you are looking for :rfc:`2045` support you probably want to be looking at the :mod:`email` package instead.
.. versionchanged:: 3.3
ASCII-only Unicode strings are now accepted by the decoding functions of
the modern interface. | trusted_official_docs | CPython Docs | 76 characters as per :rfc:`2045`. Note that if you are looking for :rfc:`2045` support you probably want to be looking at the :mod:`email` package instead.
.. versionchanged:: 3.3
ASCII-only Unicode strings are now accepted by the decoding functions of
the modern interface. | 76 characters as per :rfc:`2045`. Note that if you are looking for :rfc:`2045` support you probably want to be looking at the :mod:`email` package instead.
.. versionchanged:: 3.3
ASCII-only Unicode strings are now accepted by the decoding functions of
the modern interface. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6518e2fd-c2e0-4a4e-bd3d-ce1de9e406ee | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,303 | supabase-export-v2 | 4854a0c17d740c50 | .. function:: decode(input, output)
Decode the contents of the binary *input* file and write the resulting binary
data to the *output* file. *input* and *output* must be :term:`file objects
<file object>`. *input* will be read until ``input.readline()`` returns an
empty bytes object. | trusted_official_docs | CPython Docs | .. function:: decode(input, output)
Decode the contents of the binary *input* file and write the resulting binary
data to the *output* file. *input* and *output* must be :term:`file objects
<file object>`. *input* will be read until ``input.readline()`` returns an
empty bytes object. | .. function:: decode(input, output)
Decode the contents of the binary *input* file and write the resulting binary
data to the *output* file. *input* and *output* must be :term:`file objects
<file object>`. *input* will be read until ``input.readline()`` returns an
empty bytes object. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
665a710f-42bb-4301-aa01-fce3a7bc9933 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,256 | supabase-export-v2 | 605d990044f3da91 | Base85 encoding is not formally specified but rather a de facto standard, thus different systems perform the encoding differently.
The :func:`a85encode` and :func:`b85encode` functions in this module are two implementations of
the de facto standard. You should call the function with the Base85
implementation used by th... | trusted_official_docs | CPython Docs | Base85 encoding is not formally specified but rather a de facto standard, thus different systems perform the encoding differently.
The :func:`a85encode` and :func:`b85encode` functions in this module are two implementations of
the de facto standard. You should call the function with the Base85
implementation used by th... | Base85 encoding is not formally specified but rather a de facto standard, thus different systems perform the encoding differently.
The :func:`a85encode` and :func:`b85encode` functions in this module are two implementations of
the de facto standard. You should call the function with the Base85
implementation used by th... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6862bed6-1071-4a31-81f0-65cfe27662e8 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,194 | supabase-export-v2 | 666699ea4557ee76 | This allows an application to e.g. generate URL or filesystem safe Base64 strings. The default is ``None``, for which the standard Base64 alphabet is used.
If *padded* is true (default), pad the encoded data with the '='
character to a size multiple of 4. If *padded* is false, do not add the pad characters. | trusted_official_docs | CPython Docs | This allows an application to e.g. generate URL or filesystem safe Base64 strings. The default is ``None``, for which the standard Base64 alphabet is used.
If *padded* is true (default), pad the encoded data with the '='
character to a size multiple of 4. If *padded* is false, do not add the pad characters. | This allows an application to e.g. generate URL or filesystem safe Base64 strings. The default is ``None``, for which the standard Base64 alphabet is used.
If *padded* is true (default), pad the encoded data with the '='
character to a size multiple of 4. If *padded* is false, do not add the pad characters. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6b03c893-2787-43ca-8e92-6870e0b51578 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,193 | supabase-export-v2 | 693e2ad124ddb477 | Encode the :term:`bytes-like object` *s* using Base64 and return the encoded :class:`bytes`.
Optional *altchars* must be a :term:`bytes-like object` of length 2 which
specifies an alternative alphabet for the ``+`` and ``/`` characters. This allows an application to e.g. generate URL or filesystem safe Base64
strings... | trusted_official_docs | CPython Docs | Encode the :term:`bytes-like object` *s* using Base64 and return the encoded :class:`bytes`.
Optional *altchars* must be a :term:`bytes-like object` of length 2 which
specifies an alternative alphabet for the ``+`` and ``/`` characters. This allows an application to e.g. generate URL or filesystem safe Base64
strings... | Encode the :term:`bytes-like object` *s* using Base64 and return the encoded :class:`bytes`.
Optional *altchars* must be a :term:`bytes-like object` of length 2 which
specifies an alternative alphabet for the ``+`` and ``/`` characters. This allows an application to e.g. generate URL or filesystem safe Base64
strings... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6c35381a-b26b-4299-a91c-6e429364a4f6 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,198 | supabase-export-v2 | 5bb92f6b85518b93 | .. function:: b64decode(s, altchars=None, validate=False, *, padded=True, canonical=False) b64decode(s, altchars=None, validate=True, *, ignorechars, padded=True, canonical=False)
Decode the Base64 encoded :term:`bytes-like object` or ASCII string
*s* and return the decoded :class:`bytes`. | trusted_official_docs | CPython Docs | .. function:: b64decode(s, altchars=None, validate=False, *, padded=True, canonical=False) b64decode(s, altchars=None, validate=True, *, ignorechars, padded=True, canonical=False)
Decode the Base64 encoded :term:`bytes-like object` or ASCII string
*s* and return the decoded :class:`bytes`. | .. function:: b64decode(s, altchars=None, validate=False, *, padded=True, canonical=False) b64decode(s, altchars=None, validate=True, *, ignorechars, padded=True, canonical=False)
Decode the Base64 encoded :term:`bytes-like object` or ASCII string
*s* and return the decoded :class:`bytes`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
72fc668b-7d28-43a2-8a4c-1fbfdbb886c6 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,283 | supabase-export-v2 | 4f3f6b25cd475544 | Decode the base85-encoded :term:`bytes-like object` or ASCII string *b* and return the decoded :class:`bytes`. Padding is implicitly removed, if necessary.
*ignorechars* should be a :term:`bytes-like object` containing characters
to ignore from the input. | trusted_official_docs | CPython Docs | Decode the base85-encoded :term:`bytes-like object` or ASCII string *b* and return the decoded :class:`bytes`. Padding is implicitly removed, if necessary.
*ignorechars* should be a :term:`bytes-like object` containing characters
to ignore from the input. | Decode the base85-encoded :term:`bytes-like object` or ASCII string *b* and return the decoded :class:`bytes`. Padding is implicitly removed, if necessary.
*ignorechars* should be a :term:`bytes-like object` containing characters
to ignore from the input. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
736141c2-fed3-43a8-bd83-560407b0b873 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,308 | supabase-export-v2 | 6fdaed0793fb6969 | .. function:: encode(input, output)
Encode the contents of the binary *input* file and write the resulting base64
encoded data to the *output* file. *input* and *output* must be :term:`file
objects <file object>`. *input* will be read until ``input.read()`` returns
an empty bytes object. :func:`encode` inserts a new... | trusted_official_docs | CPython Docs | .. function:: encode(input, output)
Encode the contents of the binary *input* file and write the resulting base64
encoded data to the *output* file. *input* and *output* must be :term:`file
objects <file object>`. *input* will be read until ``input.read()`` returns
an empty bytes object. :func:`encode` inserts a new... | .. function:: encode(input, output)
Encode the contents of the binary *input* file and write the resulting base64
encoded data to the *output* file. *input* and *output* must be :term:`file
objects <file object>`. *input* will be read until ``input.read()`` returns
an empty bytes object. :func:`encode` inserts a new... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7d02356b-ebc7-4666-acb7-016af065e130 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,251 | supabase-export-v2 | 7264addaf7139e96 | *ignorechars* should be a :term:`bytes-like object` containing characters to ignore from the input.
A :exc:`binascii.Error` is raised if *s* is
incorrectly padded or if there are non-alphabet characters present in the
input. | trusted_official_docs | CPython Docs | *ignorechars* should be a :term:`bytes-like object` containing characters to ignore from the input.
A :exc:`binascii.Error` is raised if *s* is
incorrectly padded or if there are non-alphabet characters present in the
input. | *ignorechars* should be a :term:`bytes-like object` containing characters to ignore from the input.
A :exc:`binascii.Error` is raised if *s* is
incorrectly padded or if there are non-alphabet characters present in the
input. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7ef2d0f1-a444-4e45-a56b-6f9db05e0da9 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,229 | supabase-export-v2 | 84f0eb9972b71e82 | is always mapped to the letter O). For security purposes the default is ``None``, so that 0 and 1 are not allowed in the input.
If *padded* is true, the last group of 8 base 32 alphabet characters must
be padded with the '=' character. If *padded* is false, padding is neither required nor recognized:
the '=' characte... | trusted_official_docs | CPython Docs | is always mapped to the letter O). For security purposes the default is ``None``, so that 0 and 1 are not allowed in the input.
If *padded* is true, the last group of 8 base 32 alphabet characters must
be padded with the '=' character. If *padded* is false, padding is neither required nor recognized:
the '=' characte... | is always mapped to the letter O). For security purposes the default is ``None``, so that 0 and 1 are not allowed in the input.
If *padded* is true, the last group of 8 base 32 alphabet characters must
be padded with the '=' character. If *padded* is false, padding is neither required nor recognized:
the '=' characte... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
80217063-2875-4962-b864-261d340e276d | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,230 | supabase-export-v2 | 848530eb1ec6a396 | the '=' character is not treated as padding but as a non-alphabet character, which means it raises an :exc:`~binascii.Error` unless b'=' is included in *ignorechars*.
*ignorechars* should be a :term:`bytes-like object` containing characters
to ignore from the input. | trusted_official_docs | CPython Docs | the '=' character is not treated as padding but as a non-alphabet character, which means it raises an :exc:`~binascii.Error` unless b'=' is included in *ignorechars*.
*ignorechars* should be a :term:`bytes-like object` containing characters
to ignore from the input. | the '=' character is not treated as padding but as a non-alphabet character, which means it raises an :exc:`~binascii.Error` unless b'=' is included in *ignorechars*.
*ignorechars* should be a :term:`bytes-like object` containing characters
to ignore from the input. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9243dc89-b23b-4e4e-a8da-9dea7fa684a4 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,190 | supabase-export-v2 | 0c46f53cd2c468c8 | RFC 4648 Encodings ------------------
The :rfc:`4648` encodings are suitable for encoding binary data so that it can be
safely sent by email, used as parts of URLs, or included as part of an HTTP
POST request. | trusted_official_docs | CPython Docs | RFC 4648 Encodings ------------------
The :rfc:`4648` encodings are suitable for encoding binary data so that it can be
safely sent by email, used as parts of URLs, or included as part of an HTTP
POST request. | RFC 4648 Encodings ------------------
The :rfc:`4648` encodings are suitable for encoding binary data so that it can be
safely sent by email, used as parts of URLs, or included as part of an HTTP
POST request. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9c6c52fc-afb7-47fa-8bac-e11e5fc25019 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,289 | supabase-export-v2 | cb854f1ce4639e3f | Encode the :term:`bytes-like object` *s* using Z85 (as used in ZeroMQ) and return the encoded :class:`bytes`. See `Z85 specification <https://rfc.zeromq.org/spec/32/>`_ for more information.
If *pad* is true, the input is padded with ``b'\0'`` so its length is a
multiple of 4 bytes before encoding. | trusted_official_docs | CPython Docs | Encode the :term:`bytes-like object` *s* using Z85 (as used in ZeroMQ) and return the encoded :class:`bytes`. See `Z85 specification <https://rfc.zeromq.org/spec/32/>`_ for more information.
If *pad* is true, the input is padded with ``b'\0'`` so its length is a
multiple of 4 bytes before encoding. | Encode the :term:`bytes-like object` *s* using Z85 (as used in ZeroMQ) and return the encoded :class:`bytes`. See `Z85 specification <https://rfc.zeromq.org/spec/32/>`_ for more information.
If *pad* is true, the input is padded with ``b'\0'`` so its length is a
multiple of 4 bytes before encoding. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9dc8d60a-882c-41ba-bcc1-89680d91f4e6 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,202 | supabase-export-v2 | 72d2595c1d5dcfab | A :exc:`binascii.Error` exception is raised if *s* is incorrectly padded.
If *ignorechars* is specified, it should be a :term:`bytes-like object`
containing characters to ignore from the input when *validate* is true. If *ignorechars* contains the pad character ``'='``, the pad characters
presented before the end of ... | trusted_official_docs | CPython Docs | A :exc:`binascii.Error` exception is raised if *s* is incorrectly padded.
If *ignorechars* is specified, it should be a :term:`bytes-like object`
containing characters to ignore from the input when *validate* is true. If *ignorechars* contains the pad character ``'='``, the pad characters
presented before the end of ... | A :exc:`binascii.Error` exception is raised if *s* is incorrectly padded.
If *ignorechars* is specified, it should be a :term:`bytes-like object`
containing characters to ignore from the input when *validate* is true. If *ignorechars* contains the pad character ``'='``, the pad characters
presented before the end of ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9dd73c96-662b-42d8-ba69-1ed77066c869 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,257 | supabase-export-v2 | 6ca4668e6b358bdb | two implementations of the de facto standard. You should call the function with the Base85 implementation used by the software you intend to work with.
The two functions present in this module differ in how they handle the following: | trusted_official_docs | CPython Docs | two implementations of the de facto standard. You should call the function with the Base85 implementation used by the software you intend to work with.
The two functions present in this module differ in how they handle the following: | two implementations of the de facto standard. You should call the function with the Base85 implementation used by the software you intend to work with.
The two functions present in this module differ in how they handle the following: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a1f88da6-4a20-493f-8193-f872a232528f | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,228 | supabase-export-v2 | 7cf2f07507a50fc8 | Optional *casefold* is a flag specifying whether a lowercase alphabet is acceptable as input. For security purposes, the default is ``False``.
:rfc:`4648` allows for optional mapping of the digit 0 (zero) to the letter O
(oh), and for optional mapping of the digit 1 (one) to either the letter I (eye)
or letter L (el)... | trusted_official_docs | CPython Docs | Optional *casefold* is a flag specifying whether a lowercase alphabet is acceptable as input. For security purposes, the default is ``False``.
:rfc:`4648` allows for optional mapping of the digit 0 (zero) to the letter O
(oh), and for optional mapping of the digit 1 (one) to either the letter I (eye)
or letter L (el)... | Optional *casefold* is a flag specifying whether a lowercase alphabet is acceptable as input. For security purposes, the default is ``False``.
:rfc:`4648` allows for optional mapping of the digit 0 (zero) to the letter O
(oh), and for optional mapping of the digit 1 (one) to either the letter I (eye)
or letter L (el)... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a8980bc5-529b-4c37-9809-38b44b66a9f0 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,199 | supabase-export-v2 | bb231c129a72ce31 | Decode the Base64 encoded :term:`bytes-like object` or ASCII string *s* and return the decoded :class:`bytes`.
Optional *altchars* must be a :term:`bytes-like object` or ASCII string
of length 2 which specifies the alternative alphabet used instead of the
``+`` and ``/`` characters. | trusted_official_docs | CPython Docs | Decode the Base64 encoded :term:`bytes-like object` or ASCII string *s* and return the decoded :class:`bytes`.
Optional *altchars* must be a :term:`bytes-like object` or ASCII string
of length 2 which specifies the alternative alphabet used instead of the
``+`` and ``/`` characters. | Decode the Base64 encoded :term:`bytes-like object` or ASCII string *s* and return the decoded :class:`bytes`.
Optional *altchars* must be a :term:`bytes-like object` or ASCII string
of length 2 which specifies the alternative alphabet used instead of the
``+`` and ``/`` characters. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a89e2531-3dbe-41bf-8b8a-43c7bf8089e0 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,218 | supabase-export-v2 | 96235d160834e128 | URL- and filesystem-safe alphabet, which substitutes ``-`` instead of ``+`` and ``_`` instead of ``/`` in the standard Base64 alphabet, and return the decoded :class:`bytes`.
.. versionchanged:: 3.15
Added the *padded* parameter. Padding of input is no longer required by default. | trusted_official_docs | CPython Docs | URL- and filesystem-safe alphabet, which substitutes ``-`` instead of ``+`` and ``_`` instead of ``/`` in the standard Base64 alphabet, and return the decoded :class:`bytes`.
.. versionchanged:: 3.15
Added the *padded* parameter. Padding of input is no longer required by default. | URL- and filesystem-safe alphabet, which substitutes ``-`` instead of ``+`` and ``_`` instead of ``/`` in the standard Base64 alphabet, and return the decoded :class:`bytes`.
.. versionchanged:: 3.15
Added the *padded* parameter. Padding of input is no longer required by default. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b6fbe61c-ec0c-4d57-a8b8-d184368d9a15 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,296 | supabase-export-v2 | 918700974208dadd | Decode the Z85-encoded :term:`bytes-like object` or ASCII string *s* and return the decoded :class:`bytes`. See `Z85 specification <https://rfc.zeromq.org/spec/32/>`_ for more information.
*ignorechars* should be a :term:`bytes-like object` containing characters
to ignore from the input. | trusted_official_docs | CPython Docs | Decode the Z85-encoded :term:`bytes-like object` or ASCII string *s* and return the decoded :class:`bytes`. See `Z85 specification <https://rfc.zeromq.org/spec/32/>`_ for more information.
*ignorechars* should be a :term:`bytes-like object` containing characters
to ignore from the input. | Decode the Z85-encoded :term:`bytes-like object` or ASCII string *s* and return the decoded :class:`bytes`. See `Z85 specification <https://rfc.zeromq.org/spec/32/>`_ for more information.
*ignorechars* should be a :term:`bytes-like object` containing characters
to ignore from the input. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c45f6895-ba6f-4eff-9cd2-c1ee321ec370 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,184 | supabase-export-v2 | 6ad4ad0893f5c0d5 | decoding such encodings back to binary data. This includes the :ref:`encodings specified in <base64-rfc-4648>` :rfc:`4648` (Base64, Base32 and Base16) and the non-standard :ref:`Base85 encodings <base64-base-85>`.
There are two interfaces provided by this module. The modern interface
supports encoding :term:`bytes-like... | trusted_official_docs | CPython Docs | decoding such encodings back to binary data. This includes the :ref:`encodings specified in <base64-rfc-4648>` :rfc:`4648` (Base64, Base32 and Base16) and the non-standard :ref:`Base85 encodings <base64-base-85>`.
There are two interfaces provided by this module. The modern interface
supports encoding :term:`bytes-like... | decoding such encodings back to binary data. This includes the :ref:`encodings specified in <base64-rfc-4648>` :rfc:`4648` (Base64, Base32 and Base16) and the non-standard :ref:`Base85 encodings <base64-base-85>`.
There are two interfaces provided by this module. The modern interface
supports encoding :term:`bytes-like... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c4c84d89-f69a-4d33-a1d7-f2d5778b54e5 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,201 | supabase-export-v2 | 8e5bed463376aeab | character, which means it is silently discarded when *validate* is false, or causes an :exc:`~binascii.Error` when *validate* is true unless b'=' is included in *ignorechars*.
A :exc:`binascii.Error` exception is raised
if *s* is incorrectly padded. | trusted_official_docs | CPython Docs | character, which means it is silently discarded when *validate* is false, or causes an :exc:`~binascii.Error` when *validate* is true unless b'=' is included in *ignorechars*.
A :exc:`binascii.Error` exception is raised
if *s* is incorrectly padded. | character, which means it is silently discarded when *validate* is false, or causes an :exc:`~binascii.Error` when *validate* is true unless b'=' is included in *ignorechars*.
A :exc:`binascii.Error` exception is raised
if *s* is incorrectly padded. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cb2f7c28-25cf-4f73-9889-d7a2996621b6 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,191 | supabase-export-v2 | c4b7727460a7642f | binary data so that it can be safely sent by email, used as parts of URLs, or included as part of an HTTP POST request.
.. function:: b64encode(s, altchars=None, *, padded=True, wrapcol=0) | trusted_official_docs | CPython Docs | binary data so that it can be safely sent by email, used as parts of URLs, or included as part of an HTTP POST request.
.. function:: b64encode(s, altchars=None, *, padded=True, wrapcol=0) | binary data so that it can be safely sent by email, used as parts of URLs, or included as part of an HTTP POST request.
.. function:: b64encode(s, altchars=None, *, padded=True, wrapcol=0) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ce465917-8868-46a9-9ccd-28f838217761 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,224 | supabase-export-v2 | 18c295500935a268 | If *wrapcol* is non-zero, insert a newline (``b'\n'``) character after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not add any newlines.
.. versionchanged:: 3.15
Added the *padded* and *wrapcol* parameters. | trusted_official_docs | CPython Docs | If *wrapcol* is non-zero, insert a newline (``b'\n'``) character after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not add any newlines.
.. versionchanged:: 3.15
Added the *padded* and *wrapcol* parameters. | If *wrapcol* is non-zero, insert a newline (``b'\n'``) character after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not add any newlines.
.. versionchanged:: 3.15
Added the *padded* and *wrapcol* parameters. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d819f309-2eb9-4b25-b8d0-761bfe73bd26 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,272 | supabase-export-v2 | 1ec3b64bf68b9cda | a :term:`bytes-like object` containing characters to ignore from the input. This should only contain whitespace characters, and by default contains all whitespace characters in ASCII.
If *canonical* is true, non-canonical encodings are rejected. See :func:`binascii.a2b_ascii85` for details. | trusted_official_docs | CPython Docs | a :term:`bytes-like object` containing characters to ignore from the input. This should only contain whitespace characters, and by default contains all whitespace characters in ASCII.
If *canonical* is true, non-canonical encodings are rejected. See :func:`binascii.a2b_ascii85` for details. | a :term:`bytes-like object` containing characters to ignore from the input. This should only contain whitespace characters, and by default contains all whitespace characters in ASCII.
If *canonical* is true, non-canonical encodings are rejected. See :func:`binascii.a2b_ascii85` for details. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
de665294-73ac-4242-bad4-ec93c734b85b | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,223 | supabase-export-v2 | c0edd3bc68fc870e | (default), pad the encoded data with the '=' character to a size multiple of 8. If *padded* is false, do not add the pad characters.
If *wrapcol* is non-zero, insert a newline (``b'\n'``) character
after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not add any newlines. | trusted_official_docs | CPython Docs | (default), pad the encoded data with the '=' character to a size multiple of 8. If *padded* is false, do not add the pad characters.
If *wrapcol* is non-zero, insert a newline (``b'\n'``) character
after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not add any newlines. | (default), pad the encoded data with the '=' character to a size multiple of 8. If *padded* is false, do not add the pad characters.
If *wrapcol* is non-zero, insert a newline (``b'\n'``) character
after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not add any newlines. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e84bf060-b061-4ae1-98e6-fcebd0c9ab05 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,185 | supabase-export-v2 | 83abfaeb1f24aa61 | and decoding :term:`bytes-like objects <bytes-like object>` or strings containing ASCII to :class:`bytes`. Both base-64 alphabets defined in :rfc:`4648` (normal, and URL- and filesystem-safe) are supported.
The :ref:`legacy interface <base64-legacy>` does not support decoding from strings, but it does
provide functions... | trusted_official_docs | CPython Docs | and decoding :term:`bytes-like objects <bytes-like object>` or strings containing ASCII to :class:`bytes`. Both base-64 alphabets defined in :rfc:`4648` (normal, and URL- and filesystem-safe) are supported.
The :ref:`legacy interface <base64-legacy>` does not support decoding from strings, but it does
provide functions... | and decoding :term:`bytes-like objects <bytes-like object>` or strings containing ASCII to :class:`bytes`. Both base-64 alphabets defined in :rfc:`4648` (normal, and URL- and filesystem-safe) are supported.
The :ref:`legacy interface <base64-legacy>` does not support decoding from strings, but it does
provide functions... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ec359131-9d59-48e7-8b37-a467ac9eb46e | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,278 | supabase-export-v2 | 3611a27c799d2d31 | If *pad* is true, the input is padded with ``b'\0'`` so its length is a multiple of 4 bytes before encoding.
If *wrapcol* is non-zero, insert a newline (``b'\n'``) character
after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not add any newlines. | trusted_official_docs | CPython Docs | If *pad* is true, the input is padded with ``b'\0'`` so its length is a multiple of 4 bytes before encoding.
If *wrapcol* is non-zero, insert a newline (``b'\n'``) character
after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not add any newlines. | If *pad* is true, the input is padded with ``b'\0'`` so its length is a multiple of 4 bytes before encoding.
If *wrapcol* is non-zero, insert a newline (``b'\n'``) character
after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not add any newlines. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ee4c5d55-a3c7-4857-a7ea-9f6d584221d3 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,245 | supabase-export-v2 | 7a023c06f86b46ed | Encode the :term:`bytes-like object` *s* using Base16 and return the encoded :class:`bytes`.
If *wrapcol* is non-zero, insert a newline (``b'\n'``) character
after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not add any newlines. | trusted_official_docs | CPython Docs | Encode the :term:`bytes-like object` *s* using Base16 and return the encoded :class:`bytes`.
If *wrapcol* is non-zero, insert a newline (``b'\n'``) character
after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not add any newlines. | Encode the :term:`bytes-like object` *s* using Base16 and return the encoded :class:`bytes`.
If *wrapcol* is non-zero, insert a newline (``b'\n'``) character
after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not add any newlines. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f0de1e0b-d270-4fc2-88aa-d1bb8aaee0e4 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,319 | supabase-export-v2 | 4b8aa38cb6b99112 | Module :mod:`binascii` Support module containing ASCII-to-binary and binary-to-ASCII conversions.
:rfc:`1521` - MIME (Multipurpose Internet Mail Extensions) Part One: Mechanisms for Specifying and Describing the Format of Internet Message Bodies
Section 5.2, "Base64 Content-Transfer-Encoding," provides the definition ... | trusted_official_docs | CPython Docs | Module :mod:`binascii` Support module containing ASCII-to-binary and binary-to-ASCII conversions.
:rfc:`1521` - MIME (Multipurpose Internet Mail Extensions) Part One: Mechanisms for Specifying and Describing the Format of Internet Message Bodies
Section 5.2, "Base64 Content-Transfer-Encoding," provides the definition ... | Module :mod:`binascii` Support module containing ASCII-to-binary and binary-to-ASCII conversions.
:rfc:`1521` - MIME (Multipurpose Internet Mail Extensions) Part One: Mechanisms for Specifying and Describing the Format of Internet Message Bodies
Section 5.2, "Base64 Content-Transfer-Encoding," provides the definition ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f6857789-6d41-41cb-89b9-e1f918dc2b4f | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,217 | supabase-export-v2 | 2f281e578af413db | .. function:: urlsafe_b64decode(s, *, padded=False)
Decode :term:`bytes-like object` or ASCII string *s*
using the URL- and filesystem-safe
alphabet, which substitutes ``-`` instead of ``+`` and ``_`` instead of
``/`` in the standard Base64 alphabet, and return the decoded
:class:`bytes`. | trusted_official_docs | CPython Docs | .. function:: urlsafe_b64decode(s, *, padded=False)
Decode :term:`bytes-like object` or ASCII string *s*
using the URL- and filesystem-safe
alphabet, which substitutes ``-`` instead of ``+`` and ``_`` instead of
``/`` in the standard Base64 alphabet, and return the decoded
:class:`bytes`. | .. function:: urlsafe_b64decode(s, *, padded=False)
Decode :term:`bytes-like object` or ASCII string *s*
using the URL- and filesystem-safe
alphabet, which substitutes ``-`` instead of ``+`` and ``_`` instead of
``/`` in the standard Base64 alphabet, and return the decoded
:class:`bytes`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fd42de11-3ae9-4fe9-89a9-78641dbc9ec6 | CPython Docs | file://datasets/cpython/Doc/library/base64.rst | unknown | 9f30a3c3-df38-4847-91c5-a7f5a3f59c18 | 19,214 | supabase-export-v2 | c8fac54d22cdcc3f | .. function:: urlsafe_b64encode(s, *, padded=True)
Encode :term:`bytes-like object` *s* using the
URL- and filesystem-safe alphabet, which
substitutes ``-`` instead of ``+`` and ``_`` instead of ``/`` in the
standard Base64 alphabet, and return the encoded :class:`bytes`. The result
can still contain ``=`` if *padd... | trusted_official_docs | CPython Docs | .. function:: urlsafe_b64encode(s, *, padded=True)
Encode :term:`bytes-like object` *s* using the
URL- and filesystem-safe alphabet, which
substitutes ``-`` instead of ``+`` and ``_`` instead of ``/`` in the
standard Base64 alphabet, and return the encoded :class:`bytes`. The result
can still contain ``=`` if *padd... | .. function:: urlsafe_b64encode(s, *, padded=True)
Encode :term:`bytes-like object` *s* using the
URL- and filesystem-safe alphabet, which
substitutes ``-`` instead of ``+`` and ``_`` instead of ``/`` in the
standard Base64 alphabet, and return the encoded :class:`bytes`. The result
can still contain ``=`` if *padd... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
09069a96-8cba-45b3-b060-ee2e00e84e12 | CPython Docs | file://datasets/cpython/Doc/library/random.rst | unknown | 184389ff-a8ac-467d-8c5d-8264b2e6fd8d | 19,439 | supabase-export-v2 | bbaf7666df2ded55 | Class that implements the default pseudo-random number generator used by the :mod:`!random` module.
.. versionchanged:: 3.11
Formerly the *seed* could be any hashable object. Now it is limited to:
``None``, :class:`int`, :class:`float`, :class:`str`,
:class:`bytes`, or :class:`bytearray`. | trusted_official_docs | CPython Docs | Class that implements the default pseudo-random number generator used by the :mod:`!random` module.
.. versionchanged:: 3.11
Formerly the *seed* could be any hashable object. Now it is limited to:
``None``, :class:`int`, :class:`float`, :class:`str`,
:class:`bytes`, or :class:`bytearray`. | Class that implements the default pseudo-random number generator used by the :mod:`!random` module.
.. versionchanged:: 3.11
Formerly the *seed* could be any hashable object. Now it is limited to:
``None``, :class:`int`, :class:`float`, :class:`str`,
:class:`bytes`, or :class:`bytearray`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
093d6271-4a5f-4459-a037-37d8038e17bc | CPython Docs | file://datasets/cpython/Doc/library/random.rst | unknown | 184389ff-a8ac-467d-8c5d-8264b2e6fd8d | 19,375 | supabase-export-v2 | 5622488789e891e8 | a weights sequence is supplied, it must be the same length as the *population* sequence. It is a :exc:`TypeError` to specify both *weights* and *cum_weights*.
The *weights* or *cum_weights* can use any numeric type that interoperates
with the :class:`float` values returned by :func:`random` (that includes
integers, f... | trusted_official_docs | CPython Docs | a weights sequence is supplied, it must be the same length as the *population* sequence. It is a :exc:`TypeError` to specify both *weights* and *cum_weights*.
The *weights* or *cum_weights* can use any numeric type that interoperates
with the :class:`float` values returned by :func:`random` (that includes
integers, f... | a weights sequence is supplied, it must be the same length as the *population* sequence. It is a :exc:`TypeError` to specify both *weights* and *cum_weights*.
The *weights* or *cum_weights* can use any numeric type that interoperates
with the :class:`float` values returned by :func:`random` (that includes
integers, f... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0e22b63c-ab85-4557-887f-3aea8c1e055b | CPython Docs | file://datasets/cpython/Doc/library/random.rst | unknown | 184389ff-a8ac-467d-8c5d-8264b2e6fd8d | 19,387 | supabase-export-v2 | e8c230ce234d1598 | sub-slices will also be valid random samples. This allows raffle winners (the sample) to be partitioned into grand prize and second place winners (the subslices).
Members of the population need not be :term:`hashable` or unique. If the population
contains repeats, then each occurrence is a possible selection in the sa... | trusted_official_docs | CPython Docs | sub-slices will also be valid random samples. This allows raffle winners (the sample) to be partitioned into grand prize and second place winners (the subslices).
Members of the population need not be :term:`hashable` or unique. If the population
contains repeats, then each occurrence is a possible selection in the sa... | sub-slices will also be valid random samples. This allows raffle winners (the sample) to be partitioned into grand prize and second place winners (the subslices).
Members of the population need not be :term:`hashable` or unique. If the population
contains repeats, then each occurrence is a possible selection in the sa... | python, official-docs, cpython, P0 | Local_Trusted_Corpus |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.