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

Using multiple schools

Educabiz does not provide a way to choose the school during login, matching the behavior of the Educabiz mobile app.

The portal redirects to the right school based on the unique email/password combination, so when using multiple schools with the same email address, use the password associated with the intended school. If the same password is currently used for multiple schools, log in to the first school that opens and change the password there.

The old password will then redirect to the other school.

Example

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.6.tar.gz (6.4 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.6-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: educabiz-0.0.6.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for educabiz-0.0.6.tar.gz
Algorithm Hash digest
SHA256 d22d92c99fa24884888ea1ce884558fa8ca53787704ee46931a8669fd21abab3
MD5 342f34fd80d6b94a374d2b694172ff43
BLAKE2b-256 fd6f6ff19cd130d3218ebcf38ab6a2ff3809f475e3a7916e3896518e90793e05

See more details on using hashes here.

File details

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

File metadata

  • Download URL: educabiz-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for educabiz-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 dad1a785ee936ccfb0ba31b994f2b431d5821f9c6a034690fd5060e97bd796a1
MD5 9154623b64368411ea81b78b1d187414
BLAKE2b-256 c388506055d3a97ec63f5cad5ac96f19beb0b724dda57daaba0975c9fad1c57f

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