pathCrawler


NamepathCrawler JSON
Version 0.1.1 PyPI version JSON
download
home_page
SummaryI got tired of typing more than one line to get a recursive list of pathlib.Path objects for a given directory.
upload_time2023-01-18 23:03:05
maintainer
docs_urlNone
authorMatt Manes
requires_python>=3.10
license
keywords directory
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pathCrawler
Small utility because I got tired of typing more than one line to get a recursive list of pathlib.Path objects for a directory.<br>
Install using:
<pre>pip install pathCrawler</pre>
<br>
pathCrawler contains just three functions: crawl, getDirectorySize, and formatSize.<br>
crawl takes a starting directory and returns a recursive list of pathlib.Path objects for all files in the starting directory and its sub folders.<br>
getDirectorySize takes a directory and returns the total size in bytes of the contents of the directory.<br>
formatSize takes a number (presumed to be bytes) and returns it as a string rounded to two decimal places with the appropriate unit suffix.<br>
i.e. 
<pre>
>>> formatSize(132458)
'132.46 kb'
</pre>

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "pathCrawler",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "",
    "keywords": "directory",
    "author": "Matt Manes",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/88/32/a5540ac2d9fa85344ce6f1526ef3dc9532b345c2fbf68f027d89223cfa91/pathcrawler-0.1.1.tar.gz",
    "platform": null,
    "description": "# pathCrawler\nSmall utility because I got tired of typing more than one line to get a recursive list of pathlib.Path objects for a directory.<br>\nInstall using:\n<pre>pip install pathCrawler</pre>\n<br>\npathCrawler contains just three functions: crawl, getDirectorySize, and formatSize.<br>\ncrawl takes a starting directory and returns a recursive list of pathlib.Path objects for all files in the starting directory and its sub folders.<br>\ngetDirectorySize takes a directory and returns the total size in bytes of the contents of the directory.<br>\nformatSize takes a number (presumed to be bytes) and returns it as a string rounded to two decimal places with the appropriate unit suffix.<br>\ni.e. \n<pre>\n>>> formatSize(132458)\n'132.46 kb'\n</pre>\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "I got tired of typing more than one line to get a recursive list of pathlib.Path objects for a given directory.",
    "version": "0.1.1",
    "split_keywords": [
        "directory"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "30a74bed36edfb2f956be337bbc9ebd55d49940548740e63c88e6c1581ff8e9e",
                "md5": "b2e9937cfd6252409b35f75c67d84c4c",
                "sha256": "575ad713f3844112566afe862fa74715e1d656d8f58863c342dd0e8f8f13fe68"
            },
            "downloads": -1,
            "filename": "pathcrawler-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b2e9937cfd6252409b35f75c67d84c4c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 3208,
            "upload_time": "2023-01-18T23:03:03",
            "upload_time_iso_8601": "2023-01-18T23:03:03.714270Z",
            "url": "https://files.pythonhosted.org/packages/30/a7/4bed36edfb2f956be337bbc9ebd55d49940548740e63c88e6c1581ff8e9e/pathcrawler-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8832a5540ac2d9fa85344ce6f1526ef3dc9532b345c2fbf68f027d89223cfa91",
                "md5": "61112ee8ff2e78eaf7d36090e4abcab6",
                "sha256": "bafaf14867cb0bc998b3bb919997ba17eb4e90f2fae706bd4ef730468caefc10"
            },
            "downloads": -1,
            "filename": "pathcrawler-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "61112ee8ff2e78eaf7d36090e4abcab6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 5322,
            "upload_time": "2023-01-18T23:03:05",
            "upload_time_iso_8601": "2023-01-18T23:03:05.321688Z",
            "url": "https://files.pythonhosted.org/packages/88/32/a5540ac2d9fa85344ce6f1526ef3dc9532b345c2fbf68f027d89223cfa91/pathcrawler-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-18 23:03:05",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "pathcrawler"
}
        
Elapsed time: 0.03066s