python convert string to valid url spaces code example
Example: url encoded path using python
#Python3
import urllib
print (urllib.parse.quote('gitlab/gith', safe=''))
>>> gitlab%Fgith
#Python3
import urllib
print (urllib.parse.quote('gitlab/gith', safe=''))
>>> gitlab%Fgith