Skip to main content

Core utilities for managing blob storage operations with support for various cloud providers and local storage systems

Project description

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

pip install blob-storage-manager-core

Quick Start

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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

abs_blob_storage_manager_core-0.1.3.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

abs_blob_storage_manager_core-0.1.3-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file abs_blob_storage_manager_core-0.1.3.tar.gz.

File metadata

File hashes

Hashes for abs_blob_storage_manager_core-0.1.3.tar.gz
Algorithm Hash digest
SHA256 35c63308c0bbab9f316d1c9409ed13ad448f0ae69f7a92fb22970ff703d158be
MD5 7f9b87e276492b529650c9fe6c0c75ee
BLAKE2b-256 5f8b588f307f034c72ae39fb7a7ffe370c2845d6bc6f50ef06fcbe5f2dc6d4df

See more details on using hashes here.

File details

Details for the file abs_blob_storage_manager_core-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for abs_blob_storage_manager_core-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1793c984e84a4ace4ce27dd2406098b23c06e4738c7a7a70115bb49122c7adc4
MD5 1f5e0936dc192bf2b2ca2b2c7fd98dc2
BLAKE2b-256 d0b2ee0fbc4d5c09a059f8860a697f87e6c63e228d28b63dab69bcd8f8ab9098

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page