semvec/pypi-packages huggingface dataset:
MoodleGet 1.0
convenient way to get data through Moodle's API
License: MIT
Requires Python: >=3.7

# MoodleGet
convenient way to get data through Moodle's API

## Setup
Install the package using pip:<br>
pip install MoodleGet

Now you can open your project and import the MoodleAPI class<br>
from MoodleGet import MoodleAPI


### Initialising the class
url = "https://yourMoodle/webservice/rest/server.php"<br>
token = your Moodle's API token<br>
moodle = MoodleAPI(url, token)

## Available methods

#### .call(function, data, params)
Send a post request to Moodle through their API system. Returns the response from Moodle in json format
|argument|expected type|required|default value|
|:------:|:-----------:|:------:|:-----------:|
|function|string       |yes     |-            |
|data    |dict         |no      |{"wstoken": self.token,<br>"wsfunction": function,<br>"moodlewsrestformat": "json"}|
|params|dict|no|{}|

#### .get_courses()
Find all the courses that the user can see.

Returns a tuple (courses_dict, course_id_list), where

courses_dict is a dictionary, where keys are the course id-s and every key has a list set to it's value. The list contains [course's code, course's name in a readable way]

course_id_list is a list that has all the course's id-s as it's elements for convenient access

#### .get_calendar_events(courses_list)
Finds all the calendar events in Moodle calendar in the time period now until 3 weeks from now.<br>
Returns a list of the events, where every element of the list is another list containing: [event_id, name, events_course_id, exercise_type, event_starttime]
|argument    |expected type|required|default value|
|:----------:|:-----------:|:------:|:-----------:|
|courses_list|list         |yes     |-            |

## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
sophisticate 1.1.0
Sophisticate Libraries Collection
License: MIT

# sophisticate


[![PyPI version](https://badge.fury.io/py/sophisticate.svg)](https://badge.fury.io/py/sophisticate)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)


## This library will install the following libraries 


### conf-mat    : https://pypi.org/project/conf-mat/
### linkedit    : https://pypi.org/project/linkedit/
### cqueue      : https://pypi.org/project/cqueue/
### lstack      : https://pypi.org/project/lstack/
### hashall     : https://pypi.org/project/hashall/
### thri        : https://pypi.org/project/thri/
### heep        : https://pypi.org/project/heep/
### hashtbl     : https://pypi.org/project/hashtbl/
### court-queue : https://pypi.org/project/court-queue/
### ntwrk       : https://pypi.org/project/ntwrk/
### vsort       : https://pypi.org/project/vsort/
### dictQ       : https://pypi.org/project/dictQ/


## Installation


You can install `sophisticate` via pip:


```bash
pip install sophisticate
```


## License


This project is licensed under the MIT LICENSE - see the [LICENSE](https://opensource.org/licenses/MIT) for more details.