# sqlalchemy 2.1.9 (MIT), harvested by tools/harvest_corpus.py
=== input
Create a new :class:`_engine.URL` object.

        .. seealso::

            :ref:`database_urls`

        :param drivername: the name of the database backend. This name will
          correspond to a module in sqlalchemy/databases or a third party
          plug-in.
        :param username: The user name.
        :param password: database password.  Is typically a string, but may
          also be an object that can be stringified with ``str()``.

          .. note:: The password string should **not** be URL encoded when
             passed as an argument to :meth:`_engine.URL.create`; the string
             should contain the password characters exactly as they would be
             typed.

          .. note::  A password-producing object will be stringified only
             **once** per :class:`_engine.Engine` object.  For dynamic password
             generation per connect, see :ref:`engines_dynamic_tokens`.

        :param host: The name of the host.
        :param port: The port number.
        :param database: The database name.
        :param query: A dictionary of string keys to string values to be passed
          to the dialect and/or the DBAPI upon connect.   To specify non-string
          parameters to a Python DBAPI directly, use the
          :paramref:`_sa.create_engine.connect_args` parameter to
          :func:`_sa.create_engine`.   See also
          :attr:`_engine.URL.normalized_query` for a dictionary that is
          consistently string->list of string.
        :return: new :class:`_engine.URL` object.

        .. versionadded:: 1.4

            The :class:`_engine.URL` object is now an **immutable named
            tuple**.  In addition, the ``query`` dictionary is also immutable.
            To create a URL, use the :func:`_engine.url.make_url` or
            :meth:`_engine.URL.create` function/ method.  To modify a
            :class:`_engine.URL`, use the :meth:`_engine.URL.set` and
            :meth:`_engine.URL.update_query` methods.

        
=== parse rest
short_description: 'Create a new :class:`_engine.URL` object.'
long_description: |
  .. seealso::
  
      :ref:`database_urls`
  
  .. versionadded:: 1.4
  
      The :class:`_engine.URL` object is now an **immutable named
      tuple**.  In addition, the ``query`` dictionary is also immutable.
      To create a URL, use the :func:`_engine.url.make_url` or
      :meth:`_engine.URL.create` function/ method.  To modify a
      :class:`_engine.URL`, use the :meth:`_engine.URL.set` and
      :meth:`_engine.URL.update_query` methods.
blank_after_short_description: True
blank_after_long_description: True
style: rest
- DocstringParam
  description: |
    the name of the database backend. This name will
    correspond to a module in sqlalchemy/databases or a third party
    plug-in.
  kind: param
  key: 'param'
  arg_name: 'drivername'
  is_optional: False
- DocstringParam
  description: 'The user name.'
  kind: param
  key: 'param'
  arg_name: 'username'
  is_optional: False
- DocstringParam
  description: |
    database password.  Is typically a string, but may
    also be an object that can be stringified with ``str()``.
    
    .. note:: The password string should **not** be URL encoded when
       passed as an argument to :meth:`_engine.URL.create`; the string
       should contain the password characters exactly as they would be
       typed.
    
    .. note::  A password-producing object will be stringified only
       **once** per :class:`_engine.Engine` object.  For dynamic password
       generation per connect, see :ref:`engines_dynamic_tokens`.
  kind: param
  key: 'param'
  arg_name: 'password'
  is_optional: False
- DocstringParam
  description: 'The name of the host.'
  kind: param
  key: 'param'
  arg_name: 'host'
  is_optional: False
- DocstringParam
  description: 'The port number.'
  kind: param
  key: 'param'
  arg_name: 'port'
  is_optional: False
- DocstringParam
  description: 'The database name.'
  kind: param
  key: 'param'
  arg_name: 'database'
  is_optional: False
- DocstringParam
  description: |
    A dictionary of string keys to string values to be passed
    to the dialect and/or the DBAPI upon connect.   To specify non-string
    parameters to a Python DBAPI directly, use the
    :paramref:`_sa.create_engine.connect_args` parameter to
    :func:`_sa.create_engine`.   See also
    :attr:`_engine.URL.normalized_query` for a dictionary that is
    consistently string->list of string.
  kind: param
  key: 'param'
  arg_name: 'query'
  is_optional: False
- DocstringReturns
  description: 'new :class:`_engine.URL` object.'
  kind: returns
  key: 'return'
  is_generator: False
=== detect
rest
=== compose rest
Create a new :class:`_engine.URL` object.

.. seealso::

    :ref:`database_urls`

.. versionadded:: 1.4

    The :class:`_engine.URL` object is now an **immutable named
    tuple**.  In addition, the ``query`` dictionary is also immutable.
    To create a URL, use the :func:`_engine.url.make_url` or
    :meth:`_engine.URL.create` function/ method.  To modify a
    :class:`_engine.URL`, use the :meth:`_engine.URL.set` and
    :meth:`_engine.URL.update_query` methods.

:param drivername: the name of the database backend. This name will
    correspond to a module in sqlalchemy/databases or a third party
    plug-in.
:param username: The user name.
:param password: database password.  Is typically a string, but may
    also be an object that can be stringified with ``str()``.

    .. note:: The password string should **not** be URL encoded when
       passed as an argument to :meth:`_engine.URL.create`; the string
       should contain the password characters exactly as they would be
       typed.

    .. note::  A password-producing object will be stringified only
       **once** per :class:`_engine.Engine` object.  For dynamic password
       generation per connect, see :ref:`engines_dynamic_tokens`.
:param host: The name of the host.
:param port: The port number.
:param database: The database name.
:param query: A dictionary of string keys to string values to be passed
    to the dialect and/or the DBAPI upon connect.   To specify non-string
    parameters to a Python DBAPI directly, use the
    :paramref:`_sa.create_engine.connect_args` parameter to
    :func:`_sa.create_engine`.   See also
    :attr:`_engine.URL.normalized_query` for a dictionary that is
    consistently string->list of string.
:return: new :class:`_engine.URL` object.
