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

Uploaded Python 3

File details

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

File metadata

  • Download URL: educabiz-0.0.7.tar.gz
  • Upload date:
  • Size: 6.5 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.7.tar.gz
Algorithm Hash digest
SHA256 4342c55cce084f66262d0af0eb59cdb481301a176d814bb94c06832cc0776722
MD5 0ec2cbbad204a1eb444f3cc662ae0e35
BLAKE2b-256 103e5746b45b763a9d5f9e36c2a38aee1138dc7e68f8917022897a0758494e27

See more details on using hashes here.

File details

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

File metadata

  • Download URL: educabiz-0.0.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 e9e00e8a988c387be8fe1ad41fb8827024d14f7c327de499b7557e474f5b9c59
MD5 69671a61fa19e16e46226d21e78a68e9
BLAKE2b-256 125d10a4bb6adac035b851223d23e8376d03a2b73a23c3c4162691dc09175dbc

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