Skip to main content

dynamic-git

Lightweight wrapper for cloning and managing git repositories in Python. Uses dulwich for transport and GitPython for the repository interface, so no system git installation is required.

Installation

pip install dynamic-git

Quick Start

from dynamic_git import get_git, GitConfig

# Clone with sensible defaults
repo = get_git("https://github.com/org/repo.git")

# Access the repo like any GitPython Repo object
print(repo.head.commit)
print(repo.active_branch)

Configuration

config = GitConfig(
    branch="develop",     # Branch to clone (default: "main")
    depth=5,              # Clone depth (default: 1)
    template_dir=None,    # Custom git template directory (default: built-in)
    extra_options=[],     # Additional options
)
repo = get_git("https://github.com/org/repo.git", config=config)

Why?

  • No system git required — ships with a built-in git shim for environments where git isn't installed
  • Pure Python transport — uses dulwich under the hood for cloning
  • GitPython compatible — returns a standard git.Repo object
  • Configurable templates — apply git templates on clone for consistent repository setup

License

MIT

Metadata

Release files for dynamic-git 0.3.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 dynamic-git 0.3.1
File Size Uploaded
dynamic_git-0.3.1.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dynamic-git 0.3.1
File Interpreter ABI Platform
dynamic_git-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.0 kB

Release files / dynamic_git-0.3.1.tar.gz

Download URL dynamic_git-0.3.1.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6c3d2ff911c9d27ca769d255f66e3b7484dfc530d74e4bf09c83e250c99f4e18
BLAKE2b-256 checksum
How to use checksums
a7fe854ee81f451186104bff0eb3a538860c889bc2b70b3447c041c548faf119
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.6

Release files / dynamic_git-0.3.1-py3-none-any.whl

Download URL dynamic_git-0.3.1-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
291270db4b5b63dc7300114f152896de9efc0c37ac122e144b4d8de84c015947
BLAKE2b-256 checksum
How to use checksums
c82ccb4e5c19ae3527f393c9eedf5f598fbcf424669c27457fe2a6e4ddf7c785
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.6

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

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