python-hglib
Mercurial Python library
Decision gist · record as of 2026-08-14
No, unless you are maintaining legacy code already using this package. The project is abandoned (last release 2020-11-17), classifiers only list Python up to 3.4, and high install friction suggests unresolved system dependencies. For new Mercurial automation, consider alternatives or direct command-line invocation.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Mercurial to be installed and the hg command server to be available on the system; high install friction suggests potential compiled dependencies or system-level configuration.
- Installation friction is high and maintenance is abandoned—the package has not been updated since 2020-11-17.
- No recent commits or repository activity are available.
License · maintenance · safety
MIT (permissive) — Licensed under MIT (permissive), so you may use, modify, and distribute the package freely with minimal restrictions.
last release 2020-11-17 (2096 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 76,923 downloads/mo, #14,578 on PyPI
Alternatives
Verify before relying
pip install python-hglib
from hglib.client import hg
repo = hg.open('/path/to/repo')
log = repo.log()
repo.close()- Whether the package works reliably with modern Python versions beyond 3.4, given its age and lack of maintenance.
- Current compatibility with recent Mercurial releases and whether the command server protocol has changed.
- Whether high install friction is due to compiled dependencies or other system-level requirements.
What it is and what it does
python-hglib is a Python library that wraps Mercurial's command server to provide a programmatic interface to hg operations. Instead of shelling out to the hg command-line tool, it communicates directly with Mercurial's server mode, which the library describes as offering a fast and convenient way to interact with repositories from Python code.
The package is designed for developers who need to automate or script Mercurial workflows—for example, querying repository state, running commits, or managing branches programmatically. However, the package has been abandoned since its last release on 2020-11-17 and classifiers only list Python up to 3.4, making it a legacy tool unsuitable for new projects unless you are maintaining existing Mercurial-based infrastructure.
Use it for
- Automating Mercurial repository operations in build or deployment scripts that cannot use the command-line hg tool directly.
- Writing tools that need to query Mercurial repository metadata or history programmatically.
- Integrating Mercurial version control into Python applications that manage or monitor multiple repositories.
- Legacy system maintenance where existing Python code depends on hglib for Mercurial interaction.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No, unless you are maintaining legacy code already using this package.
The project is abandoned (last release 2020-11-17), classifiers only list Python up to 3.4, and high install friction suggests unresolved system dependencies. For new Mercurial automation, consider alternatives or direct command-line invocation.
Install
python-hglib on PyPI
Before you install
Installation friction is high and maintenance is abandoned—the package has not been updated since 2020-11-17. No recent commits or repository activity are available. Caution is warranted for new projects.
Requires Mercurial to be installed and the hg command server to be available on the system; high install friction suggests potential compiled dependencies or system-level configuration.
License in practice
Licensed under MIT (permissive), so you may use, modify, and distribute the package freely with minimal restrictions.
Quickstart
pip install python-hglib
from hglib.client import hg
repo = hg.open('/path/to/repo')
log = repo.log()
repo.close()
Verify before relying
- Whether the package works reliably with modern Python versions beyond 3.4, given its age and lack of maintenance.
- Current compatibility with recent Mercurial releases and whether the command server protocol has changed.
- Whether high install friction is due to compiled dependencies or other system-level requirements.
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Abandoned 2,096 days since the last release |
| First released | |
| Downloads | 76,923 / month, #14,578 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: PythonProgramming Language :: Python :: 2.4Programming Language :: Python :: 2.5Programming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.4 |
Evidence: python-hglib-2.6.2.tar.gz
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “mercurial python interface”
- python-hglibpython-hglib provides a Python interface to Mercurial version control…
- mercurialMercurial is a distributed version control system that tracks and…
- hatch-vcsA Hatch plugin that automatically determines your project's version…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also mercurial · argparse · scrapinghub · bump2version · bumpversion · versioningit · hid · hjson · setuptools-scm · gnureadline