Library: nftl-ed-lms-tools
This is a tool for Ed LMS API handling.
Source documentation of api is available here
Installation
pip install nftl-ed-lms-tools
Usage
from nftl_ed_lms_tools.client import EdClient
ed = EdClient(token='xoxp-...')
users = ed.get_users_api().get_users()
if users:
print('Yupi!')
Interface
Users
from nftl_ed_lms_tools.client import EdClient
ed = EdClient(token='xoxp-...')
users = ed.get_users_api().get_users()
if users:
print('Yupi!')
Available methods
get_users()
Get a list of users.
Args:
token: optional auth token that will overwrite EdApi token
Returns:
None if data is invalid or users info as :py:class:`typing.List`
when success
create_or_update_user()
Create or update a user.
Args:
user_data: user data to create or update
token: optional auth token that will overwrite EdApi token
Returns:
None if data is invalid or users info as :py:class:`typing.List`
when success
get_external_token()
Get users authentication token by externalId.
Args:
external_id: users external identifier
token: optional auth token that will overwrite EdApi token
Returns:
None if data is invalid or users info as :py:class:`typing.List`
when success
get_token()
Get users authentication token by user id.
Args:
user_id: users external identifier
token: optional auth token that will overwrite EdApi token
Returns:
None if data is invalid or users info as :py:class:`typing.List`
when success
User groups
from nftl_ed_lms_tools.client import EdClient
ed = EdClient(token='xoxp-...')
groups = ed.get_usersgroups_api().get()
if groups:
print('Yupi!')
Available methods
get()
Get a list of user groups.
Args:
token: optional auth token that will overwrite EdApi token
Returns:
None if data is invalid or user groups info as
:py:class:`typing.List` when success
create_or_update_group()
Create or update a user group.
Args:
group_data: group data to create or update
token: optional auth token that will overwrite EdApi token
Returns:
None if data is invalid or group info as :py:class:`typing.Dict`
when success
Deployment how to
Available here
Release files for nftl-ed-lms-tools 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nftl_ed_lms_tools-0.1.5.tar.gz | 5.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nftl_ed_lms_tools-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.8 kB
Release files / nftl_ed_lms_tools-0.1.5.tar.gz
| Download URL | nftl_ed_lms_tools-0.1.5.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89bf5a4083131da316af13c5401f1cb64c5dabc0d183d519f225afcc5b251f4d
|
|
BLAKE2b-256 checksum How to use checksums |
c459b300321d73c65fadb91e415e08abba5720eef0915fc4e88cfa7f400327e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.4
|
Release files / nftl_ed_lms_tools-0.1.5-py3-none-any.whl
| Download URL | nftl_ed_lms_tools-0.1.5-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a825cbd03f3e35a748a2533fa417294530be7489bdea338988b451a7088612b2
|
|
BLAKE2b-256 checksum How to use checksums |
96135435093b8a1fc4944542f7c1d99cfe515e8df44a370c4057cbdbf6eaaee8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.4
|