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.Repoobject - 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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dynamic_git-0.3.1.tar.gz | 6.4 kB | Without provenance | Details for dynamic_git-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dynamic_git-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for dynamic_git-0.3.1-py3-none-any.whl |
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
|
Security for dynamic-git 0.3.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.