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 storagedownload(source: str): Download a file from storagedelete(path: str): Delete a file from storagelist_files(prefix: str): List files in storageget_file_info(path: str): Get metadata for a file
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file abs_blob_storage_manager_core-0.1.8.tar.gz.
File metadata
- Download URL: abs_blob_storage_manager_core-0.1.8.tar.gz
- Upload date:
- Size: 19.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.13.3 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26097a960bc717b7aa334dbc932b3e49b95899faa8f5d99aea5844ef5154ef2f
|
|
| MD5 |
c38c4948761dd251538615af0cc95aaf
|
|
| BLAKE2b-256 |
f6dc11e5204c44fe26139aa522734b5672c4928bfc4742829b934d37cc61a2c0
|
File details
Details for the file abs_blob_storage_manager_core-0.1.8-py3-none-any.whl.
File metadata
- Download URL: abs_blob_storage_manager_core-0.1.8-py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.13.3 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9af8bfe48c63b77b0fb8b9ec672e7a40f37177fc5fb7a1f46394c2ed94a27f69
|
|
| MD5 |
47b86b20e890e49946191a14282daf51
|
|
| BLAKE2b-256 |
40690487a393a7da735a1e495b1b6ee4b32935e22f79fc4af6965e17992793c1
|