Skip to main content

Open-source Dropbox client for macOS and Linux.

Project description

Meastral

A light-weight and open-source Dropbox client for macOS and Linux.

About

Meastral is an open-source Dropbox client written in Python. The project's main goal is to provide a client for platforms and file systems that are not directly supported by Dropbox. Meastral uses the Python SDK for the Dropbox API v2.

Currently, Maestral does not support Dropbox Paper, the management of shared folder / file settings or the management of Dropbox teams. If you need any of this functionality, you must use the Dropbox website.

Installation

Download and install the Python package by running

$ pip install --upgrade git+https://github.com/SamSchott/maestral

in the command line. If you intend to use the graphical user interface, you also need to install PyQt5. It is recommended to install PyQt5 through your distribution's package manager (e.g, yum, dnf, apt-get, homebrew). Alternatively, you can also install PyQt5 from PyPI:

$ pip install --upgrade PyQt5

However, in this case the interface style may not follow your selected system appearance (e.g., "dark mode" on macOS or "Adwaita-dark" on Gnome).

Usage

Run meastral gui in the command line to start Meastral with a graphical user interface. On its first run, Meastral will guide you through linking and configuring your Dropbox and will then start syncing. The user interface is based on a status bar icon which shows the current syncing status and a preference pane for configuration.

Command line usage

After installation, Meastral will be available as a command line script by typing meastral in the command prompt. Command line functionality resembles that of the interactive client. Type meastral --help to get a full list of available commands. Invoking meastral sync will configure Meastral on first run and then automatically start syncing.

Interactive usage (Python shell)

After installation, in a Python command prompt, run

>>> from meastral import Meastral
>>> m = Meastral()

On initial use, Meastral will ask you to link your Dropbox account, give the location of your Dropbox folder on the local drive, and to specify excluded folders. It will then start syncing. Supported commands are:

>>> m.pause_sync()  # pause syncing
>>> m.resume_sync()  # resume syncing

>>> path = '/Folder/On/Dropbox'  # path relative to Dropbox folder
>>> m.exclude_folder(path)  # exclude Dropbox folder from sync, delete locally
>>> m.include_folder(path)  # include Dropbox folder in sync, download its contents

>>> m.set_dropbox_directory('~/Dropbox')  # give path for local Dropbox folder
>>> m.unlink()  # unlinks your Dropbox account but keeps are your files

Structure

maestral.client handles all the interaction with the Dropbox API such as authentication, uploading and downloading files and folders, getting metadata and listing folder contents.

maestral.monitor handles the actual syncing. It monitors the local Dropbox folders and the remote Dropbox for changes and applies them using the interface provided by maestral.client.

maestral.main provides the main programmatic user interface. It links your Dropbox account and sets up your local, lets you select which folders to sync and can pause and resume syncing.

maestral.gui contains all graphical user interfaces for Maestral.

Contribute

The following tasks could need your help:

  • Test robustness if internet connection is slow or lost, maestral process is killed during sync, user is logged out during sync, etc.
  • More efficient and robust tracking of local revisions. Possibly using xattr, even though this would limit file system compatibility.
  • Better handling of network errors.
  • Better handling of certain API errors.
  • Detect and warn in case of unsupported Dropbox folder locations (network drives, external hard drives, etc) and when the Dropbox folder is deleted by the user.
  • Speed up download of large folders and initial sync: Download zip files if possible.
  • Native Cocoa and GTK interfaces. Maestral currently uses PyQt5.

Warning:

  • Meastral does not have production status yet, so only 500 accounts can use the API keys.
  • Meastral is still in beta status. Even through highly unlikely, using it may potentially result in loss of data.
  • Known issues:
    • File and folder names with two periods are currently not supported. This prevents syncing of temporary files which are created during the save process on some file systems.
    • Network drives and some external hard drives are not supported as locations for the Dropbox folder.

Dependencies

System:

Python:

  • click
  • dropbox
  • watchdog
  • blinker
  • requests
  • u-msgpack-python

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

maestral-0.2.0.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

maestral-0.2.0-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

Details for the file maestral-0.2.0.tar.gz.

File metadata

  • Download URL: maestral-0.2.0.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

File hashes

Hashes for maestral-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8397cb1726eed73113c915f5410c33513436d6d6f3514f556ca36074f8d44e54
MD5 0780582899a3e55f42b79eb4695d3f91
BLAKE2b-256 9e5109e1d1d875ee3873b6b22ed14999f4b35b8b3e4c30fc54d9bb56623be1ef

See more details on using hashes here.

File details

Details for the file maestral-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: maestral-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

File hashes

Hashes for maestral-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 61662d0f9e0274548fd8db78b2b0776df1241cf4619df37f0d41c2ac1608e7d8
MD5 2323ca55dd755188d89e400a94b5cec5
BLAKE2b-256 1635b8c01f83545f7a24303687a6e0e66a1b4ab8eff4ee0807597a3564cf9bb0

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