This is a API/Website to see the attendance recorded in your college website along with how many days you can take days off OR to attend class!!

Overview

Bunker-Website

License: MIT Ask Me Anything ! Open Source Love png1

This is a GUI version of the Bunker-API along with some visualization charts to see your attendance progress.

image

Website Link

Check out the website link 😎


Bunker-API-AnyONE

The API call takes total class_code,total_class,total_present and threshold as input and return days to take leave or not!!.

  • URL

    https://bunker-api-prj.herokuapp.com/senddata_attendance

  • Method:

    POST

  • URL Params

    None

  • Data Params

    Required:

     POST /senddata_attendance HTTP/1.1
     Host: bunker-api-prj.herokuapp.com
     Content-Type: application/json
     Content-Length: 186
    
     {
       "class_code" : ["ABC101","ABC102","ABC103","ABC104","ABC105"],
       "total_hours" : ["35","35","32","34","35"],
       "total_present" : ["20","30","32","25","19"],
       "threshold" : "75"
    
     }
    
  • Success Response:

    • Code: 200
      Content:
       
      {
        "ABC101": {
            "class_to_attend": 25,
            "percentage_of_attendance": 0.57,
            "total_hours": 35,
            "total_present": 20
        },
        "ABC102": {
            "class_to_bunk": 5,
            "percentage_of_attendance": 0.86,
            "total_hours": 35,
            "total_present": 30
        },
        "ABC103": {
            "class_to_bunk": 10,
            "percentage_of_attendance": 1.0,
            "total_hours": 32,
            "total_present": 32
        },
        "ABC104": {
            "class_to_attend": 2,
            "percentage_of_attendance": 0.74,
            "total_hours": 34,
            "total_present": 25
        },
        "ABC105": {
            "class_to_attend": 29,
            "percentage_of_attendance": 0.54,
            "total_hours": 35,
            "total_present": 19
        }
      }
  • Error Response:

    • Code: 401 UNAUTHORIZED
      Content:
      {
        "error" : "Given input details does not match up!!"
      }
  • Sample Call:

    fetch('https://bunker-api-prj.herokuapp.com/senddata_attendance', {
              method: 'POST',
              headers: {
                  'Content-Type': 'application/json'
              },
              body: JSON.stringify({
                        
                        "class_code" : ["ABC101","ABC102","ABC103","ABC104","ABC105"],
                        "total_hours" : ["35","35","32","34","35"],
                        "total_present" : ["20","30","32","25","19"],
                        "threshold" : "75"
                                  
                                  })
          })
              .then(resp => resp.text())
              .then(response => {
                  var js = JSON.parse(response);
                  console.log(js);
              }
              )
              .catch(error => console.log(error))
  • Notes:

    Check out the API checking website with input and response link


Bunker-API

