Skip to main content

Share application state across computers using Dropbox.

Project description

Overview

This program lets you synchronize application data using Dropbox.

It automatically starts and stops programs that would otherwise fight over data in a shared folder and ensures only one instance is running. Many applications work fine when their data is stored in Dropbox, but some programs overwrite databases:

  • iTunes
  • iPhoto
  • etc.

while others periodically write snapshot data:

  • Eclipse
  • Xcode
  • etc.

and some just don't make sense to keep running on all your computers:

  • Slack
  • HipChat
  • etc.

Build Status Coverage Status PyPI Version PyPI Downloads

Setup

Requirements

  • Python 3.10+

Installation

Install mine with pipx (or pip):

$ pipx install mine

or directly from the source code:

$ git clone https://github.com/jacebrowning/mine.git
$ cd mine
$ python setup.py install

Configuration

Create a mine.yml in your Dropbox:

config:
  computers:
    - name: My iMac
      hostname: My-iMac.local
      address: 00:11:22:33:44:55
    - name: My MacBook Air
      hostname: My-MacBook-Air.local
      address: AA:BB:CC:DD:EE:FF
  applications:
    - name: iTunes
      properties:
        auto_queue: false
        single_instance: true
      versions:
        mac: iTunes.app
        windows: iTunes.exe
        linux: null
    - name: Slack
      properties:
        auto_queue: true
        single_instance: false
      versions:
        mac: Slack.app
        windows: null
        linux: null

Include the applications you would like mine to manage. Computers are added automatically when mine is run.

The versions dictionary identifies the name of the executable on each platform. The properties.auto_queue setting indicates mine should attempt to launch the application automatically when switching computers. The properties.single_instance setting indicates the application must be closed on other computers before another instance can start.

Usage

To synchronize the current computer's state:

$ mine

To close applications on remote computers and start them locally:

$ mine switch

To close applications running locally:

$ mine close

To close applications locally and start them on another computer:

$ mine switch <name>

To delete conflicted files in your Dropbox:

$ mine clean

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

mine-4.2.3.tar.gz (20.6 kB view details)

Uploaded Source

Built Distribution

mine-4.2.3-py3-none-any.whl (26.8 kB view details)

Uploaded Python 3

File details

Details for the file mine-4.2.3.tar.gz.

File metadata

  • Download URL: mine-4.2.3.tar.gz
  • Upload date:
  • Size: 20.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.6 Darwin/23.0.0

File hashes

Hashes for mine-4.2.3.tar.gz
Algorithm Hash digest
SHA256 719f79def5dff29011d623539f93f31c04101b98b8287deab155e98cef51395d
MD5 1829f001352c5eaceecd18066186d4c7
BLAKE2b-256 80490133092ac45c9e7a48020e08b86e12cb22ec542080f8fa7c5c529207964a

See more details on using hashes here.

File details

Details for the file mine-4.2.3-py3-none-any.whl.

File metadata

  • Download URL: mine-4.2.3-py3-none-any.whl
  • Upload date:
  • Size: 26.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.6 Darwin/23.0.0

File hashes

Hashes for mine-4.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 96361fb90ed47ffc48973e2089b1383e7a62ce50868008d9b6e42036593d6a3c
MD5 caf8e45d514a4e6426d91d1bdc7c524d
BLAKE2b-256 2fa5baf93ce774a78c9f75bc617537458ed7953e945f4d6ca5723b55f82938bb

See more details on using hashes here.

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