
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
This is a command-line tool and Python package to synchronise a local folder with one in a Canvas LMS course.
In order to use this, you need a Canvas API token linked to an account which has permission to create files in your target course's Files section. See the Canvas API documentation for instructions on how to get a token.
Python 3.8 or newer is required.
To install the package, run:
pip install canvaslms_sync
This provides a shell command canvas_sync
.
canvas_sync local_folder remote_url -t CANVAS_API_TOKEN
You can store your Canvas API token in a file like this:
[Canvas]
canvas_api_token = TOKEN
By default, the script looks for this file in credentials.ini
in the current working directory, but you can specify a different path with the -c
option.
Hidden files and folders (those whose names start with .
) are ignored by default. You can include them with the --include-hidden
option.
I followed the Python packaging tutorial to make this package.
To build this package, you need twine
and build
:
python3 -m pip install twine build
First, build the distributable files:
python3 -m build
That produces .tar.gz
and .whl
files in ./dist
.
You can try installing the package in a different virtualenv with pip install dist/canvaslms_sync-$VERSION-py3-none-any.whl
.
To upload to PyPI:
python3 -m twine upload --repository pypi dist/*
FAQs
Synchronise a local folder with one in a Canvas LMS course
We found that canvaslms-sync demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.