A wrapper for SKE19 API.
Project description
SKE19 API for Python 3
Prerequisites
- Python 3.7 or later
- pip
Installation
On Unix-like systems:
python3 -m pip install ske19-api
On Windows:
py -m pip install ske19-api
or if you've downloaded from Microsoft store:
python3 -m pip install ske19-api
Usage
In your Python script, you can create a new client to login to SKE19 API by, and replacing the secret key with the server's key to access the API.
session = SKE19(secret="secret-key", duration=3600)
You can then access the API routes with two methods, which are #get_all_students() and #get_student(id: str) which will return list[Student] and Student respectively.
session.get_all_students() # returns: [Student]
session.get_student(id) # returns: Student(id, name, ...)
The Student object
A Student has properties that can be easily accessed but are protected it is recommended to use getter methods instead.
Available methods: #get_id(), #get_name_english(), #get_name_thai(), #get_email() and #get_instagram().
All methods were already documented, it is recommended to use IDE with code-completion or prediction to work with.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ske19-api-1.1.1.tar.gz.
File metadata
- Download URL: ske19-api-1.1.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
849654d6e2dc8924590cebc51a674c2ecf4dd254b89c4437fdd2d4fe199a0624
|
|
| MD5 |
186567dc157d005698aa265b7fca06a1
|
|
| BLAKE2b-256 |
e5068a1ee7a6d163e454634586b9d57c1ba16892c8b34959e4db5389befdfb8e
|
File details
Details for the file ske19_api-1.1.1-py3-none-any.whl.
File metadata
- Download URL: ske19_api-1.1.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18bf191f7c8a3f105bf6efabb8450a5c5e805bed4e2a0296601d4b6412fd347f
|
|
| MD5 |
9cf352e15822399b34e1879aa7a572ee
|
|
| BLAKE2b-256 |
64da364f680e7c3952aa9ebf14d44fc2e8ca089f19becf375bbb640a32f2c6f8
|