Skip to content

gisce/minio_backend

Repository files navigation

Minio Storage server

Minio Backend Tests

Store files into a Minio Server which is a Amazon S3 Open Source alternative.

Define binary columns

from osv import osv, fields
from minio_backend.fields import S3File

class ExampleObject(osv.osv):
    _name = 'example.object'
    _columns = {
        'name': fields.char('Name', size=64),
        'file': S3File('File', 'test')
    }

    
ExampleObject()

API

class S3File(string, bucket):

Azure Blob Storage

Azure Backend Tests

Store files into an Azure Blob Storage which is a highly scalable object storage solution from Microsoft.

Define binary columns

from osv import osv, fields
from azure_backend.fields import AzureBlobFile

class ExampleObject(osv.osv):
    _name = 'example.object'
    _columns = {
        'name': fields.char('Name', size=64),
        'file': AzureBlobFile('File', 'test')
    }

ExampleObject()

API

class AzureBlobFile(string, container_name)