pysortfolder


Namepysortfolder JSON
Version 0.0.4 PyPI version JSON
download
home_page
SummarySort folders and files by size and display it in folder tree format.
upload_time2023-02-11 14:09:53
maintainer
docs_urlNone
author
requires_python>=3.7.0
licenseMIT-License
keywords sort folder size
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pysortfolder

Sort folders and files by size and display it in folder tree format.

## Usage

```python
from pysortfolder import PySortFolder

PySortFolder(path='PATH/TO/ROOT/FOLDER')
sf.make_tree(reverse=False)  # support reverse=True
sf.print_tree()

# data, size: 82
# ├── subfolder3, size: 0
# │   └── subsubfolder2, size: 0
# │       └── subsubsubfolder1, size: 0
# │           ├── subsubsubsubfolder1, size: 0
# │           └── subsubsubfolder1_text1.txt, size: 0
# ├── subfolder2, size: 17
# │   └── subfolder2_text1.txt, size: 17
# ├── subfolder1, size: 54
# │   ├── subsubfolder1, size: 20
# │   │   └── subsubfolder1_text1.txt, size: 20
# │   ├── subfolder1_text1.txt, size: 17
# │   └── subfolder1_text2.txt, size: 17
# └── root_text1.txt, size: 11
```

```python
from pysortfolder import dir_size

print(dir_size(path='PATH/TO/ROOT/FOLDER')) # print the size of the root

# 82
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "pysortfolder",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7.0",
    "maintainer_email": "Muhammad Yasirroni <48709672+yasirroni@users.noreply.github.com>",
    "keywords": "sort,folder,size",
    "author": "",
    "author_email": "Muhammad Yasirroni <48709672+yasirroni@users.noreply.github.com>",
    "download_url": "https://files.pythonhosted.org/packages/06/b1/530559f20bf914e07a12894b26a74c152cd1d47bff9776b2cfd0ec4bb6c1/pysortfolder-0.0.4.tar.gz",
    "platform": null,
    "description": "# pysortfolder\r\n\r\nSort folders and files by size and display it in folder tree format.\r\n\r\n## Usage\r\n\r\n```python\r\nfrom pysortfolder import PySortFolder\r\n\r\nPySortFolder(path='PATH/TO/ROOT/FOLDER')\r\nsf.make_tree(reverse=False)  # support reverse=True\r\nsf.print_tree()\r\n\r\n# data, size: 82\r\n# \u251c\u2500\u2500 subfolder3, size: 0\r\n# \u2502   \u2514\u2500\u2500 subsubfolder2, size: 0\r\n# \u2502       \u2514\u2500\u2500 subsubsubfolder1, size: 0\r\n# \u2502           \u251c\u2500\u2500 subsubsubsubfolder1, size: 0\r\n# \u2502           \u2514\u2500\u2500 subsubsubfolder1_text1.txt, size: 0\r\n# \u251c\u2500\u2500 subfolder2, size: 17\r\n# \u2502   \u2514\u2500\u2500 subfolder2_text1.txt, size: 17\r\n# \u251c\u2500\u2500 subfolder1, size: 54\r\n# \u2502   \u251c\u2500\u2500 subsubfolder1, size: 20\r\n# \u2502   \u2502   \u2514\u2500\u2500 subsubfolder1_text1.txt, size: 20\r\n# \u2502   \u251c\u2500\u2500 subfolder1_text1.txt, size: 17\r\n# \u2502   \u2514\u2500\u2500 subfolder1_text2.txt, size: 17\r\n# \u2514\u2500\u2500 root_text1.txt, size: 11\r\n```\r\n\r\n```python\r\nfrom pysortfolder import dir_size\r\n\r\nprint(dir_size(path='PATH/TO/ROOT/FOLDER')) # print the size of the root\r\n\r\n# 82\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT-License",
    "summary": "Sort folders and files by size and display it in folder tree format.",
    "version": "0.0.4",
    "split_keywords": [
        "sort",
        "folder",
        "size"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e17033ef37f5664716142f54ee91cc4b50a5ee38f3cbb6f8419f32b8c9341799",
                "md5": "5532fe27ff2b95885e391e0a53a26a6c",
                "sha256": "ca7344305a9a2a11d12dcd4059740657b33113932a01344c3f5e888372069c37"
            },
            "downloads": -1,
            "filename": "pysortfolder-0.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5532fe27ff2b95885e391e0a53a26a6c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7.0",
            "size": 4976,
            "upload_time": "2023-02-11T14:09:51",
            "upload_time_iso_8601": "2023-02-11T14:09:51.186687Z",
            "url": "https://files.pythonhosted.org/packages/e1/70/33ef37f5664716142f54ee91cc4b50a5ee38f3cbb6f8419f32b8c9341799/pysortfolder-0.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "06b1530559f20bf914e07a12894b26a74c152cd1d47bff9776b2cfd0ec4bb6c1",
                "md5": "791c4fc4eb81ccf215ed451b82ad9d08",
                "sha256": "1dd9aaa016a0066be79c1d91b1fbd1c5f9510755f4c85aa6c89ffef84468dff3"
            },
            "downloads": -1,
            "filename": "pysortfolder-0.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "791c4fc4eb81ccf215ed451b82ad9d08",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7.0",
            "size": 5059,
            "upload_time": "2023-02-11T14:09:53",
            "upload_time_iso_8601": "2023-02-11T14:09:53.123844Z",
            "url": "https://files.pythonhosted.org/packages/06/b1/530559f20bf914e07a12894b26a74c152cd1d47bff9776b2cfd0ec4bb6c1/pysortfolder-0.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-02-11 14:09:53",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "pysortfolder"
}
        
Elapsed time: 0.17638s