Skip to content

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

Notifications You must be signed in to change notification settings

LpCodes/sizecalculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Url : https://pypi.org/project/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.

Contributing

If you would like to contribute to this project, I welcome your input! Feel free to submit pull requests for bug fixes, feature additions, or any improvements you think would benefit the project.

Improving Documentation

If you notice areas of the documentation that can be enhanced or rewritten for better clarity, I encourage you to:

  1. Fork the repository.
  2. Create a new branch for your changes: git checkout -b improve-documentation.
  3. Make your changes and commit them: git commit -m 'Improve documentation'.
  4. Push to the branch: git push origin improve-documentation.
  5. Open a pull request and describe the changes you've made.

Suggestions for Improvement

If you have suggestions for the README or any other part of the project, but you're not sure how to implement them, you can also open an issue to discuss your ideas.

I appreciate your contributions and efforts to make this better!

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published