async-etcd3gw
An async etcd3 grpc-gateway v3 API Python client, derived from etcd3gw.
Library Installation
$ pip install async-etcd3gw
Usage
You can find examples in examples folder.
Basic usage example:
import asyncio
from async_etcd3gw import AsyncEtcd3Client
async def main():
client = AsyncEtcd3Client(host="etcd", port=2379)
# Put key
await client.put(key="foo", value="bar")
# Get key
print("get key foo", await client.get(key="foo"))
# Get all keys
print("get all keys", await client.get_all())
# Create lease and use it
lease = await client.lease(ttl=100)
await client.put(key="foo", value="bar", lease=lease)
# Get lease keys
print("get lease keys", await lease.keys())
# Refresh lease
await lease.refresh()
# Release all acquired resources
await client.close()
if __name__ == "__main__":
asyncio.run(main())
Links
Metadata
Release files for async-etcd3gw 0.8
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 |
|---|---|---|---|---|
| async_etcd3gw-0.8.tar.gz | 17.7 kB | Without provenance | Details for async_etcd3gw-0.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| async_etcd3gw-0.8-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for async_etcd3gw-0.8-py2.py3-none-any.whl |
Total release size: 36.8 kB
Release files / async_etcd3gw-0.8.tar.gz
| Download URL | async_etcd3gw-0.8.tar.gz |
|---|---|
| Size | 17.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd91ada153a5bd81b3d389eab6562a4f3da4b94a7aefe371721d529c638d9179
|
|
BLAKE2b-256 checksum How to use checksums |
b7539cc7500be8deba52991cc28513bc4060f6f49415cb1c5b4d10d0f03a4e87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.9.6 requests/2.30.0 setuptools/67.7.2 requests-toolbelt/1.0.0 tqdm/4.65.0 CPython/3.9.16
|
Release files / async_etcd3gw-0.8-py2.py3-none-any.whl
| Download URL | async_etcd3gw-0.8-py2.py3-none-any.whl |
|---|---|
| Size | 19.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
86e6ceb34a5619f8f1ae7699f78bfb21ccc37dd75dee34b1bd99cb74fa2beb3a
|
|
BLAKE2b-256 checksum How to use checksums |
f1766b0e27d337c7d934a76bd8ab1f4afb9366518917f0bce1e47b157425c36d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.9.6 requests/2.30.0 setuptools/67.7.2 requests-toolbelt/1.0.0 tqdm/4.65.0 CPython/3.9.16
|
Security for async-etcd3gw 0.8
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.