Giter Site home page Giter Site logo

rumad-monitor's Introduction

RUMAD Monitor

A framework of commands and helper classes to scrape RUMAD 😏. Contains collection of controllers and SMTP tooling to send notifications via email about availability of sections (secciones) of classes and semester.

Demo in action: jobs/matricula.py. A basic script with example of how to fetch class information and send notification via email.

To run the demo, in the root directory of the project execute the cmd:

PYTHONPATH=. py ./jobs/matricula.py

Supported Version(s)

  • Developed and tested in Python 3.6+

Usage

Recomended usage

Use your system cronjobs to schedule the running of your custom jobs. Jobs can be created and saved in ./jobs/.

Install and Development

Python Environment

Use https://docs.python.org/3/library/venv.html for ease of python management.

After selecting your python environment run:

python -m pip -r requirements.txt

to install the required dependencies.

Dotenv

Copy .env.example and name it .env, then fill the environment variables with the required values.

Tests/Testing

Unittest

In the root directory run:

py -m unittest

Integration test

To test the SMTP (email) feature against a real server change the INTEGRATION_TESTS flag in the .env to true.

*Beware, the aforementioned will execute the SMTP drivers and try to establish a connection with the SMTP server host specified in the .env file.

Adding more test

The tests are implemented with https://docs.python.org/3/library/unittest.html.

NOTE: You are welcome to add more tests as needed.

rumad-monitor's People

Contributors

agsant01 avatar

Stargazers

Edimar Valentín Kery avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.