forfiles


Nameforfiles JSON
Version 5.0.0 PyPI version JSON
download
home_pageNone
SummaryUseful tools for files
upload_time2024-10-28 13:10:35
maintainerNone
docs_urlNone
author4MBL
requires_python>=3.9
licenseMIT License Copyright (c) 2022 4MBL 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 directories files fs images utility
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # forfiles

forfiles has useful tools for files and images.

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install forfiles.

```bash
pip install --upgrade forfiles
```

## Usage

```python
from forfiles import file, image

# file tools
file.filter_type("C:/Users/example/Downloads/directory-to-filter/", [".png", ".txt", "md"])
file.dir_create("C:/Users/example/Downloads/directory-to-create/")
file.dir_delete("C:/Users/example/Downloads/directory-to-delete/")

# image tools
image.scale("C:/Users/example/Downloads/boat.png", 1, 1.5)
image.resize("C:/Users/example/Downloads/car.jpg", 1000, 1000)
image.to_png("C:/Users/example/Downloads/plane.jpg")

# you can also operate whole directories
dir_action("C:/Users/example/Downloads/cats/", image.scale, 2, 2)
dir_action("C:/Users/example/Downloads/giraffes/", image.resize, 1000, 1000)
dir_action("C:/Users/example/Downloads/tortoises/", image.to_png)
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "forfiles",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "directories, files, fs, images, utility",
    "author": "4MBL",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/b8/83/5340248f69f3ede414eeda3865bff9f9fb9d18e8f2f59f76e3be92bc9984/forfiles-5.0.0.tar.gz",
    "platform": null,
    "description": "# forfiles\n\nforfiles has useful tools for files and images.\n\n## Installation\n\nUse the package manager [pip](https://pip.pypa.io/en/stable/) to install forfiles.\n\n```bash\npip install --upgrade forfiles\n```\n\n## Usage\n\n```python\nfrom forfiles import file, image\n\n# file tools\nfile.filter_type(\"C:/Users/example/Downloads/directory-to-filter/\", [\".png\", \".txt\", \"md\"])\nfile.dir_create(\"C:/Users/example/Downloads/directory-to-create/\")\nfile.dir_delete(\"C:/Users/example/Downloads/directory-to-delete/\")\n\n# image tools\nimage.scale(\"C:/Users/example/Downloads/boat.png\", 1, 1.5)\nimage.resize(\"C:/Users/example/Downloads/car.jpg\", 1000, 1000)\nimage.to_png(\"C:/Users/example/Downloads/plane.jpg\")\n\n# you can also operate whole directories\ndir_action(\"C:/Users/example/Downloads/cats/\", image.scale, 2, 2)\ndir_action(\"C:/Users/example/Downloads/giraffes/\", image.resize, 1000, 1000)\ndir_action(\"C:/Users/example/Downloads/tortoises/\", image.to_png)\n```\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2022 4MBL  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": "Useful tools for files",
    "version": "5.0.0",
    "project_urls": {
        "Bug Tracker": "https://github.com/4mbl/forfiles/issues",
        "Documentation": "https://github.com/4mbl/forfiles/blob/main/README.md",
        "Home": "https://github.com/4mbl/forfiles",
        "Repository": "https://github.com/4mbl/forfiles"
    },
    "split_keywords": [
        "directories",
        " files",
        " fs",
        " images",
        " utility"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bfb3da5340dd3e5b74b647b8a32c1338f9786e87031fa7202c070b59a5ead5d6",
                "md5": "63868d0b7fe81100fcec771112dba903",
                "sha256": "92ac5065850e672e1cd5542850d3521eeb3ee2a0c6b66a82abab4e7537c1e37d"
            },
            "downloads": -1,
            "filename": "forfiles-5.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "63868d0b7fe81100fcec771112dba903",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 5540,
            "upload_time": "2024-10-28T13:10:34",
            "upload_time_iso_8601": "2024-10-28T13:10:34.836466Z",
            "url": "https://files.pythonhosted.org/packages/bf/b3/da5340dd3e5b74b647b8a32c1338f9786e87031fa7202c070b59a5ead5d6/forfiles-5.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b8835340248f69f3ede414eeda3865bff9f9fb9d18e8f2f59f76e3be92bc9984",
                "md5": "ecb19e3a9e0543d948ad7cb3199370aa",
                "sha256": "6c6dd110205d605dbefe17960b1f51be2fff9f185c9b58a155113f5dd352f236"
            },
            "downloads": -1,
            "filename": "forfiles-5.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "ecb19e3a9e0543d948ad7cb3199370aa",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 5764,
            "upload_time": "2024-10-28T13:10:35",
            "upload_time_iso_8601": "2024-10-28T13:10:35.746523Z",
            "url": "https://files.pythonhosted.org/packages/b8/83/5340248f69f3ede414eeda3865bff9f9fb9d18e8f2f59f76e3be92bc9984/forfiles-5.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-28 13:10:35",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "4mbl",
    "github_project": "forfiles",
    "github_not_found": true,
    "lcname": "forfiles"
}
        
Elapsed time: 0.33522s