myfilesize


Namemyfilesize JSON
Version 1.0.0 PyPI version JSON
download
home_pagehttps://github.com/Bytebreach/myfilesize
SummaryA package to find small and large files in a directory
upload_time2024-07-18 11:08:14
maintainerNone
docs_urlNone
authorMrFidal
requires_python>=3.6
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # myfilesize

`myfilesize` is a Python package designed to help you easily find small and large files within a directory structure.

## Installation

You can install the package using pip:

```bash
pip install myfilesize
```

## Usage

### Finding Small Files

```python
from myfilesize import find_small_files

directory_to_search = "/path/to/directory"
small_file_max_size_in_bytes = 1024  # Files smaller than 1KB
small_files = find_small_files(directory_to_search, small_file_max_size_in_bytes)

print("Small files:")
for file in small_files:
    print(file)
```

### Finding Large Files

```python
from myfilesize import find_large_files

directory_to_search = "/path/to/directory"
large_file_min_size_in_bytes = 10485760  # Files larger than 10MB
large_files = find_large_files(directory_to_search, large_file_min_size_in_bytes)

print("Large files:")
for file in large_files:
    print(file)
```

## Benefits

- **Simplicity**: Easily find files based on size criteria with straightforward functions.
- **Efficiency**: Quickly navigate through directories to locate files that meet your size requirements.
- **Integration**: Seamless integration into your Python projects for file management tasks.

## Contributing

Contributions are welcome! For major changes, please open an issue first to discuss what you would like to change.

## License

This project is licensed under the [MIT License](https://choosealicense.com/licenses/mit/).

---

Thank you for using `myfilesize`! If you find this package helpful, consider starring the repository on [GitHub](https://github.com/ByteBreach/myfilesize). Your support is greatly appreciated!

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Bytebreach/myfilesize",
    "name": "myfilesize",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "MrFidal",
    "author_email": "mrfidal@proton.me",
    "download_url": "https://files.pythonhosted.org/packages/06/50/df7c9e0d5057c9be1a040d95b9868e447ac354dc0f15214f8ffa4e1d2cb9/myfilesize-1.0.0.tar.gz",
    "platform": null,
    "description": "# myfilesize\r\n\r\n`myfilesize` is a Python package designed to help you easily find small and large files within a directory structure.\r\n\r\n## Installation\r\n\r\nYou can install the package using pip:\r\n\r\n```bash\r\npip install myfilesize\r\n```\r\n\r\n## Usage\r\n\r\n### Finding Small Files\r\n\r\n```python\r\nfrom myfilesize import find_small_files\r\n\r\ndirectory_to_search = \"/path/to/directory\"\r\nsmall_file_max_size_in_bytes = 1024  # Files smaller than 1KB\r\nsmall_files = find_small_files(directory_to_search, small_file_max_size_in_bytes)\r\n\r\nprint(\"Small files:\")\r\nfor file in small_files:\r\n    print(file)\r\n```\r\n\r\n### Finding Large Files\r\n\r\n```python\r\nfrom myfilesize import find_large_files\r\n\r\ndirectory_to_search = \"/path/to/directory\"\r\nlarge_file_min_size_in_bytes = 10485760  # Files larger than 10MB\r\nlarge_files = find_large_files(directory_to_search, large_file_min_size_in_bytes)\r\n\r\nprint(\"Large files:\")\r\nfor file in large_files:\r\n    print(file)\r\n```\r\n\r\n## Benefits\r\n\r\n- **Simplicity**: Easily find files based on size criteria with straightforward functions.\r\n- **Efficiency**: Quickly navigate through directories to locate files that meet your size requirements.\r\n- **Integration**: Seamless integration into your Python projects for file management tasks.\r\n\r\n## Contributing\r\n\r\nContributions are welcome! For major changes, please open an issue first to discuss what you would like to change.\r\n\r\n## License\r\n\r\nThis project is licensed under the [MIT License](https://choosealicense.com/licenses/mit/).\r\n\r\n---\r\n\r\nThank you for using `myfilesize`! If you find this package helpful, consider starring the repository on [GitHub](https://github.com/ByteBreach/myfilesize). Your support is greatly appreciated!\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A package to find small and large files in a directory",
    "version": "1.0.0",
    "project_urls": {
        "Homepage": "https://github.com/Bytebreach/myfilesize"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ebeabc735a23d005d8c0db99a79663d293d816c763d432b516b093113be81524",
                "md5": "9afca48046f97a494996be8e00485c33",
                "sha256": "786130d230dbc84dfa86f28e25f8806c72f064ff8e7a63e2404cb791471b0d1d"
            },
            "downloads": -1,
            "filename": "myfilesize-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9afca48046f97a494996be8e00485c33",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 3341,
            "upload_time": "2024-07-18T11:08:13",
            "upload_time_iso_8601": "2024-07-18T11:08:13.144760Z",
            "url": "https://files.pythonhosted.org/packages/eb/ea/bc735a23d005d8c0db99a79663d293d816c763d432b516b093113be81524/myfilesize-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0650df7c9e0d5057c9be1a040d95b9868e447ac354dc0f15214f8ffa4e1d2cb9",
                "md5": "3a47fb6d97e2c791ff8ab58ba1b2441a",
                "sha256": "ece0fdf0f187f165a982db8a022b55da8035b92e2dc30432f0e699704f853788"
            },
            "downloads": -1,
            "filename": "myfilesize-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "3a47fb6d97e2c791ff8ab58ba1b2441a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 3002,
            "upload_time": "2024-07-18T11:08:14",
            "upload_time_iso_8601": "2024-07-18T11:08:14.691970Z",
            "url": "https://files.pythonhosted.org/packages/06/50/df7c9e0d5057c9be1a040d95b9868e447ac354dc0f15214f8ffa4e1d2cb9/myfilesize-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-18 11:08:14",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Bytebreach",
    "github_project": "myfilesize",
    "github_not_found": true,
    "lcname": "myfilesize"
}
        
Elapsed time: 0.31113s