Skip to main content

Python API to Mercurial using the command-line interface

Project description

hgapi is a pure-Python API to Mercurial, that uses the command-line interface instead of the internal Mercurial API. The rationale for this is threefold: the internal API is unstable, it is GPL, and it’s not Python 3 compatible.

hgapi works for Mercurial > 1.2, and will instantly reflect any changes to the repository, unlike interfaces based on the CommandServer (http://mercurial.selenic.com/wiki/CommandServer). It also has a really permissive license (do whatever you want, don’t blame me).

For example of code that uses this API, take a look at https://bitbucket.org/haard/autohook which now uses hgapi exclusively.

Project details


Download files

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

Source Distributions

hgapi-1.1.0.zip (7.7 kB view details)

Uploaded Source

hgapi-1.1.0.tar.gz (5.5 kB view details)

Uploaded Source

File details

Details for the file hgapi-1.1.0.zip.

File metadata

  • Download URL: hgapi-1.1.0.zip
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for hgapi-1.1.0.zip
Algorithm Hash digest
SHA256 3685859d600d37dada10dfc103c9136575c5da445a1837c8fec1c6d0cabc9946
MD5 e3a9d41d3f98f029b29b897aa0c1ee3c
BLAKE2b-256 bb1d591689bd9ac79a9ef085fd4c3d29afb3167c1876d0c6a06c7f9bdcdf077f

See more details on using hashes here.

File details

Details for the file hgapi-1.1.0.tar.gz.

File metadata

  • Download URL: hgapi-1.1.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for hgapi-1.1.0.tar.gz
Algorithm Hash digest
SHA256 b775fdfee14fd7f54a19fe530c0a6d220de4555b7c088239a75d1604e5aeebf1
MD5 fc6c6b095daf8fde779826a140e51a28
BLAKE2b-256 eac951c09a7af2ac0fcb2e6dd21f6281ea127d2f845845e11102da0373d79953

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page