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
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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a57e49aee0290bd89e44b825b9c66caf8de6ae451b0b14a47c54fbce36401814
|
|
| MD5 |
ecf106621e0b50c54620c52a1e8411c7
|
|
| BLAKE2b-256 |
9956d1b49c8cd608f157706c75904b5968ada9faec45e28ccdfcd2cf88bcaf3b
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b873e5fc90a20686bf5f3cdf83bfd555319c40e1263c5c061932f1f679869c2
|
|
| MD5 |
15846106ad2499039bef5d54a5b96ef7
|
|
| BLAKE2b-256 |
a348f8ca9c038a48cad2742eb2d4f097e9799f6f4e7434e40d8ac94daada16bd
|