redact_url_password#

API documentation for tradeexecutor.utils.url.redact_url_password Python function.

redact_url_password(url)[source]#

Remove password from the URL.

Designed to sanitize PSQL connection URLs in logs.

Parameters:

url (str) – URL as a string

Returns:

URL where password is replaced with ???

Return type:

str