Skip to main content

Open-source Dropbox client for macOS and Linux.

Reason this release was yanked:

dependency version was yanked

Project description

PyPi Release Pyversions Documentation Status codecov

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.

Maestral currently 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. Maestral does support syncing multiple Dropbox accounts and excluding local files from sync with a ".mignore" file.

The focus on "simple" file syncing does come with advantages: on macOS, the Maestral App bundle is significantly smaller than the official Dropbox app (20 MB vs 290 MB) and uses much less memory (100 MB vs 800 MB for a medium sized Dropbox on macOS). The memory usage will depend on the size of your synced Dropbox folder and can be further reduced when running Maestral without a GUI.

Maestral uses the public Dropbox API which, unlike the official client, does not support transferring only those parts of a file which changed ("binary diff"). Maestral may therefore use more bandwidth that the official client. However, it will avoid uploading or downloading a file if it already exists with the same content locally or in the cloud.

Warning

  • Never sync a folder with both the official Dropbox client and Maestral at the same time.
  • Network drives and some external hard drives are not supported as locations for the Dropbox folder.

Installation

An app bundle is provided for macOS High Sierra and higher and can be downloaded from the Releases tab. On other platforms, please download and install the Python package from PyPI:

$ python3 -m pip install --upgrade maestral

If you intend to use the graphical user interface, you also need to specify the GUI option during installation or upgrade. This will install the maestral-qt frontend and PyQt5 on Linux and maestral-cocoa on macOS:

$ python3 -m pip install --upgrade maestral[gui]

More detailed installation instructions are given in the Wiki.

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. Type maestral --help to get a full list of available commands. The most important are:

  • maestral gui: Starts the Maestral GUI. Creates a sync daemon if not already running.
  • maestral start|stop: Starts or stops the Maestral sync daemon.
  • maestral pause|resume: Pauses or resumes syncing.
  • maestral autostart -Y|-N: Sets the daemon to start on log in.
  • maestral status: Gets the current status of Maestral.
  • maestral file-status LOCAL_PATH: Gets the sync status of an individual file or folder.
  • maestral excluded add|remove|list: Command group to manage excluded folders.
  • maestral ls DROPBOX_PATH: Lists the contents of a directory on Dropbox.
  • maestral notify snooze N: Snoozes desktop notifications for N minutes.

Maestral supports syncing multiple Dropbox accounts by running multiple instances with different configuration files. This needs to be configured from the command line by passing the option --config-name to maestral start or maestral gui. Maestral will then select an existing config with the given name or create a new one. For example:

$ maestral start --config-name="personal"
$ maestral start --config-name="work"

This will start two instances of Maestral, syncing a private and a work account, respectively. Configs will be automatically cleared when unlinking an account and you can list all currently linked accounts with maestral configs:

$ maestral configs

Config name  Account
personal     user@gmail.com
work         user@mycorp.org

By default, the Dropbox folder names will contain the capitalised config-name in braces. In the above case, this will be "Dropbox (Personal)" and "Dropbox (Work)".

Docker usage

The Docker image is available for x86, arm/v7 (32bit) and arm64 platforms. You can do everything that you supposed to do in the command line, except running the GUI.

For the first run, get access to the shell within the Docker container

$ docker run -it -v /mnt/dropbox:/dropbox maestraldbx/maestral:latest ash

where /mnt/dropbox is the directory that which contains the Dropbox directory. Maestral runs with UID 1000, make sure that the user owns /mnt/dropbox and the contents within (chown -R 1000 /mnt/dropbox).

Later, if you want just a maestral start, just execute

$ docker run \
  -d \
  --name maestral \
  --rm \
  -v /mnt/dropbox:/dropbox \
  maestraldbx/maestral:latest
  • To step into the Maestral container: docker exec -it maestral ash
  • List the logs of the container: docker logs maestral
  • Get the build info of a running container: docker inspect maestral | jq ".[].Config.Labels"

Contribute

There are multiple topics that could use your help. Some of them are easy, such as adding new CLI commands, others require more experience, such as packaging for non-macOS platforms. Look out for issues marked with "good first issue" or "help wanted". Pull requests should be made against the develop branch.

Relevant resources are:

CONTRIBUTING.md contains detailed information on the expected code style and test format.

If you are using the macOS app bundle, please consider sponsoring the project with £1 per month to offset the cost of an Apple Developer account to sign and notarize the bundle.

System requirements

Acknowledgements

  • The config module uses code from the Spyder IDE
  • The DropboxClient is inspired by work from Orphilia
  • Error reporting is powered by bugsnag.

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-1.3.2.tar.gz (265.5 kB view details)

Uploaded Source

Built Distribution

maestral-1.3.2-py3-none-any.whl (410.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: maestral-1.3.2.tar.gz
  • Upload date:
  • Size: 265.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for maestral-1.3.2.tar.gz
Algorithm Hash digest
SHA256 34b4ae65c20dfc9427b004636419150b47b5fa352e66b2a99671d2d35ef97420
MD5 40118af6c20da0fee92bc43cbc02e804
BLAKE2b-256 0904c530097b8dc6e04922912c02978534d23183d96a5606b82b9d6f7f05c429

See more details on using hashes here.

File details

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

File metadata

  • Download URL: maestral-1.3.2-py3-none-any.whl
  • Upload date:
  • Size: 410.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for maestral-1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e1bf35bca4b53cf9825310acb9dc55f8ead4e178f7e719992c998bd90310f6de
MD5 9acfcf3677fe7f94858a04bd7c615e09
BLAKE2b-256 0ce9328d98a512ad5ac713f472b94eda02ab51427928050ffb28c5c24cd9dac2

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