Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add (python2.7 and python3.5+) Python client for etcd v3, using gRPC-… #10593

Merged
merged 1 commit into from
Mar 29, 2019

Conversation

pacoxu
Copy link
Contributor

@pacoxu pacoxu commented Mar 28, 2019

Here is a Python client for etcd v3.
https://github.com/Revolution1/etcd3-py

Python client for etcd v3 (Using gRPC-JSON-Gateway)

Notice: The authentication header through gRPC-JSON-Gateway only supported in etcd v3.3.0+

Features

  • Support python2.7 and python3.5+
  • Sync client based on requests
  • Async client based on aiohttp
  • TLS Connection
  • support APIs
    • Auth
    • KV
    • Watch
    • Cluster
    • Lease
    • Lock
    • Maintenance
    • Extra APIs
  • stateful utilities
    • Watch
    • Lease
    • Transaction
    • Lock

Copy link
Contributor

@hexfusion hexfusion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the contribution!

@codecov-io
Copy link

codecov-io commented Mar 28, 2019

Codecov Report

Merging #10593 into master will increase coverage by 0.08%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #10593      +/-   ##
==========================================
+ Coverage   71.51%    71.6%   +0.08%     
==========================================
  Files         393      393              
  Lines       36571    36571              
==========================================
+ Hits        26155    26185      +30     
+ Misses       8580     8541      -39     
- Partials     1836     1845       +9
Impacted Files Coverage Δ
proxy/grpcproxy/register.go 69.44% <0%> (-13.89%) ⬇️
etcdserver/api/v3election/election.go 66.66% <0%> (-2.78%) ⬇️
clientv3/balancer/balancer.go 84.49% <0%> (-2.33%) ⬇️
etcdserver/api/v2http/client.go 85.51% <0%> (-1.21%) ⬇️
auth/store.go 74.41% <0%> (-0.27%) ⬇️
clientv3/watch.go 91.98% <0%> (-0.22%) ⬇️
proxy/grpcproxy/watcher.go 89.79% <0%> (ø) ⬆️
etcdserver/server.go 74.6% <0%> (+0.07%) ⬆️
etcdserver/api/v3rpc/watch.go 83% <0%> (+0.65%) ⬆️
clientv3/leasing/kv.go 89.7% <0%> (+0.66%) ⬆️
... and 9 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 952b9e7...4fcf311. Read the comment docs.

@hexfusion
Copy link
Contributor

hexfusion commented Mar 28, 2019

@pacoxu one nit please update git commit per https://github.com/etcd-io/etcd/blob/master/CONTRIBUTING.md#format-of-the-commit-message

Something like Documentation: add Python client for etcd v3 thanks!

@pacoxu
Copy link
Contributor Author

pacoxu commented Mar 29, 2019

@hexfusion Change the commit message as you mentioned. Thanks for your comments.

@hexfusion hexfusion merged commit be39aa5 into etcd-io:master Mar 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants