A terminal file tree traverser.
Project description
PyTraverser
PyTraverser is a Python library for text based traversing of MDSplus trees. It provides both a command line callable interfaces.
This package uses mdsthin to access MDSplus information. Define MDS_HOST environment to be the server to use. For example:
export MDS_HOST=alcdata
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
usage: pytraverser [-h] [-d | -l] tree [shot]
Tree, optional shot, dark flag
positional arguments:
tree Tree string
shot Optional shot number (default -1)
options:
-h, --help show this help message and exit
-d, --dark Enable dark mode
-l, --light Enable light mode
Python Usage
$ 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytraverser-0.1.5.tar.gz.
File metadata
- Download URL: pytraverser-0.1.5.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1abb0cf80ec1b9a312346555b460ae5c8959b047a188fc2acd5961b80ebb8f61
|
|
| MD5 |
151301c152ea821390fe99ae1f3afb98
|
|
| BLAKE2b-256 |
bda77f2aff7c70296d0507c7029940e871373743a92fb43827ab96c798cb9151
|
Provenance
The following attestation bundles were made for pytraverser-0.1.5.tar.gz:
Publisher:
publish.yml on joshStillerman/pytraverser
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pytraverser-0.1.5.tar.gz -
Subject digest:
1abb0cf80ec1b9a312346555b460ae5c8959b047a188fc2acd5961b80ebb8f61 - Sigstore transparency entry: 572861339
- Sigstore integration time:
-
Permalink:
joshStillerman/pytraverser@8b0e23dbbd7bc54e1e51f14b861d6b52c61704a7 -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/joshStillerman
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8b0e23dbbd7bc54e1e51f14b861d6b52c61704a7 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pytraverser-0.1.5-py3-none-any.whl.
File metadata
- Download URL: pytraverser-0.1.5-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d23bd269497d1da1a34bfbf58b11bd14e5f1a660c4a4e8141a68a09c0e75aae7
|
|
| MD5 |
1513a7c7280ccf19395d63fa08032a06
|
|
| BLAKE2b-256 |
0ed9481a64f8e3db56183a40074ef060a77728e63b40620f2910f691c49b8c59
|
Provenance
The following attestation bundles were made for pytraverser-0.1.5-py3-none-any.whl:
Publisher:
publish.yml on joshStillerman/pytraverser
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pytraverser-0.1.5-py3-none-any.whl -
Subject digest:
d23bd269497d1da1a34bfbf58b11bd14e5f1a660c4a4e8141a68a09c0e75aae7 - Sigstore transparency entry: 572861365
- Sigstore integration time:
-
Permalink:
joshStillerman/pytraverser@8b0e23dbbd7bc54e1e51f14b861d6b52c61704a7 -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/joshStillerman
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8b0e23dbbd7bc54e1e51f14b861d6b52c61704a7 -
Trigger Event:
release
-
Statement type: