title: url builder for python
body: <p>I know about <code>urllib</code> and <code>urlparse</code>, but I want to make sure I wouldn't be reinventing the wheel.</p>
  
  <p>My problem is that I am going to be fetching a bunch of urls from the same domain via the <code>urllib</code> library. I basically want to be able to generate urls to use (as strings) with different paths and query params. I was hoping that something might have a syntax like:</p>
  
  <pre><code>url_builder = UrlBuilder("some.domain.com")
  # should give me "http://some.domain.com/blah?foo=bar
  url_i_need_to_hit = url_builder.withPath("blah").withParams("foo=bar")  # maybe a ".build()" after this
  </code></pre>
  
  <p>Basically I want to be able to store defaults that get passed to <code>urlparse.urlunsplit</code> instead of constantly clouding up the code by passing in the whole tuple every time.</p>
  
  <p>Does something like this exist? Do people agree it's worth throwing together?</p>