Skip to content

shreyasminocha/canvas-fs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Canvas LMS FUSE Filesystem

A Canvas "Files" page on one side and ls -l showing the same files on the other side

This is, at the moment, just a proof-of-concept.

Features

  • read
  • write
  • mount courses
  • mount groups
  • mount users

Getting started

Until I get this on PyPi:

  • git clone https://github.com/shreyasminocha/canvas-fs.git
  • cd canvas-fs
  • cp .env.example .env, chmod 600 .env
  • Create and activate a virtualenv [optional]
  • pip install -r requirements.txt
  • On canvas, go to "Account" → "Settings", and under "Approved Integrations:" click "+ New Access Token"
    • Set the purpose to "canvasfs"
    • Set an expiration date [optional, but recommended]
    • Click "Generate" and copy the "Token:" field
  • Open .env and set the values of CANVAS_URL and ACCESS_TOKEN
  • Find the course ID of the course you wish to mount — https://canvas.example.edu/courses/[course_id]
  • Create a directory, say /mnt/canvas/comp182, and make sure your user owns it
  • python -m canvasfs [course_id] /mnt/canvas/comp182

Platforms

Tested with fuse3 on Arch Linux. It should also work on macOS with macFuse. Apparently FUSE for Windows is a thing, but I don't know if this will work with it.

License

Licensed under the MIT License

Contributions

… are welcome.

About

Canvas LMS FUSE Filesystem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published