Skip to main content

A very basic E-Dnevnik API.

Project description

e-Dnevnik API

Kinda slow (avarage 3 seconds) ednevnik api for getting user information.

Requirements

Description of functions

  • auth function returns if given username and password are correct.
  • grade function returns which class a given user is.
  • nameSurname function returns a name and surname of given user in a form of list.
  • userNumber function returns ordinal number of a user.
  • getClassYear function returns current class year.
  • getSchool function returns users current school.
  • userInfo function returns all info of a given user. (output is given in a list in the following order: [name, surname, grade, userNumber, year, school] and every element is a string )

Example Code 1

import ednevnik

username = "jeremy.clarkson@skole.hr"
password = "76ghBI7g"
path = "C:\Users\James\chromedriver.exe"        #path is your personal path where webdriver is located on your PC

dnevnik = ednevnik.api(username, password, path)

userClass = dnevnik.grade()
print(userClass)

Example Code 2

import ednevnik

dnevnik = ednevnik.api("james.may@skole.hr", "09OIjs65", "C:\Users\James\Programs\chromedriver.exe")

authentication = dnevnik.auth()
if authentication:
    print('User is valid.')
else:
    print("User info is incorrect or doesn't exist.")

Example Code 3

import ednevnik

username = "richard.hammond@skole.hr"
password = "9865Y7jH"
path = "C:\Users\Richard\Modules\chromedriver.exe"       #path is your personal path where webdriver is located on your PC

dnevnik = ednevnik.api(username, password, path)

userInformation = dnevnik.userInfo()
print(userInformation)

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

ednevnik-0.0.5.tar.gz (3.6 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: ednevnik-0.0.5.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for ednevnik-0.0.5.tar.gz
Algorithm Hash digest
SHA256 a6d5bb89cd65148c7c9e60b376af5b47332f44d36a403fc06a58d2513396ff71
MD5 fde08ff43c1ea78e95297b1d2d0a41b9
BLAKE2b-256 18c6afc91c092324b32a2cd6bb4d2f24d571a08672d362ddda82806d55f03f5d

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