Skip to main content

Maggit

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.

Metadata

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 Provenance Actions
maggit-0.1-1.tar.gz 21.7 kB Without provenance Details for maggit-0.1-1.tar.gz

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

Security for maggit 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file No provenance

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