Skip to main content

Fetch menu from usine.se

Project description

usinelib

Usage

import usinelib

users = [
    {
        "username": "test",
        "friendlyname": "Test Testsson",
        "number": "46123123123"
    }
]


def main():
    usine_menu = usinelib.UsineMenu()
    debug = True
    weekly_menu, weekly_veg_menu, classic_menu = usine_menu.get_menus()
    if debug:
        for day in weekly_menu:
            print(day['dish'])
        for classic in classic_menu:
            print(classic['dish'])
        for veg in weekly_veg_menu:
            print(veg['dish'])
    usineMenu.notify_users(users, debug)


if __name__ == '__main__':
    main()

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

usinelib-0.0.4.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

usinelib-0.0.4-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file usinelib-0.0.4.tar.gz.

File metadata

  • Download URL: usinelib-0.0.4.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for usinelib-0.0.4.tar.gz
Algorithm Hash digest
SHA256 a8ec996ad2851c122ae0c4837ad95650ff6784a1ea3a75846f4b0897300c9969
MD5 203066966294b1681d80d03e6d23bdf0
BLAKE2b-256 fb4b7465e2fe1ec32f0894fd73b8d685985b0bb2ebd55b859bc1e166caff8d65

See more details on using hashes here.

File details

Details for the file usinelib-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: usinelib-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for usinelib-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0528abf8d538bf86a29deabf0a243e3d561f563762fcb63a4f7ce53d41db0fb4
MD5 1daa8ac8038021c071c8473d34246521
BLAKE2b-256 6609a3594f9df544c145806cc7d9f4e114594dd10966fd9c3550103a98bf2209

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