{"repo":"vcs-python/libvcs","free":true,"listed":false,"github":"https://github.com/vcs-python/libvcs","clone":"git clone https://github.com/vcs-python/libvcs.git","description":"⚙️ Lite, typed, pythonic utilities for git, svn, mercurial, etc.","language":"Python","stars":58,"topics":["vcs","python","git","hg","python-3","svn","api","library","pythonic","mercurial"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"libvcs The Swiss Army Knife for Version Control Systems in Python. libvcs provides a unified, typed, and pythonic interface for managing Git, Mercurial, and Subversion repositories. Whether you're building a deployment tool, a developer utility, or just need to clone a repo in a script, libvcs handles the heavy lifting. It powers vcspull and simplifies VCS interactions down to a few lines of code. --- Features at a Glance - 🔄 Repository Synchronization : Clone, update, and manage local repository copies with a high-level API. - 🛠 Command Abstraction : Speak fluent git , hg , and svn through fully-typed Python objects. - 🔗 URL Parsing : Robustly validate, parse, and manipulate VCS URLs (including SCP-style). - 🧪 Pytest Fixtures : Batteries-included fixtures for spinning up temporary repositories in your test suite. Installation With uv: Try it interactively: Tip: libvcs is pre-1.0. Pin a version range in projects to avoid surprises: Usage 1. Synchronize Repositories Clone and update repositories with a consistent API, regardless of the VCS. Learn more about Synchronization 2. Command Abstraction Traverse repository entities intuitively with ORM-like filtering, then run targeted commands against them. Learn more about Command Abstraction 3. URL Parsing Stop writing regex for Git URLs. Let libvcs handle the edge cases. Learn more about URL Parsing 4. Testing with Pytest Writing a tool that interacts with VCS? Use our fixtures to keep your tests clean and isolated. Learn more","default_branch":null,"files":null,"tree":[],"storefront":"/r/vcs-python","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vcs-python/libvcs/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}