aiohglib
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 aiohglib.open(path) as client:
log = await client.log(revrange="tip")
print(log)
# Depending on your Python version you need to run one of those:
# Python 3.7 or newer
asyncio.run(main())
# Python 3.6
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
loop.close()
# Python 3.6 on Windows
loop = asyncio.ProactorEventLoop()
loop.run_until_complete(main())
loop.close()
Dependencies
Changelog
1.5
- Changed string decoding and codec detection to be more safe.
1.4
- Fixed await syntax in client.py
- Fixed redundant __bool__ in util.py
- Optional detection of encoding for changeset's author and description via chardet module
- Optional safe_template is now not used by default
Licence
MIT
Contact
Michal Šiška michal.515k4@gmail.com
Metadata
Release files for aiohglib 1.5
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 |
|---|---|---|---|---|
| aiohglib-1.5.tar.gz | 25.2 kB | Without provenance | Details for aiohglib-1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aiohglib-1.5-py3-none-any.whl | Python 3 | none | any | Details for aiohglib-1.5-py3-none-any.whl |
Total release size: 51.1 kB
Release files / aiohglib-1.5.tar.gz
| Download URL | aiohglib-1.5.tar.gz |
|---|---|
| Size | 25.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5772b8d1c657f9af2716986c88b4a964de659f276dc818e6027e3a405a3b81f0
|
|
BLAKE2b-256 checksum How to use checksums |
fff805d6f93c65df3f64d5c0442f389d178527403615b2fee6689d06a10da8cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.4
|
Release files / aiohglib-1.5-py3-none-any.whl
| Download URL | aiohglib-1.5-py3-none-any.whl |
|---|---|
| Size | 25.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8b797f87beacb870dedb351af25422d23572fdd2a04247209638d0c7fea911be
|
|
BLAKE2b-256 checksum How to use checksums |
e48cccbd4e32e5e46faed57101f9fcbaf5d5cb700f221ce1a4f651d54b349559
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.4
|
Security for aiohglib 1.5
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.