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

Uploaded Source

Built Distribution

educabiz-0.0.3-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: educabiz-0.0.3.tar.gz
  • Upload date:
  • Size: 4.5 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.3.tar.gz
Algorithm Hash digest
SHA256 61bf094514ed949adf83ffeb73ef33c3ebe8577953965a62cf06679c68593c96
MD5 6ff8d0b5ce6aa0bda6fd1d1051a12122
BLAKE2b-256 c7bc77df2ec9c529e22383463040c5990a5846aae507e36f10bce88ca9b53720

See more details on using hashes here.

File details

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

File metadata

  • Download URL: educabiz-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.6 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 348e13306821423e1e880044ba6bb875b21e3ce7b3071b33d91da286c3d9eadb
MD5 846794b5090ff168ece5108e2323da76
BLAKE2b-256 147c5221feb07d386fc01e789291b098afea754ee0464a5ecfece93da0314301

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