Skip to main content

Open-source Dropbox client for macOS and Linux.

Project description

PyPi Release

Maestral

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

About

Maestral 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 no longer directly supported by Dropbox.

Currently, Maestral does not support Dropbox Paper, the management of Dropbox teams and the management of shared folder settings. If you need any of this functionality, please use the Dropbox website or the official client.

The focus on file syncing does come with advantages: the Maestral App on macOS is 80% smaller than the official Dropbox App (50 MB vs 290 MB) and uses 70% less memory. The app size and memory footprint can be further reduced when installing and running Maestral without a GUI and using the Python installation provided by your OS. The Maestral code itself and its Python dependencies take up less than 3 MB, making a headless install ideal for systems with tight resources.

Installation

A binary is provided for macOS Mojave and can be downloaded from the Releases tab. On other platforms, download and install the Python package from PyPI by running

$ python3 -m pip install --upgrade maestral

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

$ python3 -m 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).

If you clone and install the version from GitHub, you will need to provide your own Dropbox API keys as environment variables DROPBOX_API_KEY and DROPBOX_API_SECRET. You can get those keys here.

Usage

Run maestral gui in the command line (or open the Maestral app on macOS) to start Maestral with a graphical user interface. On its first run, Maestral will guide you through linking and configuring your Dropbox and will then start syncing.

screenshot macOS screenshot Fedora

Command line usage

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

Interactive usage (Python shell)

After installation, in a Python command prompt, run

>>> from maestral import Maestral
>>> m = Maestral()

On initial use, Maestral 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 include:

>>> 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 all 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 folder and lets you select which folders to sync.

maestral.gui contains all graphical user interfaces for Maestral.

Contribute

The following tasks could need your help:

  • Write tests for maestral.
  • 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 downloads of large folders and initial sync: Download zip files if possible.
  • Native Cocoa and GTK interfaces. Maestral currently uses PyQt5.
  • Packaging: improve packing for macOS (reduce app size) and package for other platforms.

Warning:

  • Maestral does not have production status yet, so only 500 accounts can use the API keys.
  • Maestral is still in beta status. Even through highly unlikely, using it may potentially result in loss of data.
  • Known issues:
    • 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

Acknowledgements

  • The config module uses code from the Spyder IDE.
  • The MaestralApiClient is based on the work from Orphilia.

Project details


Release history Release notifications | RSS feed

This version

0.2.5

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.5.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

maestral-0.2.5-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: maestral-0.2.5.tar.gz
  • Upload date:
  • Size: 1.5 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.5.tar.gz
Algorithm Hash digest
SHA256 1e7c3ae89c3380c4505677ad201ba38571261c3b9155da7a92114bcafb7e807c
MD5 2734e5ef0790c3153d2fd1029a0d920a
BLAKE2b-256 ff26952045f83704d31296f6ee2fbde115e2614fb54b4ba51410db861a0e843c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: maestral-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 1.6 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 00e2c02fbb560f1996543fcd22f569f7156955281d195ac5be015beaea371931
MD5 40abf3a4fbf81aa601e0031fe9c2f5ce
BLAKE2b-256 7c86c07442cd0439dc7e2741db9784ea185ac500461ef06f7c1b5c8cec94b3cb

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