• Stars
    star
    592
  • Rank 75,570 (Top 2 %)
  • Language
    Python
  • License
    The Unlicense
  • Created almost 4 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Driving lessons made simpler. Custom scheduling API built with Python.

NOTE

This is a mirror of a GitLab repository.

Dryvo

Dryvo

Dryvo is a unique solution for the driving lessons industry. Our aim is to save the teacherโ€™s time and to increase revenues, and for the students to have control on the entire process. Dryvo is changing the way driving lessons are being managed.

The problem

Teachers spend most of their time dealing with phone calls from students, scheduling lessons and planning their routes and topics for each student. Students are having a hard time keeping track of their payments, lessons, and progress. They usually have no idea when they are ready for a driving test or what topics they will be learning next.

The solution

Dryvo is a platform for driving lessons scheduling and management. We aim for teachers and students to have control on the entire process - from co-scheduling lessons to tracking payments and topics. Students can track their progress, see what topics they have learned and control their payment balance. Teachers, on the other hand, can focus on each lesson without having to worry about scheduling lessons or dealing with payments ahead. In addition to the easier interaction service we offer, we plan on adding many more features - smart lessons scheduler, where the machine will know the teacher preferences and can automatically decide lesson times. Moreover, an efficient route-planner so the teacher can save valuable time and cut on gas expenses.

Key features

  • Smart scheduling by:
    • Student & appointments locations
    • Traffic and arrivals time
    • Student requirements
    • Internal rules taught by dozens of teachers
    • Teacher work days
  • Lesson tracking
  • Payments tracking
  • Lesson topics
  • PDF reports for students
  • Teacher reviews

Installation

Dryvo can be installed using pip similar to other Python packages. If you want to use the PDF reporting feature, you would have to install Weasyprint.

$ pip install .

Or with installing the tests requirements:

$ pip install .[test]

Getting Started

$ flask run

Dryvo uses Flask as a web framework, therefore running the app is the same as any other Flask app. If you want to use a production server such as gunicorn, you can use the command below:

$ gunicorn --preload --chdir ./server "app:create_app()"

Running tests

$ python run -m pytest

Structure Explanation

โ”œโ”€โ”€ LICENSE
โ”œโ”€โ”€ Procfile
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ logs
โ”œโ”€โ”€ messages.pot
โ”œโ”€โ”€ migrations - Database migrations using Alembic
โ”œโ”€โ”€ server
โ”‚ย ย  โ”œโ”€โ”€ __init__.py
โ”‚ย ย  โ”œโ”€โ”€ api - Everything regarding the API endpoints
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ __init__.py
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ babel.py
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ blueprints - Flask blueprints, endpoints divided by logic
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ database
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ __init__.py
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ consts.py
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ database.py
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ mixins.py
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ models - Database models, where each file is essentialy a table
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ utils.py
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ gmaps.py - Google Maps integration
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ push_notifications.py
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ rules - Custom student rules for scheduling
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ social - Social networks integration
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ utils.py
โ”‚ย ย  โ”œโ”€โ”€ app.py - Main entry point for the application
โ”‚ย ย  โ”œโ”€โ”€ app_config.py
โ”‚ย ย  โ”œโ”€โ”€ babel.cfg
โ”‚ย ย  โ”œโ”€โ”€ consts.py
โ”‚ย ย  โ”œโ”€โ”€ error_handling.py
โ”‚ย ย  โ”œโ”€โ”€ extensions.py
โ”‚ย ย  โ”œโ”€โ”€ static
โ”‚ย ย  โ”œโ”€โ”€ templates - PDF reports templates (HTML)
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ reports
โ”‚ย ย  โ””โ”€โ”€ translations
โ”œโ”€โ”€ setup.cfg
โ”œโ”€โ”€ setup.py
โ””โ”€โ”€ tests