Utils¶
pgraf.utils
¶
current_timestamp()
¶
sanitize(url)
¶
Mask passwords in URLs for security.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
url
|
str | AnyUrl | PostgresDsn
|
Input string that may contain URLs with passwords |
required |
Returns:
| Type | Description |
|---|---|
str
|
Text with passwords in URLs replaced with asterisks |