Skip to content

Getting Started

Welcome to Bytesize! This section will help you quickly get up to speed with this powerful storage unit library.

🎯 Learning Path

Follow this sequence to master Bytesize core features in 30 minutes:

graph LR
    A[Installation] --> B[Quick Start]
    B --> C[Basic Concepts]
    C --> D[User Guide]
    D --> E[Advanced Features]

    style A fill:#e8f5e8
    style B fill:#e3f2fd
    style C fill:#fff3e0
    style D fill:#f3e5f5
    style E fill:#fce4ec

📋 Prerequisites

  • Python 3.9 or higher
  • Basic Python programming knowledge
  • Understanding of storage unit concepts (KB, MB, GB, etc.)

🚀 Quick Start Steps

1. Install Bytesize

Choose your preferred installation method:

pip install bytesize
uv add bytesize
poetry add bytesize

2. Verify Installation

from bytesize import Storage, StorageUnit
print("Bytesize installed successfully!")

3. First Example

# Create a 1GB storage object
storage = Storage(1, StorageUnit.GB)
print(f"Storage size: {storage}")  # Output: Storage size: 1.0 GB

# Convert to other units
print(f"Convert to MB: {storage.convert_to_mb()}")  # Output: Convert to MB: 1000.0 MB

📖 What's Next?

  • Quick Start

    5-minute tutorial to quickly learn core features

  • Basic Concepts

    Understand storage units and Bytesize design philosophy

  • User Guide

    Deep dive into all features and functionality

  • Examples

    Real-world scenarios and best practices

💡 Tips

Learning Recommendations

  • Start with Quick Start to quickly experience Bytesize's main features
  • If you're new to storage unit concepts, read Basic Concepts first
  • When facing issues, check the Examples for similar use cases

Version Compatibility

Bytesize supports Python 3.9+. We recommend using the latest stable version for optimal performance.

🤝 Need Help?

If you encounter problems during usage: