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

py -m pip install e-kreta-hun0r

Usage

import os

from kreta.mobile import endpoints, models
from 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.9.tar.gz (16.0 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.9-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: e_kreta_hun0r-2.0.9.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for e_kreta_hun0r-2.0.9.tar.gz
Algorithm Hash digest
SHA256 bc9820fc322f22f44adc1c4089df7664613208ee565515e365e1e1b31dacff33
MD5 5b34edc39285d566b91b3d45f15a3d29
BLAKE2b-256 9b8fcc7b482d9c05e93190768541f96b894ba3b2e1d1d4c34ead4f51be090aba

See more details on using hashes here.

Provenance

The following attestation bundles were made for e_kreta_hun0r-2.0.9.tar.gz:

Publisher: Publish.yml on hun0r/e-kreta-hun0r-2.0

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: e_kreta_hun0r-2.0.9-py3-none-any.whl
  • Upload date:
  • Size: 20.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for e_kreta_hun0r-2.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 e102014e5077eea3cb2a52ba6353822c244fd4203af7f770da81d9854f31d7e7
MD5 53daf66d1d4a5e74e2046f459ca738c3
BLAKE2b-256 8f6474c2f4350d9d9254176da87bf751d46b38cd63218e03cbb3c56ff4bd7f8f

See more details on using hashes here.

Provenance

The following attestation bundles were made for e_kreta_hun0r-2.0.9-py3-none-any.whl:

Publisher: Publish.yml on hun0r/e-kreta-hun0r-2.0

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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