Skip to main content

MediaMan backs up arbitrary media files to arbitrary cloud services!

Project description

MediaMan

MediaMan is a set of tools to manage the backing up of arbitrary media files to various cloud services for long-term storage and occasional retrieval.

It places a heavy emphasis on confidentiality, simple storage and retrieval (including bulk operations), heavy indexing, and user experience.

Installation

TBD

Try it out

TBD

Usage

TBD

License

TBD

Personal Setup Guide

pip:
$ pip3 install google-api-python-client
$ pip3 install oauth2client

bash:
$ GOOGLE_APPLICATION_CREDENTIALS="/Users/matthewcotton/Repos/MyRepos/MediaMan/mediaman/drive/credentials/serviceaccount/xxx.json" p


python:
>>> from apiclient.discovery import build
>>> drive = build("drive", "v3")
>>> drive.files().list().execute()
{'files': [{'id': '...',
            'kind': 'drive#file',
            'mimeType': 'application/pdf',
            'name': 'Getting started'}],
 'incompleteSearch': False,
 'kind': 'drive#fileList'}

>>> file_metadata = {'name': 'test.txt'}
>>> media = googleapiclient.http.MediaFileUpload("test.txt")
>>> file_receipt = drive.files().create(body=file_metadata, media_body=media, fields="id").execute()
>>> file_receipt
{'id': '...'}

>>> drive.files().list().execute()
{'files': [{'id': '...',
            'kind': 'drive#file',
            'mimeType': 'text/plain',
            'name': 'test.txt'},
           {'id': '...',
            'kind': 'drive#file',
            'mimeType': 'application/pdf',
            'name': 'Getting started'}],
 'incompleteSearch': False,
 'kind': 'drive#fileList'}

Project details


Download files

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

Files for mediaman, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size mediaman-0.0.1-py3-none-any.whl (4.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size mediaman-0.0.1.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page