Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

Agha, Another GitHub API

Project Description

Yes, Agha is another GitHub API library for Python 2.x development.

Support basic CRUD operations throw the official REST API v3: http://developer.github.com/v3/

Example:

 from agha import GitHubApi
 api = GitHubApi("myuser", "mypass")

 # Create a repository
 api.create_repo({'name': 'mytestrepo1', 'description': 'Github Test 1', 'auto_init': True}

 # Edit the repo description
 api.edit_myrepo("mytestrepo1", {'description': 'Another description for my repo'})

 # List my repositories
 for repo in api.get_myrepos():
     print "NAME: %(name)s, DESCRIPTION: %(description)s, URL: %(html_url)s" % repo

 # Delete the repo
 api.delete_myrepo("mytestrepo1")

# Show my profile information
print "USER: %(login)s, NAME: %(name)s, EMAIL: %(email)s" % api.get_myprofile()

Requirements

  • Python 2.6+
  • Requests library

About

This source code is available in https://github.com/mrsarm/python-agha

Developed by Mariano Ruiz <mrsarm@gmail.com>

License: LGPL-3 (C) 2014

Release history Release notifications

This version
History Node

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
agha-0.1.0.tar.gz (17.6 kB) Copy SHA256 hash SHA256 Source None Feb 13, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page