Skip to main content

E-Kréta API wrapper

Project description

e-kreta-hunor-2.0

e-kreta-hunor-2.0 is an api wrapper for the e-kreta system

installation

for now download the repo and install requirements.txt

py -m pip install -r requirements.txt

later i plan to add it on pypi

Usage

import os

from src.kreta.mobile import endpoints, models
from src.kreta.idp import Auth_Session

username = os.getenv("username")
pwd = os.getenv("pwd")
institiute_code = os.getenv("institute_code")

with Auth_Session.login(username, pwd, institiute_code) as session:
    response = endpoints.get_notes(session)
    print(response)

    session.refresh() # it's automatically done when needed
  
    response = endpoints.get_device_state(session)
    print(response)
  
    session.invalidate() # invalidates the refresh token so remove if login is saved

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

tests would be appreaciated

License

MIT

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

e_kreta_hun0r-2.0.1.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

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

e_kreta_hun0r-2.0.1-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file e_kreta_hun0r-2.0.1.tar.gz.

File metadata

  • Download URL: e_kreta_hun0r-2.0.1.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for e_kreta_hun0r-2.0.1.tar.gz
Algorithm Hash digest
SHA256 a57e49aee0290bd89e44b825b9c66caf8de6ae451b0b14a47c54fbce36401814
MD5 ecf106621e0b50c54620c52a1e8411c7
BLAKE2b-256 9956d1b49c8cd608f157706c75904b5968ada9faec45e28ccdfcd2cf88bcaf3b

See more details on using hashes here.

File details

Details for the file e_kreta_hun0r-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: e_kreta_hun0r-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 20.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for e_kreta_hun0r-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3b873e5fc90a20686bf5f3cdf83bfd555319c40e1263c5c061932f1f679869c2
MD5 15846106ad2499039bef5d54a5b96ef7
BLAKE2b-256 a348f8ca9c038a48cad2742eb2d4f097e9799f6f4e7434e40d8ac94daada16bd

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