Skip to content

kennethd/automgtic

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

automgtic

automgtic is an automatic media uploader for GNU MediaGoblin.

Features

automgtic authenticates to the GNU MediaGoblin server via OAuth draft v2.25.

automgtic uses a local database where it stores:

  • An MD5 digest of an uploaded file to prevent multiple uploads of the same file due to filesystem changes.
  • The filename of the file when it was uploaded.
  • The metadata returned by the GNU MediaGoblin server when the file was posted.

Installation

To install automgtic, download the files or clone the repo, then cd to the directory containing the automgtic.ini file and run:

virtualenv .  # Create a new python virtualenv
. bin/activate  # Activate the virtualenv
python setup.py develop  # Fetch all the dependencies into your virtualenv
# !! - This is a single command split up on two lines
python -c "from automgtic.models import Base, engine
Base.metadata.create_all(engine)" # Create the DB tables

Usage

Once you have installed the dependencies, you need to have an OAuth client registered on the GNU MediaGoblin instance, you can register one at instance.example/oauth/client/register.

Once you have registered your OAuth client you need the client identifier in your config.

Warning

Before you start editing your config, do cp automgtic.ini automgtic_local.ini, this to separate the version-controlled automgtic.ini from your local settings.

When the client_id is set, run ./run.py --authorize, then follow the instructions provided. This will update your .ini with the access_token field and you will be ready to upload media with automgtic.

To upload media from a directory, simply run ./run.py --run <directory>.

About

Automatic upload client for GNU MediaGoblin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published