Skip to main content

Synchronize modules, assignments and files from Canvas by Instructure to your local computer

Project description

logo

Canvas-Sync

Ask DeepWiki PyPI License uv Ruff Last Commit
Synchronize Canvas LMS courses and files to a local folder, preserving course structure and organization.

#Canvas   #Instructure   #LMS   #Synchronize   #Education

Table of Contents 📚


Overview

Canvas-Sync mirrors your Canvas course structure locally so you can browse course materials offline. It downloads modules, assignments, pages, files, and optional external resources into a tidy folder layout.

Key Features ⭐

Overview

  • Automatic synchronization of modules, assignments, and files
  • Preserves course/module/subfolder structure locally
  • Configurable: choose which content types to sync
  • Optional download of external files referenced in descriptions
  • Simple, user-friendly CLI with interactive setup (Typer + Rich)
  • Rich progress bars and improved sync status output

Quick Start 🚀

Follow these steps to get up and running quickly.

  1. Generate a Canvas API token

    • Log in to your Canvas instance → AccountSettingsApproved IntegrationsNew Access Token.
    • Copy the token and keep it secure. You will use it during setup.

    Auth Token

  2. Install Canvas-Sync (pick one)

    Using uv (recommended):

    uv add canvas-sync-py
    uv pip install canvas-sync-py
    

    With pip:

    pip install canvas-sync-py
    

    From source (developer mode):

    git clone https://github.com/Sang-Buster/Canvas-Sync.git
    cd Canvas-Sync
    pip install -e .
    PYTHONPATH=src canvas --help
    
  3. Launch and configure

    • Run canvas to launch the interactive setup. Choose a local sync folder, provide your Canvas domain, the API token from step 1, and select courses to be synced.
    • After setup, run canvas sync to begin downloading course content.
  4. Usage, Configuration, and Common Flags

    • canvas --help — Launch CLI and show help message
    • canvas setup — Re-run setup and update saved values
    • canvas info — Show current saved settings
    • canvas sync — Start synchronization using saved settings
    • canvas reset — Reset and remove saved encrypted settings (use when you forgot your password)

    Configuration notes:

    • Settings are stored encrypted locally. Use canvas --setup to change them or canvas reset to remove them.

Security & Privacy 🔒

  • Your Canvas API token is encrypted locally using AES and a password-derived key.
  • Canvas-Sync is read-only: it only downloads course content and does not modify Canvas.
  • Do not share your token; if compromised, revoke it in Canvas and run canvas reset.

Links 🔗

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

canvas_sync_py-0.3.0.tar.gz (29.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

canvas_sync_py-0.3.0-py3-none-any.whl (45.4 kB view details)

Uploaded Python 3

File details

Details for the file canvas_sync_py-0.3.0.tar.gz.

File metadata

  • Download URL: canvas_sync_py-0.3.0.tar.gz
  • Upload date:
  • Size: 29.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.10

File hashes

Hashes for canvas_sync_py-0.3.0.tar.gz
Algorithm Hash digest
SHA256 621715e183700d7c78ba6d83297f67822e1b0247d63daf85697e34d3202850f9
MD5 4cac02d922ed73152e6a4c48327f409b
BLAKE2b-256 66df3cb898c3bd7292c8bc8d33bea2c5b6daa074c26d4a2d6fad55ee2a65c4e2

See more details on using hashes here.

File details

Details for the file canvas_sync_py-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for canvas_sync_py-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 50cf444574b1cf1211906b834e1e19e815122584f6910553bf2116dbdc72b1d6
MD5 6abcd534ac1cb88364822583bb31a556
BLAKE2b-256 f312cc6f2ce1cd0372cb7e3e9c0acd57d8055479c7a612f064522fa75a960dc2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page