Giter Site home page Giter Site logo

Read nodes as a tree. about python-etcd HOT 6 OPEN

jplana avatar jplana commented on June 29, 2024
Read nodes as a tree.

from python-etcd.

Comments (6)

lechat avatar lechat commented on June 29, 2024

I encountered this too and made a fix in my fork. If it is ok, I can submit pull request.

from python-etcd.

pheaver avatar pheaver commented on June 29, 2024

I would imagine it breaks backwards compatibility, but it seems like a necessary change. I'll take a look if I get a chance and see what you did.

from python-etcd.

pheaver avatar pheaver commented on June 29, 2024

Oh, I see that you made it so that it doesn't return all that duplicate data in both the parents and the children. That's definitely an improvement. However, I was also hoping that the nodes would come back as a tree, and not flattened.

from python-etcd.

lechat avatar lechat commented on June 29, 2024

I think that since raw data nodes will still be wrapped in EtcdResult class, there is no point to return whole data, but just return immediate leaves. It is fairly trivial to traverse through leaves.

from python-etcd.

lechat avatar lechat commented on June 29, 2024

As for backwards compatibility, I thought about it and will try to make new method in EtcdResult for this feature once I get unit tests running on my machine and before I submit pull request.

from python-etcd.

lavagetto avatar lavagetto commented on June 29, 2024

@lechat thanks a bunch! I think backwards compatibility is a must, so you're on the right path :)

from python-etcd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.