The API call takes upon the login details as parameter and returns scarped details from the website using the beautiful soup and days to take leave or not!.

  • URL

    https://bunker-api-prj.herokuapp.com/send_attendance/<rollno>/<pwd>

  • Method:

    POST

  • URL Params

    Required:

    username=[alphanumeric]

    pwd=[alphanumeric]

  • Data Params

    None

  • Success Response:

    • Code: 200
      Content:
       {
       "1XXXXX":{
          "attendance_from":"21-02-2022",
          "attendance_to":"02-04-2022",
          "class_to_bunk":0,
          "percentage_of_attendance":77,
          "total_hours":21,
          "total_present":16
       },
       "1XXXXX":{
          "attendance_from":"21-02-2022",
          "attendance_to":"02-04-2022",
          "class_to_bunk":3,
          "percentage_of_attendance":86,
          "total_hours":21,
          "total_present":18
       },
       "1XXXXX":{
          "attendance_from":"21-02-2022",
          "attendance_to":"02-04-2022",
          "class_to_bunk":1,
          "percentage_of_attendance":80,
          "total_hours":20,
          "total_present":16
       },
       "1XXXXX":{
          "attendance_from":"21-02-2022",
          "attendance_to":"02-04-2022",
          "class_to_bunk":7,
          "percentage_of_attendance":92,
          "total_hours":35,
          "total_present":32
       },
       "1XXXXX":{
          "attendance_from":"21-02-2022",
          "attendance_to":"02-04-2022",
          "class_to_bunk":9,
          "percentage_of_attendance":100,
          "total_hours":28,
          "total_present":28
       },
       "1XXXXX":{
          "attendance_from":"21-02-2022",
          "attendance_to":"02-04-2022",
          "class_to_bunk":4,
          "percentage_of_attendance":86,
          "total_hours":28,
          "total_present":24
       },
       "1XXXXX":{
          "attendance_from":"21-02-2022",
          "attendance_to":"02-04-2022",
          "class_to_bunk":1,
          "percentage_of_attendance":79,
          "total_hours":28,
          "total_present":22
       },
       "1XXXXX":{
          "attendance_from":"21-02-2022",
          "attendance_to":"02-04-2022",
          "class_to_bunk":2,
          "percentage_of_attendance":80,
          "total_hours":35,
          "total_present":28
       }
      }
  • Error Response:

    • Code: 401 UNAUTHORIZED
      Content:
      {
      "error": "Invalid details try again"
      }
  • Sample Call:

    const response = await fetch('https://bunker-api-prj.herokuapp.com/send_attendance/1****1/******', {
      method: 'POST'
    });
    
    response.json().then(function (json) {
      console.log(json)
    }); 
You might also like...
A simple web application built using python flask. It can be used to scan SMEVai accounts for broken pages.

smescan A simple web application built using python flask. It can be used to scan SMEVai accounts for broken pages. Development Process Step 0: Clone

SqlAlchemy Flask-Restful Swagger Json:API OpenAPI
SqlAlchemy Flask-Restful Swagger Json:API OpenAPI

SAFRS: Python OpenAPI & JSON:API Framework Overview Installation JSON:API Interface Resource Objects Relationships Methods Custom Methods Class Method

API to get the details of the characters in the Money heist TV show.
API to get the details of the characters in the Money heist TV show.

Project Heist Description: Project Heist is a RESTful API made using Python and Flask. This API is inspired by the popular Spanish TV show Money Heist

É uma API feita em Python e Flask que pesquisa informações em uma tabela .xlsx e retorna o resultado.
É uma API feita em Python e Flask que pesquisa informações em uma tabela .xlsx e retorna o resultado.

API de rastreamento de pacotes É uma API feita em Python e Flask que pesquisa informações de rastreamento de pacotes em uma tabela .xlsx e retorna o r

A boilerplate Flask API for a Fullstack Project :rocket:

Flask Boilerplate to quickly get started with production grade flask application with some additional packages and configuration prebuilt.

This repo contains the Flask API to expose model and get predictions.

Tea Leaf Quality Srilanka Chapter This repo contains the Flask API to expose model and get predictions. Expose Model As An API Model Trainig will happ

 Learn REST API with Flask, Mysql and Docker
Learn REST API with Flask, Mysql and Docker

Learn REST API with Flask, Mysql and Docker A project for you to learn to work a flask REST api with docker and the mysql database manager! Table of C

A web application made with Flask that works with a weather service API to get the current weather from all over the world.
A web application made with Flask that works with a weather service API to get the current weather from all over the world.

Weather App A web application made with Flask that works with a weather service API to get the current weather from all over the world. Uses data from

REST API with Flask and SQLAlchemy. I would rather not use it anymore.
REST API with Flask and SQLAlchemy. I would rather not use it anymore.

Flask REST API Python 3.9.7 The Flask experience, without data persistence :D First, to install all dependencies: python -m pip install -r requirement

Releases(1.0)
Small flask based opds catalog designed to serve a directory via OPDS

teenyopds Small flask based opds catalog designed to serve a directory via OPDS, it has currently only been verified to work with KyBook 3 on iOS but

Adam Furbee 4 Jul 14, 2022
A team blog based on Flask

A team blog based on Flask This project isn't supported at the moment, please see a newer pypress-tornado Thanks for flask_website and newsmeme at [ht

