REST API FUSE filesystem experiment
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
images Try to add screenshot Aug 6, 2017
README.md Try to add screenshot Aug 6, 2017
rest.py initial Aug 5, 2017

README.md

rest-fs

REST API FUSE experiment

Mount a remote API to your filesystem because why not?

I think there's some potential here, but it will ultimately have to be configuration heavy so that you can define whether the endpoint resources should 'act like files' or 'act like directories', which would inform readdir() what to do.

Ultimately I'd like to see this be able to POST/PATCH data too.

How to test this:

git clone https://github.com/terencehonles/fusepy.git
cd fusepy && python setup.py build && sudo python setup.py install

# put rest.py above somewhere then mount this public dogs api
python rest.py https://dog.ceo/api /tmp/test
cd /tmp/test
ls breeds/list

Alt text

The API I am using above for testing is https://dog.ceo/dog-api/.