Name | utree JSON |
Version |
0.1.0
JSON |
| download |
home_page | None |
Summary | Pure-Python Implementation of tree commandline utility |
upload_time | 2025-08-17 20:33:55 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.9 |
license | The MIT License (MIT) Copyright (c) 2025 Dmytro Yaroshenko Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
python
tree
commandline
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# tree-py
#### Pure-Python Implementation of `tree` commandline utility
## Installation
```bash
pip install tree
# or
uv tool install tree
```
## Usage
```Bash
sting options -------:
-a All files are listed.
-d List directories only.
-l Follow symbolic links like directories.
-f Print the full path prefix for each file.
-x Stay on current filesystem only.
-L level Descend only level directories deep.
-R Rerun tree when max dir level reached.
-P pattern List only those files that match the pattern given.
-I pattern Do not list files that match the given pattern.
--ignore-case Ignore case when pattern matching.
--matchdirs Include directory names in -P pattern matching.
--noreport Turn off file/directory count at end of tree listing.
--charset X Use charset X for terminal/HTML and indentation line output.
--filelimit # Do not descend dirs with more than # files in them.
--timefmt <f> Print and format time according to the format <f>.
-o filename Output to file instead of stdout.
------- File options -------:
-q Print non-printable characters as '?'.
-N Print non-printable characters as is.
-Q Quote filenames with double quotes.
-p Print the protections for each file.
-u Displays file owner or UID number.
-g Displays file group owner or GID number.
-s Print the size in bytes of each file.
-h Print the size in a more human readable way.
--si Like -h, but use in SI units (powers of 1000).
-D Print the date of last modification or (-c) status change.
-F Appends '/', '=', '*', '@', '|' or '>' as per ls -F.
--inodes Print inode number of each file.
--device Print device ID number to which each file belongs.
------- Sorting options -------:
-v Sort files alphanumerically by version.
-t Sort files by last modification time.
-c Sort files by last status change time.
-U Leave files unsorted.
-r Reverse the order of the sort.
--dirsfirst List directories before files (-U disables).
--sort X Select sort: name,version,size,mtime,ctime.
------- Graphics options -------:
-i Don`t print indentation lines.
-A ANSI lines graphic indentation lines.
-S Print with CP437 (console) graphics indentation lines.
-n Turn colorization off always (-C overrides).
-C Turn colorization on always.
------- Miscellaneous options -------:
--version Print version and exit.
--help Print usage and this help message and exit.
-- Options processing terminator.
```
Raw data
{
"_id": null,
"home_page": null,
"name": "utree",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "python, tree, commandline",
"author": null,
"author_email": "Dmytro Yaroshenko <thehelixpg@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/02/1d/cdfbcd57262b09aea4d818c9afd2f48581dd5309012ab6bc3a6866d4f1eb/utree-0.1.0.tar.gz",
"platform": null,
"description": "# tree-py\n#### Pure-Python Implementation of `tree` commandline utility\n\n\n## Installation\n```bash\npip install tree\n# or\nuv tool install tree \n```\n\n## Usage\n```Bash\nsting options -------:\n -a All files are listed.\n -d List directories only.\n -l Follow symbolic links like directories.\n -f Print the full path prefix for each file.\n -x Stay on current filesystem only.\n -L level Descend only level directories deep.\n -R Rerun tree when max dir level reached.\n -P pattern List only those files that match the pattern given.\n -I pattern Do not list files that match the given pattern.\n --ignore-case Ignore case when pattern matching.\n --matchdirs Include directory names in -P pattern matching.\n --noreport Turn off file/directory count at end of tree listing.\n --charset X Use charset X for terminal/HTML and indentation line output.\n --filelimit # Do not descend dirs with more than # files in them.\n --timefmt <f> Print and format time according to the format <f>.\n -o filename Output to file instead of stdout.\n\n ------- File options -------:\n -q Print non-printable characters as '?'.\n -N Print non-printable characters as is.\n -Q Quote filenames with double quotes.\n -p Print the protections for each file.\n -u Displays file owner or UID number.\n -g Displays file group owner or GID number.\n -s Print the size in bytes of each file.\n -h Print the size in a more human readable way.\n --si Like -h, but use in SI units (powers of 1000).\n -D Print the date of last modification or (-c) status change.\n -F Appends '/', '=', '*', '@', '|' or '>' as per ls -F.\n --inodes Print inode number of each file.\n --device Print device ID number to which each file belongs.\n\n ------- Sorting options -------:\n -v Sort files alphanumerically by version.\n -t Sort files by last modification time.\n -c Sort files by last status change time.\n -U Leave files unsorted.\n -r Reverse the order of the sort.\n --dirsfirst List directories before files (-U disables).\n --sort X Select sort: name,version,size,mtime,ctime.\n\n ------- Graphics options -------:\n -i Don`t print indentation lines.\n -A ANSI lines graphic indentation lines.\n -S Print with CP437 (console) graphics indentation lines.\n -n Turn colorization off always (-C overrides).\n -C Turn colorization on always.\n\n ------- Miscellaneous options -------:\n --version Print version and exit.\n --help Print usage and this help message and exit.\n -- Options processing terminator.\n```\n",
"bugtrack_url": null,
"license": "The MIT License (MIT) Copyright (c) 2025 Dmytro Yaroshenko Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
"summary": "Pure-Python Implementation of tree commandline utility",
"version": "0.1.0",
"project_urls": {
"Bug Reports": "https://github.com/hbmartin/tree/issues",
"Homepage": "https://github.com/hbmartin/tree",
"Source": "https://github.com/hbmartin/tree"
},
"split_keywords": [
"python",
" tree",
" commandline"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "a778ae6b035fdd25dae4d0da5e88ed6fb7efc425a0daf8695b8f2b796597757d",
"md5": "9770624cdaae6dd4d4df02f93db88488",
"sha256": "1224940d726aec814c1ffc49bb295e41ac72a916fc4cb8ec151d36e9f3caf992"
},
"downloads": -1,
"filename": "utree-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "9770624cdaae6dd4d4df02f93db88488",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 13444,
"upload_time": "2025-08-17T20:33:54",
"upload_time_iso_8601": "2025-08-17T20:33:54.277783Z",
"url": "https://files.pythonhosted.org/packages/a7/78/ae6b035fdd25dae4d0da5e88ed6fb7efc425a0daf8695b8f2b796597757d/utree-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "021dcdfbcd57262b09aea4d818c9afd2f48581dd5309012ab6bc3a6866d4f1eb",
"md5": "45a64fa035c61ce03852ffcbcc85a79b",
"sha256": "a8f04c84d3dfbef50956990cd26fa47439dad9abdd6c922828a7cdad6b06b54f"
},
"downloads": -1,
"filename": "utree-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "45a64fa035c61ce03852ffcbcc85a79b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 12968,
"upload_time": "2025-08-17T20:33:55",
"upload_time_iso_8601": "2025-08-17T20:33:55.361348Z",
"url": "https://files.pythonhosted.org/packages/02/1d/cdfbcd57262b09aea4d818c9afd2f48581dd5309012ab6bc3a6866d4f1eb/utree-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-17 20:33:55",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "hbmartin",
"github_project": "tree",
"github_not_found": true,
"lcname": "utree"
}