Skip to main content

Automatic booking of washing machines at NSU.

Project description

Automatic booking of washing machines at NSU.

This package provides the opportunity for booking washing machine in NSU dormitories.

Installation

pip install nsubooking

Setting env

For use this package you need tu setup your envirement variables.

You can do that with .env file in root directory or export $var = data.

You need folowing envirement variables:

  • EMAIL (required) - email of your booking account.
  • PASSWORD (required) - password of your booking account.
  • PAGE_LIVE_TIME (nonrequired) - time between bookings.
  • BOOK_WAIT (nonrequired) - time between page reloads while waiting available machines.

Quickstart

To quickstart try following code:

from nsubooking import run


if __name__ == 'main':
  run()

To inject app to async loop you can also use:

from nsubooking import run_loop
import asyncio


if __name__ == 'main':
  asyncio.run(run_loop())

But in this case logger will not configured.

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

nsubooking-0.0.2.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

nsubooking-0.0.2-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file nsubooking-0.0.2.tar.gz.

File metadata

  • Download URL: nsubooking-0.0.2.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for nsubooking-0.0.2.tar.gz
Algorithm Hash digest
SHA256 b8e7a6040fe1179774efd296232a457af49b19f2f756f8d1bf1084bb6a7813bf
MD5 bb13b170a53a157ad277b2525b0d844a
BLAKE2b-256 d240d53cea92c2b1c674aa1ceec2fd0af78f1edff3b882a33016248a65c43132

See more details on using hashes here.

File details

Details for the file nsubooking-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: nsubooking-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for nsubooking-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 212397d32e322c978fa39270c379f1e3cccc51d6773703cbfed6afcd23ffc9b6
MD5 25ef346adb4dd8950a39d446674d4be7
BLAKE2b-256 6ed60ec636d71e3209cf4b17248bcfb284cc9f8a713a2234c0aa5097028d50e2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page