bb-dirtree


Namebb-dirtree JSON
Version 0.4.1 PyPI version JSON
download
home_page
SummaryCreate a nice looking directory tree with options
upload_time2023-07-16 12:09:32
maintainer
docs_urlNone
authorErik Beebe
requires_python>=3.10,<4.0
licenseMIT
keywords script qt files
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <style> table { text-align: center; } </style>

# DirTree

--------------------------------------------
##### Create a nice looking directory tree
--------------------------------------------

## Installation:

```bash
python -m pip install "BB-DirTree"
```

## DirTree usage

```bash
dirtree [OPTIONS] [ARGS]
```

### _**Options:**_

**Short**  | **Long**           | **Description**
---------- | ------------------ | ---------------------------------------------------------
    -b     |   --base-dir       |  Set base directory <br> *Uses current directory if not specified*
    -d     |   --depth          |  Integer to set the depth of directory tree <br> *ex: '0' will only print the base directory list*
    -D     |   --dotfiles       |  Include hidden files in tree
    -e     |   --exclude        |  Filenames/directories to exclude from the tree <br> *See Exclusions*
    -h     |   --help           |  This help message
    -L     |   --follow-links   |  Follow links to directories - default is NOT to follow
    -q     |   --qt-html        |  Print in html format for use with QT
    -r     |   --regex          |  Use regex to include/exclude files/directories in tree <br> *See Regex*
    -v     |   --verbose        |  Set verbose level (1-5) or 'debug' = 1
           |   --ignore-errors  |  Ignore read errors (such as permission errors) - Default is to error and exit
           |   --no-print       |  Don't print any output
           |   --version        |  Print version info and exit

>It is recommended to quote all paths

### *Exclusions*

