Skip to main content

A terminal file tree traverser.

Project description

PyTraverser

PyTraverser is a Python library for traversing and manipulating data structures such as trees and graphs. It provides flexible APIs for walking, searching, and transforming nested data, making it easier to implement algorithms and data processing workflows.

Features

  • Traverse trees and graphs with customizable strategies
  • Depth-first and breadth-first traversal support
  • Node filtering and transformation utilities
  • Easy integration with existing Python data structures

Installation

pip install pytraverser

Key Bindings

"[b]click[/b]/[b]⏎[/b] Expand/Collapse + select   "
"[b]⇥[/b] Decompile  "
"[b]⇧⇥[/b] Show Data  " 
"[b]←[/b] Collapse Parent   "
"[b]→[/b] Expand   "
"[b]↓[/b] Move Down + expand   "
"[b]↑[/b] move Up"

Usage Shell

$ export MDS_HOST=alcdata
$ pytraverser tree-name [shot-numer] [-d --dark | -l --light]
```gh
## Usage Python

$ export MDS_HOST=alcdata $ python Python 3.10.12 (main, Aug 15 2025, 14:32:43) [GCC 11.4.0] on linux Type "help", "copyright", "credits" or "license" for more information.

from pytraverser import traverse node = traverse("cmod", -1) #type 'q' to exit node .EDGE.CRYOPUMP


#
## Contributing

Contributions are welcome! Please open issues or submit pull requests on GitHub.

## License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytraverser-0.1.2.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytraverser-0.1.2-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file pytraverser-0.1.2.tar.gz.

File metadata

  • Download URL: pytraverser-0.1.2.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for pytraverser-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ef0964b3d63aa658e95695ad53183e77fd3e4450f722ccacfc839357cc4960c9
MD5 1ab5c69460211f5f61d79b261ccab5ca
BLAKE2b-256 874901393d294d7f6f83950789f4838917539d4dfe1574b03ef04c1e8fa39a77

See more details on using hashes here.

File details

Details for the file pytraverser-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pytraverser-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for pytraverser-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4a1446f96d468129da8245824921db9dff3af5f0e5834adbf8ba01de2492470a
MD5 2191adc9f6a3ef9e5cb469a62212d312
BLAKE2b-256 1b2b8fd5c60d21a22ec745311e229765702ec3346b3ec4811f26052b88ab1ca6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page