Skip to main content

Tahoe-LAFS-based file synchronization

Project description

Magic Folder

This repository is provisional. It may move to a different organization.

Magic Folder for Tahoe-LAFS is a Free and Open file synchronization system. It detects local changes to files and uploads those changes to a Tahoe-LAFS grid. It monitors a Tahoe-LAFS grid and downloads changes to the local filesystem.

documentation status gha_linux gha_macos gha_windows test coverage percentage

Installing

for integrators

When packaging magic-folder, please install using our pinned requirements, which are tested in CI. This should be done in a virtualenv, or other isolated python environment, so as to not interfere with system or user python packages.

` git clone https://github.com/LeastAuthority/magic-folder cd magic-folder pip install --require-hashes -r requirements/base.txt pip install --no-deps . `

from source

To install from source (either so you can hack on it, or just to run pre-release code), you should create a virtualenv and install into that:

  • git clone https://github.com/LeastAuthority/magic-folder.git

  • cd magic-folder

  • virtualenv --python=python2.7 venv

  • venv/bin/pip install --upgrade setuptools

  • venv/bin/pip install --editable .

  • venv/bin/magic-folder --version

Usage

Magic-Folder is configured via the magic-folder command-line tool.

Magic-Folder configuration is kept in a directory. The default place for this directory is platform-dependant; on Linux it will be in ~/.config/magic-folder. Inside this directory is a database for global configuration and sub-directories to track state and temporary space for each actual magic-folder including a configuration database. All databases are SQLite.

A running Magic-Folder needs to have access to a Tahoe-LAFS client that it may use to perform operations in the Tahoe-LAFS Grid. This is referenced by the “node directory” of the Tahoe-LAFS client although actual operations are performed via the Tahoe-LAFS WebUI.

There are two ways to create a new Magic Folder instance (that is, the configuration required). Create a fresh one with magic-folder create or migrate from a Tahoe-LAFS 1.14.0 or earlier instance with magic-folder migrate.

Once a Magic-Folder is configured, functionality is provided by running a long-lived magic-folder daemon. This process is run using the magic-folder command line tool:

magic-folder --config <path to Magic Foler directory> run

As long as this process is running, whatever magic folders are configured will be functional. The process must be restarted to read configuration changes. All other interactions are via the HTTP API which listens on a local endpoint according to the configuration. Other magic-folder subcommands are typically just thin CLI wrappers around a particular HTTP endpoint.

Testing

To run the unit test suite:

  • tox

You can pass arguments to trial with an environment variable. For example, you can run the test suite on multiple cores to speed it up:

  • MAGIC_FOLDER_TRIAL_ARGS="-j4" tox

Documentation

Documentation is written as reStructuredText documents and processed using Sphinx; you will need sphinx and sphinx_rtd_theme. To generate HTML version of Magic Folder documents, do:

  • cd docs; make html

Resulting HTML files will be under docs/_build/html/.

License

Copyright 2006-2018 The Tahoe-LAFS Software Foundation Copyright 2020-2021 The Magic-Folder Developers

You may use this package under the GNU General Public License, version 2 or, at your option, any later version. You may use this package under the Transitive Grace Period Public Licence, version 1.0, or at your option, any later version. (You may choose to use this package under the terms of either licence, at your option.) See the file COPYING.GPL for the terms of the GNU General Public License, version 2. See the file COPYING.TGPPL for the terms of the Transitive Grace Period Public Licence, version 1.0.

See TGPPL.PDF for why the TGPPL exists, graphically illustrated on three slides.


Download files

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

Source Distribution

magic_folder-22.1.0.tar.gz (9.9 MB view details)

Uploaded Source

Built Distribution

magic_folder-22.1.0-py3-none-any.whl (227.3 kB view details)

Uploaded Python 3

File details

Details for the file magic_folder-22.1.0.tar.gz.

File metadata

  • Download URL: magic_folder-22.1.0.tar.gz
  • Upload date:
  • Size: 9.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2

File hashes

Hashes for magic_folder-22.1.0.tar.gz
Algorithm Hash digest
SHA256 1c33b2a86b698706f35bf922c1dcd8bd87b7b0aa0fd3d35738b3dcdae0a05e9d
MD5 cff3fcad664c03adfc8b2bc4d371d9f6
BLAKE2b-256 fc6ecce9cf8b0a75373243777f83fcb1126e9d6c27f8aceafb33c63ac224dd39

See more details on using hashes here.

File details

Details for the file magic_folder-22.1.0-py3-none-any.whl.

File metadata

  • Download URL: magic_folder-22.1.0-py3-none-any.whl
  • Upload date:
  • Size: 227.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2

File hashes

Hashes for magic_folder-22.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 99eaa0ad4378d7386b5af69fddf7e2922b62a98cc2deac38d22bf1549164969a
MD5 947ba1a26d4de4742a3854b95193c84c
BLAKE2b-256 d3ca11cf0ff98c1dc788df8fd54bb57b9b0a93e3ab432c0facf52bbe99ad4a46

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