DEV Community

Cover image for Tree Parsing
Jorge Silva
Jorge Silva

Posted on

1

Tree Parsing

What I built

A Python library to parse node list to tree, or parse tree to node list

Category Submission:

Wacky Wildcards

App Link

https://pypi.org/project/tree-parsing/

Screenshots

Image description

Image description

Description

A library to lets work with trees and lists.

So you can:

  • Make a tree when you have all nodes in the list
  • Convert the Tree to lists of nodes
  • Customize how to generate 'flow key', 'children key'
  • Do something for each node

Link to Source Code

Source Code: https://github.com/scjorge/tree-parsing

Documentation: https://tree-parsing.readthedocs.io/en/latest/

Permissive License

MIT License

Background (What made you decide to build this particular app? What inspired you?)

One day I needed to carry out an activity that needed to work with lists and trees and when looking, I couldn't find a library that met my need. So I used inspiration to create it and make it available to the world.

How I built it (How did you utilize GitHub Actions or GitHub Codespaces? Did you learn something new along the way? Pick up a new skill?)

I discovered the real usefulness of GitHub Codespaces in this project. I had already heard about it. I looked for tutorials on Youtube and was delighted with the tool. It really meets many needs at different times.

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

While many AI coding tools operate as simple command-response systems, Qodo Gen 1.0 represents the next generation: autonomous, multi-step problem-solving agents that work alongside you.

Read full post →

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

Best practices for optimal infrastructure performance with Magento

Running a Magento store? Struggling with performance bottlenecks? Join us and get actionable insights and real-world strategies to keep your store fast and reliable.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️