Skip to main content

A Python wrapper for interacting with the Kroky meal service website.

Project description

Kroky Library

Overview

The Kroky Library is a Python package designed to help you select meal true code for easier customization (auto meal selection) and auto login. This documentation provides an overview of the library's functionality, installation instructions, and usage examples.

Installation

To install the Kroky Library, use pip:

pip install kroky

Usage

Initialize kroky

from kroky import Kroky

login = Kroky(username:str, password:str)

Get meals

print(login.get_menu(pos))

Select meal

print(login.select_meal(date, id))

Get user data

print(login.user_info()

Change password

print(login.change_password(password, password))

Functions

get_menu(pos)

  • Description: [Displays all meals in selected week]
  • Parameters:
    • pos (int): [pos is week defining -1 is last week, 0 is current week, 1 is next week]
  • Returns: [return json]

select_meal(date, id)

  • Description: [Can select specific meal on specific day]
  • Parameters:
    • date (str): [date needs to be entered in this form YYYY-MM-DD]
    • id (int): [id can be get from html on kroky website (alternative will be added shortly)]
  • Returns: [Returns if meal was selected seccessfuly or not]

user_info()

  • Description: [can display user info]
  • Returns: [Return user info]

change_password(password, password2)

  • Description: [can change user password]
  • Parameters:
    • password (str): [new password]
    • password2 (int): [retype new password]
  • Returns: [Returns if it succided in changing the password]

Contributing

If you would like to contribute to the Kroky Library, please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes.
  4. Commit your changes (git commit -m 'Add new feature').
  5. Push to the branch (git push origin feature-branch).
  6. Create a new Pull Request.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Contact

For any questions or issues, please open an issue on the GitHub repository.

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

kroky-0.4.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

kroky-0.4.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file kroky-0.4.0.tar.gz.

File metadata

  • Download URL: kroky-0.4.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for kroky-0.4.0.tar.gz
Algorithm Hash digest
SHA256 00d7d7395f70c6670ee1e8947227a4c3f24026fb173467d6e5048c623a59cc80
MD5 b35c87ef12e612198b4834336dcae0f7
BLAKE2b-256 d9edff77eb1f249cbdad997d22003b73e3d268b88ac12eb931ecf26ba339ecc5

See more details on using hashes here.

File details

Details for the file kroky-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: kroky-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for kroky-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 db7c1ada0a9a98e881e461d1c06e7b342cb52d5c6653c9e2dc8ee866373ab490
MD5 8fc119f8b5c9bc477181db5b4ade9962
BLAKE2b-256 816c817fa0f7d149880cec57997205239ce455282d1918dff221443079bec258

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