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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc9820fc322f22f44adc1c4089df7664613208ee565515e365e1e1b31dacff33
|
|
| MD5 |
5b34edc39285d566b91b3d45f15a3d29
|
|
| BLAKE2b-256 |
9b8fcc7b482d9c05e93190768541f96b894ba3b2e1d1d4c34ead4f51be090aba
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
e_kreta_hun0r-2.0.9.tar.gz -
Subject digest:
bc9820fc322f22f44adc1c4089df7664613208ee565515e365e1e1b31dacff33 - Sigstore transparency entry: 204329534
- Sigstore integration time:
-
Permalink:
hun0r/e-kreta-hun0r-2.0@1db690b95dba8b72f976ace370f6878875ae3159 -
Branch / Tag:
refs/tags/2.0.9 - Owner: https://github.com/hun0r
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
Publish.yml@1db690b95dba8b72f976ace370f6878875ae3159 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e102014e5077eea3cb2a52ba6353822c244fd4203af7f770da81d9854f31d7e7
|
|
| MD5 |
53daf66d1d4a5e74e2046f459ca738c3
|
|
| BLAKE2b-256 |
8f6474c2f4350d9d9254176da87bf751d46b38cd63218e03cbb3c56ff4bd7f8f
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
e_kreta_hun0r-2.0.9-py3-none-any.whl -
Subject digest:
e102014e5077eea3cb2a52ba6353822c244fd4203af7f770da81d9854f31d7e7 - Sigstore transparency entry: 204329536
- Sigstore integration time:
-
Permalink:
hun0r/e-kreta-hun0r-2.0@1db690b95dba8b72f976ace370f6878875ae3159 -
Branch / Tag:
refs/tags/2.0.9 - Owner: https://github.com/hun0r
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
Publish.yml@1db690b95dba8b72f976ace370f6878875ae3159 -
Trigger Event:
push
-
Statement type: