diff --git a/aiogremlin/client.py b/aiogremlin/client.py index 4f2139109b8f0d09f18d71c19f028600c71474a2..9481730070b22925fdc372d8789ff25e44d53a56 100644 --- a/aiogremlin/client.py +++ b/aiogremlin/client.py @@ -30,6 +30,8 @@ class GremlinClient: Values ``0`` or ``None`` mean no timeout :param ws_connector: A class that implements the method ``ws_connect``. Usually an instance of ``aiogremlin.connector.GremlinConnector`` + :param username: Username for SASL auth + :param password: Password for SASL auth """ def __init__(self, *, url='http://localhost:8182/', loop=None, @@ -376,6 +378,8 @@ def submit(gremlin, *, :param loop: :ref:`event loop<asyncio-event-loop>` If param is ``None``, `asyncio.get_event_loop` is used for getting default event loop (optional) + :param username: Username for SASL auth + :param password: Password for SASL auth :returns: :py:class:`aiogremlin.client.GremlinResponse` object """ diff --git a/docs/usage.rst b/docs/usage.rst index 057064716ad3e366a75ff4f9c3cef16449e01d2f..df8e3cddedbc0600f503a7bf3554ebe0c31de9fc 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -67,6 +67,10 @@ read the chunked responses one at a time:: `asyncio.get_event_loop` is used for getting default event loop (optional) + :param username: Username for SASL auth + + :param password: Password for SASL auth + :returns: :py:class:`aiogremlin.client.GremlinResponse` object