Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A python implemetation of git

Project Description

Introduction

Maggit is a implementation of git in Python. Maggit doesn’t use subproccess call to git or external C libraries. There is no more dependancy than python standard library.

Maggit need Python 3.4 at least.

The actual version (0.1) is pretty rough:

  • The low level allow read and write git objects but the high level API provide only reading.
  • There is remote, no push/pull, no merge/rebase, no working tree.
  • API is not perfect and expect it changes.
  • Documentation is not complete.
  • Patches are welcomes. (Here are the issues tracker and the merge requests)

Example

Here a simple example code equivalent to git log -n 10 to see how to use maggit:

import maggit
# Create a repository
repo = maggit.Repo()
branches = repo.branches
master = branches['master']
commit = master.commit
for i in range(10):
    print(commit.message)
    commit = commit.parents[0]

See the doc for full information and how to use it.

Release History

Release History

This version
History Node

0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
maggit-0.1-1.tar.gz (21.7 kB) Copy SHA256 Checksum SHA256 Source Dec 10, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting