hexatester / moodlepy Goto Github PK
View Code? Open in Web Editor NEWPython wrapper for moodle web service.
Home Page: https://hexatester.github.io/moodlepy/
License: MIT License
Python wrapper for moodle web service.
Home Page: https://hexatester.github.io/moodlepy/
License: MIT License
Hi, very good moodle python 🥇
I don't know how send parametre on a function with your module,
Can you show me ?
Dear Hexatester,
I'm very glad you're developing this library! I have a moodle website and I tested your lib and it worked well. I'm not a very experienced developer and I'd love to have the function of enrolling students thought the web service.
Could you provide me some help?
Thanks a lot!
Please,
Can you incorporate mod_page_view_page?
I have tried:
arguments3 = {
"pageid": 11
}
contents = moodle ('mod_page_view_page', ** arguments3)
And it returned: "moodle.exception.MoodleException"
Thank you
Describe the bug
I want to understand this error
To Reproduce
Steps to reproduce the behavior:
from moodle import Moodle
url = 'https://my.domain/webservice/rest/server.php'
token = 'super secret token'
moodle = Moodle(url, token)
dict_site_info = moodle('mod_assign_view_assign', assignid=10')
Expected behavior
File "/home/gaetan/.local/lib/python3.8/site-packages/moodle/moodle.py", line 20, in __call__
return self.post(wsfunction, moodlewsrestformat, **kwargs)
File "/home/gaetan/.local/lib/python3.8/site-packages/moodle/mdl.py", line 65, in post
return self.process_response(data)
File "/home/gaetan/.local/lib/python3.8/site-packages/moodle/mdl.py", line 74, in process_response
raise MoodleException(**data) # type: ignore
TypeError: __init__() got an unexpected keyword argument 'debuginfo'
Moodlepy version 1 means all functions and arguments must be implemented, but it is not mandatory for tests, documentation and types.
Area list:
Hi! Can you please give me a example of what kind of dict/array structure i need to give for this function. I've been stuck for hours now since i can't figure out how many nested arrays the function wants. Other fuctions such as create user work fine but this is a pain in the ass.
Thanks in advance!
Trying to get an existing user by id.
user_service = BaseUser(...)
user = user_service.get_users({id: submission['userid']})
This fails with:
moodle.exception.MoodleException: Ungültiger Parameterwert
How should the parameters be formatted for the get_users function?
Kudos for this nice project btw, very helpful in working with the cumbersome moodle api.
Hi, Sorry to create issue many times,
This module support send assignement directly ?
Thanks.
Use the glossary module, is it available?
Hey,
I'm trying to add a member to a cohort using the AddCohortMember, CohortType and UserType classes but keep failing. What am I doing wrong?
member = AddCohortMember(CohortType(type = 'id', value = '299'),
UserType(type = 'id', value = '9'))
members = [member]
moodle.core.cohort.add_cohort_members(members)
"exception": "invalid_parameter_exception"
Hey I recently stumbled upon your project and was positively surprised how thoroughly everything was annotated.
I am currently in the process of writing basically the same and wanted to ask if these were all manually written or if you scanned the moodle code (or documentation page)?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.