Skip to main content

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 files for maggit 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for maggit 0.1
File Size Uploaded
maggit-0.1-1.tar.gz 21.7 kB Details

Release files / maggit-0.1-1.tar.gz

Download URL maggit-0.1-1.tar.gz
Size 21.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8613c20cd2c6fa8f8f412c2fd69577f8319386c164458dbd42a1bc9b3f45e45d
BLAKE2b-256 checksum
How to use checksums
eb5d5cdd51bdeab7d695334c7fcf537693b10883fbd8ce38d268c5290941e76c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page