Skip to main content

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:

pip install sizecalculator

Usage

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

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:

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

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.

Metadata

Release files for sizecalculator 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sizecalculator 0.1
File Size Uploaded Provenance Actions
sizecalculator-0.1.tar.gz 2.4 kB Without provenance Details for sizecalculator-0.1.tar.gz

Release files / sizecalculator-0.1.tar.gz

Download URL sizecalculator-0.1.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
174eb6cac0fffb76127adc84996fe908c72a71968eb77c9b25e2be16cbfd7eed
BLAKE2b-256 checksum
How to use checksums
86e25d3c5c43dbb31b587108c6a9953fdbf398934b7167c828b7045511e18dd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Security for sizecalculator 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page