Skip to main content

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.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

maggit-0.1-1.tar.gz (21.7 kB view details)

Uploaded Source

File details

Details for the file maggit-0.1-1.tar.gz.

File metadata

  • Download URL: maggit-0.1-1.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for maggit-0.1-1.tar.gz
Algorithm Hash digest
SHA256 8613c20cd2c6fa8f8f412c2fd69577f8319386c164458dbd42a1bc9b3f45e45d
MD5 f30f53ae1046c9b807d3f3fce4f4fe60
BLAKE2b-256 eb5d5cdd51bdeab7d695334c7fcf537693b10883fbd8ce38d268c5290941e76c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page