Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Features:
Indexes Canvas Modules, Pages, Announcements, Assignments and Files
The following file types are supported:
md
htm
html
docx
xls
xlsx
pptx
pdf
rtf
txt
(doc
support would require libreoffice, so has not been implemented in this library)
You can build/run the provided Dockerfile, or install dependencies as described below
Edit canvas-test.py
, fill in the correct api_url
, api_key
, and course_id
.
Run (this also builds docker):
docker run -it $(docker build -q .)
pip install -r requirements.txt
from canvas_langchain.canvas import CanvasLoader
loader = CanvasLoader(
api_url = "https://CANVAS_API_URL_GOES_HERE",
course_id = CANVAS_ID_GOES_HERE,
api_key = "API_KEY_GOES_HERE"
)
try:
documents = loader.load()
print("\nDocuments:\n")
print(documents)
print("\nInvalid files:\n")
print(loader.invalid_files)
print("")
print("\nErrors:\n")
print(loader.errors)
print("")
print("\nIndexed:\n")
print(loader.indexed_items)
print("")
print("\nProgress:\n")
print(loader.get_details('DEBUG'))
print("")
except Exception:
details = loader.get_details('DEBUG')
If errors are present, loader.errors
will contain one list element per error. It will consist of an error message (key named message
) and if the error pertains to a specific item within canvas, it will list the entity_type
and the entity_id
of the resource where the exception occurred.
FAQs
A canvas langchain integration
We found that canvas-langchain demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.