title: Work with GitHub Wiki repository using Python
body: <p>Is there any way to programmatically (using libraries like <strong><code>PyGithub</code></strong>, <strong><code>GitPython</code></strong> or <strong><code>dulwich</code></strong>) load any file right into <code>MyRepo.wiki.git</code> repository? Using Python, of course. </p>
  
  <p>I can easily upload a file right into <code>MyRepo.git</code> repository with a help of <strong><code>PyGithub</code></strong>, but, unfortunately, this library has no API or ways to work with <code>MyRepo.wiki.git</code> repository.</p>
  
  <p>Here is how I can upload a file to <code>MyRepo.git</code> repository:</p>
  
  <pre><code>github_repo = github_account.get_user().get_repo('MyRepo')
  
  head_ref = gh_repo.get_git_ref("heads/%s" % github_branch)
  latest_commit = gh_repo.get_git_commit(head_ref.object.sha)
  
  base_tree = latest_commit.tree
  
  new_tree = gh_repo.create_git_tree(
      [github.InputGitTreeElement(
          path="test.txt",
          mode='100755' if github_executable else '100644',
          type='blob',
          content="test"
      )],
      base_tree)
  
  new_commit = gh_repo.create_git_commit(
      message="test commit message",
      parents=[latest_commit],
      tree=new_tree)
  
  head_ref.edit(sha=new_commit.sha, force=False)
  </code></pre>
  
  <p>So, <strong>how</strong> can I do <strong>the same</strong> but with <strong><code>MyRepo.wiki.git</code></strong> repository? If you can provide an example using PyGithub library - it would be really great.</p>
  
  <p>P.S. Can I do this using Gollum API?</p>
  
  <p>P.P.S. Has not anybody worked with <code>*.wiki.git</code> using any kind of python library? I do not believe :(</p>
  
  <p>P.P.P.S. If I was not clear enough: I DO NOT want to create a local repository in any way. All I want to modify repo structure on-the-fly - just how my example does. But with *.wiki.git repository.</p>
  
  <p>Thank you!</p>