Metadata-Version: 2.1
Name: bloboluni
Version: 2.0.0
Summary: A simple package for storing and retrieving blobs of data from Azure Blob Storage
Project-URL: Homepage, https://github.com/MartinMoan/blobstorage
Project-URL: Bug Tracker, https://github.com/MartinMoan/blobstorage/issues
Author-email: Martin Moan <martin.moan1@gmail.com>
License: Copyright (c) 2023 Martin Hoff Moan
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.7
Requires-Dist: azure-identity>=1
Requires-Dist: azure-storage-blob>=1
Requires-Dist: python-dotenv>=1
Requires-Dist: requests>2
Description-Content-Type: text/markdown

# bloboluni: Azure blob storage wrapper
`bloboluni` is a simple python module for interacting with Azure blob storage.

## Installation
````
pip install bloboluni
````

## Usage
````python
from bloboluni import BlobStorage
from mymodels import Person, Profession

if __name__ == "__main__":
    alex = Person("Alex", 27, Profession("Developer", "A developer"))

    # Create a storage client
    storage = BlobStorage(connectionstring="...", container="mycontainer")

    # Store some data
    storage.upsert(key="Alex", alex)

    # Read some data
    sam = storage.get(key="Sam") # Returns instance of Person or None

    # Delete some data
    storage.delete(key="Sam")
````

`bloboluni` provides storage clients using several different serialization implementations. 
Currently, these are:
- `BlobStorage`
- `JsonBlobStorage` 
- `JsonPickleBlobStorage`