Skip to main content

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


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.4.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

educabiz-0.0.4-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file educabiz-0.0.4.tar.gz.

File metadata

  • Download URL: educabiz-0.0.4.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.15

File hashes

Hashes for educabiz-0.0.4.tar.gz
Algorithm Hash digest
SHA256 17ef24afebe74f23a640ee640c18953014aaaa9d26460c35d8e53d9f6349d9f1
MD5 8a74b7ee0b694eb13e3b65218c6e0983
BLAKE2b-256 be1b8004ab0ccb9607356aeb5806a0d9b0c01fbab56f15a4f7ee969cb0a3e36c

See more details on using hashes here.

File details

Details for the file educabiz-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: educabiz-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.15

File hashes

Hashes for educabiz-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 eee092f61989ec1c21b36cc8d4d80b4447ca36d55dc6cbcc45d301ba32fe7a84
MD5 ff940232b745eae042d35eff24222ea4
BLAKE2b-256 1ff245d704f13acbb85771bbfd969cc336e5d409e6cfc76f5629b566fdc06490

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page