jplana / python-etcd

A python client for etcd
Other
522 stars 210 forks source link

There should be a way to prevent python-etcd from appending a slash to key names #257

Open graysonchao opened 6 years ago

graysonchao commented 6 years ago

I am using etcd in https://github.com/graysonchao/credis as a state store for a distributed system, and I'd like to use python-etcd + Flask to make a small web API for monitoring purposes. Unfortunately, my key naming convention doesn't have leading slashes - keys look like credis:DIR/DIR/FILE. Is the Unix-style leading slash a best practices-related convention that I'm unaware of, or should there be an option that I can pass to python-etcd methods to ask not to have a trailing slash appended?