API client for *.educabiz.com
Project description
python-educabiz
API client to interact with educabiz.com portals.
Install
pip install educabiz
Usage
from educabiz.client import Client
eb_client = Client(username, password, login_if_required=True)
data = eb_client.home()
print(f'School: {data["schoolname"]}')
children = eb_client.school_qrcodeinfo()['child']
for child in children.values():
child_id = child['id']
home_data = data['children'][child_id]
print(f'{child_id}:')
print(f'* Name: {html.unescape(child["name"])}')
print(f'* Photo URL: {home_data["photo"]}')
presence = child['presence'][0]
if presence['id'] == 'undefined':
presence_str = '(none)'
elif presence['absent']:
presence_str = f'absent ({presence["notes"]})'
elif presence['hourOut'] == '--:--':
presence_str = f'checked in at {presence["hourIn"]}'
else:
presence_str = f'checked in at {presence["hourIn"]} and out at {presence["hourOut"]}'
print(f'* Presence: {presence_str}')
Build
Check out CONTRIBUTING.md
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
educabiz-0.0.6b1.tar.gz
(6.0 kB
view details)
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 educabiz-0.0.6b1.tar.gz.
File metadata
- Download URL: educabiz-0.0.6b1.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
032dc3e615dfa93f44fc84f684b09078a9e20af08e706fb956220e3b846a8c20
|
|
| MD5 |
c5ea59df713263b75a25c437084949e8
|
|
| BLAKE2b-256 |
22367f0eb92bc911e18473e8b03e4fcfcc1085cb6bf9d8978c34861f673a5ccf
|
File details
Details for the file educabiz-0.0.6b1-py3-none-any.whl.
File metadata
- Download URL: educabiz-0.0.6b1-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ea15ccb8e6c2d06d9cfb2ec32b557661b217a0d2b19552d514db3e162b9ff3e
|
|
| MD5 |
0429527632c0a859ea91fbbc326d3e1a
|
|
| BLAKE2b-256 |
d5797cee8130f24a5906decbeafaeb006040cfc79f2711897cfba7996c0641c8
|