graviti.utility.common
#
Common tools.
Module Contents#
Functions#
Attributes#
- graviti.utility.common.urlnorm(url)[source]#
Normalized the input url by removing the trailing slash.
- Parameters
url (str) – the url needs to be normalized.
- Returns
The normalized url.
- Return type
str
- graviti.utility.common.locked(func)[source]#
The decorator to add threading lock for methods.
- Parameters
func (_CallableWithoutReturnValue) – The method needs to add threading lock.
- Returns
The method with theading locked.
- Return type
_CallableWithoutReturnValue