sizecalculator


Namesizecalculator JSON
Version 0.1 PyPI version JSON
download
home_pagehttps://github.com/LpCodes/sizecalculator
SummaryA Python package for displaying file size
upload_time2024-01-22 08:31:06
maintainer
docs_urlNone
authorLpcodes
requires_python>=3.6
license
keywords file size calculator utility command-line filesize python
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Size Calculator

Size Calculator is a Python package that calculates the size of a file or folder and prints it in bytes, kilobytes, and megabytes.

## Installation

You can install the package using pip:

```bash
pip install sizecalculator
```

## Usage

Once installed, you can use the `sizecalculator` command from the command line:

```bash
sizecalculator /path/to/your/file_or_folder
```

Replace `/path/to/your/file_or_folder` with the actual path of the file or folder you want to analyze.

### Using `print_size` in Your Python Script

You can also use the `print_size` function in your Python scripts or projects. Here's an example:

```python
from sizecalculator import print_size

file_or_folder_path = "/path/to/your/file_or_folder"
print_size(file_or_folder_path)
```

Replace `/path/to/your/file_or_folder` with the actual path of the file or folder you want to analyze.

## Example

```bash
sizecalculator /path/to/your/file_or_folder
```

This will print the size of the specified file or folder in bytes, kilobytes, and megabytes.




The size information will be displayed in human-readable format, including bytes, kilobytes, and megabytes.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/LpCodes/sizecalculator",
    "name": "sizecalculator",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "file size calculator utility command-line filesize python",
    "author": "Lpcodes",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/86/e2/5d3c5c43dbb31b587108c6a9953fdbf398934b7167c828b7045511e18dd4/sizecalculator-0.1.tar.gz",
    "platform": null,
    "description": "# Size Calculator\r\n\r\nSize Calculator is a Python package that calculates the size of a file or folder and prints it in bytes, kilobytes, and megabytes.\r\n\r\n## Installation\r\n\r\nYou can install the package using pip:\r\n\r\n```bash\r\npip install sizecalculator\r\n```\r\n\r\n## Usage\r\n\r\nOnce installed, you can use the `sizecalculator` command from the command line:\r\n\r\n```bash\r\nsizecalculator /path/to/your/file_or_folder\r\n```\r\n\r\nReplace `/path/to/your/file_or_folder` with the actual path of the file or folder you want to analyze.\r\n\r\n### Using `print_size` in Your Python Script\r\n\r\nYou can also use the `print_size` function in your Python scripts or projects. Here's an example:\r\n\r\n```python\r\nfrom sizecalculator import print_size\r\n\r\nfile_or_folder_path = \"/path/to/your/file_or_folder\"\r\nprint_size(file_or_folder_path)\r\n```\r\n\r\nReplace `/path/to/your/file_or_folder` with the actual path of the file or folder you want to analyze.\r\n\r\n## Example\r\n\r\n```bash\r\nsizecalculator /path/to/your/file_or_folder\r\n```\r\n\r\nThis will print the size of the specified file or folder in bytes, kilobytes, and megabytes.\r\n\r\n\r\n\r\n\r\nThe size information will be displayed in human-readable format, including bytes, kilobytes, and megabytes.\r\n\r\n\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A Python package for displaying file size",
    "version": "0.1",
    "project_urls": {
        "Bug Tracker": "https://github.com/LpCodes/sizecalculator/issues",
        "Homepage": "https://github.com/LpCodes/sizecalculator",
        "Source Code": "https://github.com/LpCodes/sizecalculator"
    },
    "split_keywords": [
        "file",
        "size",
        "calculator",
        "utility",
        "command-line",
        "filesize",
        "python"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "86e25d3c5c43dbb31b587108c6a9953fdbf398934b7167c828b7045511e18dd4",
                "md5": "2b69f3b926b6a0d6098a62e2fea2782d",
                "sha256": "174eb6cac0fffb76127adc84996fe908c72a71968eb77c9b25e2be16cbfd7eed"
            },
            "downloads": -1,
            "filename": "sizecalculator-0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "2b69f3b926b6a0d6098a62e2fea2782d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 2430,
            "upload_time": "2024-01-22T08:31:06",
            "upload_time_iso_8601": "2024-01-22T08:31:06.557017Z",
            "url": "https://files.pythonhosted.org/packages/86/e2/5d3c5c43dbb31b587108c6a9953fdbf398934b7167c828b7045511e18dd4/sizecalculator-0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-22 08:31:06",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "LpCodes",
    "github_project": "sizecalculator",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "sizecalculator"
}
        
Elapsed time: 0.21624s