Skip to content
forked from fwenzel/upshot

An automatic screen shot uploader for OS X, written in Python.

License

Notifications You must be signed in to change notification settings

mikeknoop/upshot

 
 

Repository files navigation

UpShot

About this Fork

This fork removes the Dropbox dependencies all-together and replaces it with a custom URL upload feature. Read below for details.

This fork also includes a .app binary distributed with the repo. You can simply install the file "UpShot.app" into your Applications folder.

The custom URL is intended to be used in conjunction with a server you own, which does the following:

  1. Receive a POST request as application/json
  2. Store the passed Base64-encoded image. It will be POSTed as {'image': base64(...)}
  3. Return a publicly accessible URL where the image can be found, as application/json, like this: {'link': 'http://example.com/.../5Eb3.png'}

The rest of this readme pertains to the original UpShot documentation.

UpShot is an automatic screen shot uploader for OS X, written in Python.

For sharing, UpShot uses Dropbox's Public folder, giving you maximum control over what you share.

For more information and to download UpShot, visit the UpShot website. If you want to contribute to UpShot or check out its source code, read on.

Features

The basic workflow is this:

  • UpShot listens to a new screenshot being created with OS X's default screenshot function.
  • It moves that screenshot to your public Dropbox folder.
  • It copies that public Dropbox URL to your clipboard.

Other features currently include:

  • Custom domain name support
  • randomized filenames

Contributing

UpShot is an open source project. Issues / pull requests, feedback, feature requests, …, are greatly appreciated!

Compiling it

UpShot uses a fabric script for build and maintenance tasks:

  1. Create a virtualenv.
  2. pip install -r requirements.txt
  3. fab build

This will build an app package in the directory dist. You can execute it from there. If you want to see console output, start it via fab run instead.

Note: Your virtualenv might not contain libpython2.x.dylib and thus cause an error. You can simply cd $VIRTUAL_ENV and ln -s /path/to/libpython2.x.dylib as a workaround.

Configuration

The latest version has a configuration screen, but not everything is configurable yet. For a full list, check out upshot.py for constants. You can override all those in a (new) file settings_local.py.

Acknowledgments

Thanks to:

  • David Vignoni for his upload icon.
  • Jason Costello for Slate, the website theme that upshot.it uses.

License

UpShot is released under a BSD license. Read the file LICENSE for more information.


Copyright (c) 2012 Fred Wenzel.

About

An automatic screen shot uploader for OS X, written in Python.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 72.0%
  • C 14.9%
  • Objective-C 13.0%
  • Shell 0.1%