老秋 549 Nov 10, 2022
Flask webassets integration.

Integrates the webassets library with Flask, adding support for merging, minifying and compiling CSS and Javascript files. Documentation: https://flas

Michael Elsdörfer 433 Dec 29, 2022
A Flask app template with integrated SQLAlchemy, authentication, and Bootstrap frontend

Flask-Bootstrap Flask-Bootstrap is an Flask app template for users to clone and customize as desired, as opposed to a Flask extension that you can ins

Eric S. Bullington 204 Dec 26, 2022
A multi-container docker application. Implemented and dockerized a web-based service leveraging Flask

Flask-based-web-service-with-Docker-compose A multi-container docker application. Implemented and dockerized a web-based service leveraging Flask. Des

Jayshree Rathi 1 Jan 15, 2022
Paid roles for discord using Stripe, Python, Flask & Docker

Welcome to Paycord Paid roles for discord using Stripe, Python, Flask & Docker. Setup Production On stripe dashboard, go Developers ➡️ Webhooks ➡️ Add

Ward 12 Dec 28, 2022
docker-compose uWSGI nginx flask

docker-compose uWSGI nginx flask Note that this was tested on CentOS 7 Usage sudo yum install docker

Abdolkarim Saeedi 3 Sep 11, 2022
Flask-app scaffold, generate flask restful backend

Flask-app scaffold, generate flask restful backend

jacksmile 1 Nov 24, 2021
Flask-template - A simple template for make an flask api

flask-template By GaGoU :3 a simple template for make an flask api notes: you ca

GaGoU 2 Feb 17, 2022
Set up a modern flask web server by running one command.

Build Flask App · Set up a modern flask web server by running one command. Installing / Getting started pip install build-flask-app Usage build-flask-

Kushagra Bainsla 5 Jul 16, 2022
Rate Limiting extension for Flask

Flask-Limiter Flask-Limiter provides rate limiting features to flask routes. It has support for a configurable backend for storage with current implem

Ali-Akber Saifee 922 Jan 08, 2023
WebSocket support for Flask

flask-sock WebSocket support for Flask Installation pip install flask-sock Example from flask import Flask, render_template from flask_sock import Soc

Miguel Grinberg 165 Dec 27, 2022
Brandnew-flask is a CLI tool used to generate a powerful and mordern flask-app that supports the production environment.

Brandnew-flask is still in the initial stage and needs to be updated and improved continuously. Everyone is welcome to maintain and improve this CLI.

brandonye 4 Jul 17, 2022
Harmony, a discord clone, allows users to chat with other users in real time via servers, channels, and direct messages

Harmony, a discord clone, allows users to chat with other users in real time via servers, channels, and direct messages

Seth Holland 3 Feb 03, 2022
Getting Started with Docker and Flask

Getting-Started-with-Docker-and-Flask Introduction Docker makes it easier, simpler and safer to build, deploy and manage applications in a docker cont

Phylis Jepchumba 1 Oct 08, 2021
Flask Web DRY full-stack framework by Problem Fighter

In the name of God, the Most Gracious, the Most Merciful. PF-Flask-Web Documentation Install and update using pip: pip install -U PF-Flask-Web Please

Problem Fighter 2 Jan 20, 2022
Parallel TTS web demo based on Flask + Vue (Vuetify).

Parallel TTS web demo based on Flask + Vue (Vuetify).

Atomicoo 34 Dec 16, 2022
A simple example using Flask inside a container

This is a simple example of how create a container for a Python Flask Web Application using Docker.

Fazt Web 8 Aug 30, 2022
flask extension for integration with the awesome pydantic package

Flask-Pydantic Flask extension for integration of the awesome pydantic package with Flask. Installation python3 -m pip install Flask-Pydantic Basics v

249 Jan 06, 2023
A web application that consists of a collection of board games

PyBoardGame About This website contains a collection of board games for users to enjoy, as well as various guides for the games. The web app is built

Larry Shi 0 Aug 11, 2021