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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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