>Provide names of files or directories to exclude. To exclude multiple files/directories, quote entire list and seperate with a colon (**:**). Add a forward slash (**/**) to specify a directory name to exclude.

##### **Example:**
  
```bash
dirtree --exclude "excluded dir:excluded file"
```

### *Regex*

>Prefix regex with *include=* or *exclude=*

>Seperate each regex with a space, quoting each individual argument.

##### _**Examples:**_

```bash
dirtree --regex "exclude=.*\.ini$"

    # will exclude any files that have a *.ini* extension.

dirtree --regex "include=.*\.mp3$"

    # will include only files with a *.mp3* extension.
```

>This has no effect on directories

>Multiple regex can be used by specifying **--regex** multiple times.

## License
==========

<pre>
    MIT License

    Copyright (c) [2022] [Erik Beebe]

    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.
</pre>

## CHANGELOG
============

#### v0.1.0 - 5-29-2022

- initial release

#### v0.1.1 - 5-30-2022

- changed name from DirTree to BB-DirTree
- added README.md

#### v0.1.2 - 5-31-2022

- added a changelog to README.md
- made corrections to help message

#### v0.1.3 - 5-31-2022

- added support for windows hidden files

#### v0.1.5 - 5-31-2022

- made corrections to help message

#### v0.1.7 - 6-7-2022

- changed color of files in html output
- small changes to output format

#### v0.2.2 - 7-9-2023

- added script to run from $PATH (run with 'dirtree')
- cleaned up code
- changed header text at top of output

#### v0.2.3 - 7-9-2023

- added python project titles to output
    - searches for pyproject.toml or setup.py
- added git project titles to output
    - searches for .SRCINFO file

#### v0.2.4 - 7-10-2023

- fixed typo in __main__

#### v0.2.6 - 7-10-2023

- bugfixes

#### v0.3.0 - 7-15-2023

- added bb_apputils to dependencies
    - added bblogger for logging
- removed __doc__ from init.py
- added verbose options
- added option to ignore errors while scanning directories
- added option to follow symlinks
- added symlink data to output
- added '--no-print' option for debugging
- changed colors in output
- changed the way the title is generated
- updated README to reflect changes
- cleaned up some code

#### v0.3.1 - 7-15-2023

- fixed title when printing to tty

#### v0.3.2 - 7-15-2023

- added colorized tree for symlinked directories
- prevent symlinks from causing infinite recursion
    - colored recursive directory links red
- moved formatting code to class instances

#### v0.3.4 - 7-15-2023

- fixed hidden file detection in windows
- added more title methods

#### v0.4.0 - 7-16-2023

- updated bb_appdirs
- changed some log messages
- added more title methods
- added a fancy title header
- added winvolumeinfo module
- added unixvolumeinfo module
- added option to print version info
- adjusted output for when base directory is a link
- changed html colors to hex values and adjusted
- changed tty colors to rgb values
- changed some option arguments

#### v0.4.1 - 7-16-2023

- changed base directory to show absolute path

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "bb-dirtree",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10,<4.0",
    "maintainer_email": "",
    "keywords": "script,qt,files",
    "author": "Erik Beebe",
    "author_email": "beebeapps_feedback@tuta.io",
    "download_url": "https://files.pythonhosted.org/packages/4c/b6/b80a268446f341eda6f7d4f842a3fba977dc028c34547d4ace2ba6f95478/bb_dirtree-0.4.1.tar.gz",
    "platform": null,
    "description": "<style> table { text-align: center; } </style>\n\n# DirTree\n\n--------------------------------------------\n##### Create a nice looking directory tree\n--------------------------------------------\n\n## Installation:\n\n```bash\npython -m pip install \"BB-DirTree\"\n```\n\n## DirTree usage\n\n```bash\ndirtree [OPTIONS] [ARGS]\n```\n\n### _**Options:**_\n\n**Short**  | **Long**           | **Description**\n---------- | ------------------ | ---------------------------------------------------------\n    -b     |   --base-dir       |  Set base directory <br> *Uses current directory if not specified*\n    -d     |   --depth          |  Integer to set the depth of directory tree <br> *ex: '0' will only print the base directory list*\n    -D     |   --dotfiles       |  Include hidden files in tree\n    -e     |   --exclude        |  Filenames/directories to exclude from the tree <br> *See Exclusions*\n    -h     |   --help           |  This help message\n    -L     |   --follow-links   |  Follow links to directories - default is NOT to follow\n    -q     |   --qt-html        |  Print in html format for use with QT\n    -r     |   --regex          |  Use regex to include/exclude files/directories in tree <br> *See Regex*\n    -v     |   --verbose        |  Set verbose level (1-5) or 'debug' = 1\n           |   --ignore-errors  |  Ignore read errors (such as permission errors) - Default is to error and exit\n           |   --no-print       |  Don't print any output\n           |   --version        |  Print version info and exit\n\n>It is recommended to quote all paths\n\n### *Exclusions*\n\n>Provide names of files or directories to exclude. To exclude multiple files/directories, quote entire list and seperate with a colon (**:**). Add a forward slash (**/**) to specify a directory name to exclude.\n\n##### **Example:**\n  \n```bash\ndirtree --exclude \"excluded dir:excluded file\"\n```\n\n### *Regex*\n\n>Prefix regex with *include=* or *exclude=*\n\n>Seperate each regex with a space, quoting each individual argument.\n\n##### _**Examples:**_\n\n```bash\ndirtree --regex \"exclude=.*\\.ini$\"\n\n    # will exclude any files that have a *.ini* extension.\n\ndirtree --regex \"include=.*\\.mp3$\"\n\n    # will include only files with a *.mp3* extension.\n```\n\n>This has no effect on directories\n\n>Multiple regex can be used by specifying **--regex** multiple times.\n\n## License\n==========\n\n<pre>\n    MIT License\n\n    Copyright (c) [2022] [Erik Beebe]\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in all\n    copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n    SOFTWARE.\n</pre>\n\n## CHANGELOG\n============\n\n#### v0.1.0 - 5-29-2022\n\n- initial release\n\n#### v0.1.1 - 5-30-2022\n\n- changed name from DirTree to BB-DirTree\n- added README.md\n\n#### v0.1.2 - 5-31-2022\n\n- added a changelog to README.md\n- made corrections to help message\n\n#### v0.1.3 - 5-31-2022\n\n- added support for windows hidden files\n\n#### v0.1.5 - 5-31-2022\n\n- made corrections to help message\n\n#### v0.1.7 - 6-7-2022\n\n- changed color of files in html output\n- small changes to output format\n\n#### v0.2.2 - 7-9-2023\n\n- added script to run from $PATH (run with 'dirtree')\n- cleaned up code\n- changed header text at top of output\n\n#### v0.2.3 - 7-9-2023\n\n- added python project titles to output\n    - searches for pyproject.toml or setup.py\n- added git project titles to output\n    - searches for .SRCINFO file\n\n#### v0.2.4 - 7-10-2023\n\n- fixed typo in __main__\n\n#### v0.2.6 - 7-10-2023\n\n- bugfixes\n\n#### v0.3.0 - 7-15-2023\n\n- added bb_apputils to dependencies\n    - added bblogger for logging\n- removed __doc__ from init.py\n- added verbose options\n- added option to ignore errors while scanning directories\n- added option to follow symlinks\n- added symlink data to output\n- added '--no-print' option for debugging\n- changed colors in output\n- changed the way the title is generated\n- updated README to reflect changes\n- cleaned up some code\n\n#### v0.3.1 - 7-15-2023\n\n- fixed title when printing to tty\n\n#### v0.3.2 - 7-15-2023\n\n- added colorized tree for symlinked directories\n- prevent symlinks from causing infinite recursion\n    - colored recursive directory links red\n- moved formatting code to class instances\n\n#### v0.3.4 - 7-15-2023\n\n- fixed hidden file detection in windows\n- added more title methods\n\n#### v0.4.0 - 7-16-2023\n\n- updated bb_appdirs\n- changed some log messages\n- added more title methods\n- added a fancy title header\n- added winvolumeinfo module\n- added unixvolumeinfo module\n- added option to print version info\n- adjusted output for when base directory is a link\n- changed html colors to hex values and adjusted\n- changed tty colors to rgb values\n- changed some option arguments\n\n#### v0.4.1 - 7-16-2023\n\n- changed base directory to show absolute path\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Create a nice looking directory tree with options",
    "version": "0.4.1",
    "project_urls": null,
    "split_keywords": [
        "script",
        "qt",
        "files"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "eeecabb674df8effd4e2cce319be5c6548c9b6a2647ee9c844ad895401278ead",
                "md5": "739163757b71361eeb5afc72d0f0860d",
                "sha256": "c6a23cc70364ba329573f94783f6fda644875ddab9b5a5a8e9f572f3bae1c9e9"
            },
            "downloads": -1,
            "filename": "bb_dirtree-0.4.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "739163757b71361eeb5afc72d0f0860d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10,<4.0",
            "size": 15549,
            "upload_time": "2023-07-16T12:09:31",
            "upload_time_iso_8601": "2023-07-16T12:09:31.579578Z",
            "url": "https://files.pythonhosted.org/packages/ee/ec/abb674df8effd4e2cce319be5c6548c9b6a2647ee9c844ad895401278ead/bb_dirtree-0.4.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4cb6b80a268446f341eda6f7d4f842a3fba977dc028c34547d4ace2ba6f95478",
                "md5": "c071fc58d00fc376a85397ba2b819e81",
                "sha256": "44b3052a8334bca0f0afe0e0eee7d1d138bda5dc633a8b6a0c93d6bc9ac5ee57"
            },
            "downloads": -1,
            "filename": "bb_dirtree-0.4.1.tar.gz",
            "has_sig": false,
            "md5_digest": "c071fc58d00fc376a85397ba2b819e81",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10,<4.0",
            "size": 15327,
            "upload_time": "2023-07-16T12:09:32",
            "upload_time_iso_8601": "2023-07-16T12:09:32.942364Z",
            "url": "https://files.pythonhosted.org/packages/4c/b6/b80a268446f341eda6f7d4f842a3fba977dc028c34547d4ace2ba6f95478/bb_dirtree-0.4.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-16 12:09:32",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "bb-dirtree"
}
        
Elapsed time: 0.09507s