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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

educabiz-0.0.5-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: educabiz-0.0.5.tar.gz
  • Upload date:
  • Size: 5.9 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.5.tar.gz
Algorithm Hash digest
SHA256 10036214c7aad95100db853fee2d78a571ed230e200a1baa72d21a6275d631ab
MD5 fe486a0eddbd146208c57c100e69166a
BLAKE2b-256 722cd72e27d95dc829c944f3d32128c9d2bf09c5e1cf8d0cb7b20ca80498b5d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: educabiz-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 6.4 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 488573f39ca8032f8177deea6aac523e1b2e5cf6ee12932486b630acc1abe9f6
MD5 8b1c3d8f7124196d65c73baad5c64d9d
BLAKE2b-256 2a72693e81e18d5f6e4f9c091050ec8c864df02a19f0cd7d562020fac84c265e

See more details on using hashes here.

Supported by

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