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)
A Fast API style support for Flask. Gives you MyPy types with the flexibility of flask

Flask-Fastx Flask-Fastx is a Fast API style support for Flask. It Gives you MyPy types with the flexibility of flask. Compatibility Flask-Fastx requir

Tactful.ai 18 Nov 26, 2022
Flask-Starter is a boilerplate starter template designed to help you quickstart your Flask web application development.

Flask-Starter Flask-Starter is a boilerplate starter template designed to help you quickstart your Flask web application development. It has all the r

Kundan Singh 259 Dec 26, 2022
A service made with Flask and Python to help you find the weather of your favorite cities.

Weather-App A service made with Flask and Python to help you find the weather of your favorite cities. Features Backend using Flask and Jinja Weather

Cauã Rinaldi 1 Nov 17, 2022
A template themes for phyton flask website

Flask Phyton Web template A template themes for phyton flask website

Mesin Kasir 2 Nov 29, 2021
Free casino website. Madden just for learning / fun

Website Casino Free casino website. Madden just for learning / fun. Uses Jinja2 (HTML), Flask, JavaScript, etc. Dice game Preview

Kirill Zhosul 0 Jun 22, 2022
A nice anonymous messaging api (Uses Flask's restful api)

anonymous-message-api A nice anonymous message api (Uses Flask's restful api) How it works: 1. The user send a put request to your api server: Require

null 6 Nov 7, 2021
SeCl - A really easy to deploy and use made-on Flask API to manage your files remotely from Terminal

SeCl SeCl it's a really easy to deploy and use made-on Flask API to manage your

ZSendokame 3 Jan 15, 2022
Seamlessly serve your static assets of your Flask app from Amazon S3

flask-s3 Seamlessly serve the static assets of your Flask app from Amazon S3. Maintainers Flask-S3 is maintained by @e-dard, @eriktaubeneck and @SunDw

Edd Robinson 188 Aug 24, 2022
Flask pre-setup architecture. This can be used in any flask project for a faster and better project code structure.

Flask pre-setup architecture. This can be used in any flask project for a faster and better project code structure. All the required libraries are already installed easily to use in any big project.

Ajay kumar sharma 5 Jun 14, 2022
A tool for the game Politics And War. Saving players hours if searching for targets they can engage with.

A tool for the game Politics And War. Saving players hours if searching for targets they can engage with.

null 1 Dec 19, 2021