You can hand over dict(mapping) or 2-tuple() as a factor to urlencode().
import urllib
f = { 'eventName' : 'myEvent', 'eventDescription' : "cool event"}
urllib.urlencode(f) #'eventName=myEvent&eventDescription=cool+event'
© 2025 OneMinuteCode. All rights reserved.