Skip to main content

Mercurial Python asynchronous library

Project description


The aiohglib is an asynchronous variant of hglib, which is library with a fast, convenient interface to Mercurial. It uses Mercurial's command server for communication with hg.

The code itself takes advantage of asyncio library and async/await syntax.

Another difference against standard hglib is suport for timezones and changesets details like p1, p2 and extras.

Basic usage

import asyncio
import aiohglib

async def main():
    async with as client:
        log = await client.log(revrange="tip")

# Depending on your Python version you need to run one of those:

# Python 3.7 or newer

# Python 3.6
loop = asyncio.get_event_loop()

# Python 3.6 on Windows
loop = asyncio.ProactorEventLoop()




  • Fixed await syntax in
  • Fixed redundant __bool__ in
  • Optional detection of encoding for changeset's author and description via chardet module
  • Optional safe_template is now not used by default




Michal Šiška

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for aiohglib, version 1.4
Filename, size File type Python version Upload date Hashes
Filename, size aiohglib-1.4-py3-none-any.whl (25.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size aiohglib-1.4.tar.gz (24.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page