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.

Source Distribution

mediaman-0.0.1.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

mediaman-0.0.1-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

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