Skip to main content

Pyfilesystem interface for rclone remotes.

Project description

Access rclone from a pyfilesystem interface

I needed this.

version = 0.3.0

Status

Implemented:

  • getinfo()
  • listdir()
  • isdir()

About

This gives you a pyfilesystem object with an rclone remote for a backend. So any backend you can use with rclone, you can use with pyfilesystem.

Internally it uses another project, rclone-python as middleware to rclone. If you don't need a pyfilesystem interface but you want to work with rclone via python, you should check out rclone-python.

Dependencies

Automatically installed: rclone-python

This handy tool controls rclone from python.

pypi.org/project/rclone-python/

github.com/Johannes11833/rclone_python

Manually installed: rclone v1.67.0

This is rclone. Control a wide variety of cloud storage with this puppy.

github.com/rclone/rclone Install rclone on your own.

version_used_by_this_project = rclone-v1.67.0-linux-amd64

Automatically installed: pyfilesystem 2.4.12

The Mac-Daddy of all file system abstractions -- besides rclone -- and besides FUSE. But absolutely one of the number ones.

Installed automagically with fs-rclone if'n y'all don't already have it.

Tools

Added a makepy tool in the tools directory which extracts the second cell from a jupyter notebook and saves a python file.

from makepy import makepy
makepy('rclonefs','opener')

It takes one or more filenames from the working directory -- without the .ipynb extension -- and exports the 2nd cell to a python file with the same base name.

(Not packaged with the pip distro. Find it in the git repo.)

Changelog

0.3.0 Add getinfo(), listdir(), isdir(). Add makepy tool. Add Devnotes.ipynb.

0.2.0 Fix project name for pyfilesystem style. Add src RcloneFS.ipynb and opener.ipynb.

0.1.2 Update README

0.1.0 Add dependencies to pyproject.toml. Add SoftBOM (software bill of materials). Delete test code.

0.0.1 fix bug in example::add_one

0.0.0 configure package files

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

fs_rclonefs-0.3.0.tar.gz (11.5 kB view hashes)

Uploaded Source

Built Distribution

fs_rclonefs-0.3.0-py3-none-any.whl (11.4 kB view hashes)

Uploaded Python 3

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