Metadata-Version: 2.3
Name: abs-blob-storage-manager-core
Version: 0.2.4
Summary: Core utilities for managing blob storage operations with support for various cloud providers and local storage systems
License: MIT
Author: AutoBridgeSystems
Author-email: info@autobridgesystems.com
Requires-Python: >=3.12,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: abs-nosql-repository-core (>=0.10.3,<0.11.0)
Requires-Dist: azure-storage-blob (>=12.25.1,<13.0.0)
Requires-Dist: fastapi (>=0.95.0,<2.0.0)
Requires-Dist: pydantic (>=2.0.0,<3.0.0)
Description-Content-Type: text/markdown

# Blob Storage Manager Core

A flexible and extensible core library for managing blob storage operations across various cloud providers and local storage systems.

## Features

- Unified interface for blob storage operations
- Support for multiple cloud providers
- Local storage system support
- Asynchronous operations
- Type-safe operations with Pydantic models
- FastAPI integration

## Installation

```bash
pip install blob-storage-manager-core
```

## Quick Start

```python
from blob_storage_manager_core import BlobStorageManager

# Initialize with your preferred storage provider
storage_manager = BlobStorageManager(
    provider="local",  # or "aws", "azure", "gcp"
    config={
        "base_path": "/path/to/storage"  # Provider-specific configuration
    }
)

# Upload a file
async def upload_file():
    with open("example.txt", "rb") as f:
        await storage_manager.upload(
            file=f,
            destination="path/to/upload/example.txt"
        )

# Download a file
async def download_file():
    file_content = await storage_manager.download(
        source="path/to/download/example.txt"
    )
    with open("downloaded.txt", "wb") as f:
        f.write(file_content)
```

## Supported Providers

- Azure Blob Storage

## Configuration

### Azure Blob Storage
```python
config = {
    "connection_string": "your_connection_string",
    "container_name": "your-container"
}
```

## API Reference

### Core Methods

- `upload(file: BinaryIO, destination: str)`: Upload a file to storage
- `download(source: str)`: Download a file from storage
- `delete(path: str)`: Delete a file from storage
- `list_files(prefix: str)`: List files in storage
- `get_file_info(path: str)`: Get metadata for a file

## Contributing

1. Fork the repository
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
3. Commit your changes (`git commit -m 'Add some amazing feature'`)
4. Push to the branch (`git push origin feature/amazing-feature`)
5. Open a Pull Request

## License

This project is licensed under the MIT License - see the LICENSE file for details.

## Support

For support, email info@autobridgesystems.com or open an issue in the repository.

