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 clean and simple blog system based on Flask and MongoDB

CleanBlog A clean and simple blog system based on Flask and MongoDB You can access CleanBlog This is the source code of Flask Tutorial Pro,you can buy

shin 107 Oct 06, 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
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
Track requests to your Flask website with Matomo

Flask-Matomo Flask-Matomo is a library which lets you track the requests of your Flask website using Matomo (Piwik). Installation pip install flask-ma

Lucas Hild 13 Jul 14, 2022
a flask profiler which watches endpoint calls and tries to make some analysis.

Flask-profiler version: 1.8 Flask-profiler measures endpoints defined in your flask application; and provides you fine-grained report through a web in

Mustafa Atik 718 Dec 20, 2022
:rocket: Generate a Postman collection from your Flask application

flask2postman A tool that creates a Postman collection from a Flask application. Install $ pip install flask2postman Example Let's say that you have a

Numberly 137 Nov 08, 2022
A basic CRUD application built in flask using postgres as database

flask-postgres-CRUD A basic CRUD application built in flask using postgres as database Taks list Dockerfile Initial docker-compose - It is working Dat

Pablo Emídio S.S 9 Sep 25, 2022
This is a repository for a playlist of videos where I teach building RESTful API with Flask and Flask extensions.

Build And Deploy A REST API with Flask This is code for a series of videos in which we look at the various concepts involved when building a REST API

Ssali Jonathan 10 Nov 24, 2022
Implement Instagram with flask

Blue club The place where manly men live and breathe. Move to Notion Move to Fig

3 Apr 07, 2022
Flask app + (html+css+ajax) contain ability add employee and place where employee work - plant or salon

#Manage your employees! With all employee information stored in one place, you no longer have to sift through hoards of spreadsheets to manually searc

Kateryna 1 Dec 22, 2021
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 simple FastAPI web service + Vue.js based UI over a rclip-style clip embedding database.

Explore CLIP Embeddings in a rclip database A simple FastAPI web service + Vue.js based UI over a rclip-style clip embedding database. A live demo of

18 Oct 15, 2022
A Flask extension that enables or disables features based on configuration.

Flask FeatureFlags This is a Flask extension that adds feature flagging to your applications. This lets you turn parts of your site on or off based on

Rachel Greenfield 131 Sep 26, 2022
Beautiful Interactive tables in your Flask templates.

flask-tables Beautiful interactive tables in your Flask templates Resources Video demonstration: Go to YouTube video. Learn how to use this code: Go t

Miguel Grinberg 209 Jan 05, 2023
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

Luis Quiñones Requelme 1 Dec 15, 2021
A flask extension using pyexcel to read, manipulate and write data in different excel formats: csv, ods, xls, xlsx and xlsm.

Flask-Excel - Let you focus on data, instead of file formats Support the project If your company has embedded pyexcel and its components into a revenu

247 Dec 27, 2022
This is a small notes web app, with python and flask microframework. Using sqlite3

Python Notes App. This is a small web application maked with flask-python for add notes easily and quickly. Dependencies. You can create a virtual env

Eduard 1 Dec 26, 2021
A live chat built with python(flask + gevent + apscheduler) + redis

a live chat room built with python(flask / gevent / apscheduler) + redis Basic Architecture Screenshot Install cd /path/to/source python bootstrap.py

Limboy 309 Nov 13, 2022
Quick and simple security for Flask applications

Note This project is non maintained anymore. Consider the Flask-Security-Too project as an alternative. Flask-Security It quickly adds security featur

Matt Wright 1.6k Dec 19, 2022
5 Flask Projects To Get Started

5 Flask Projects Projects Made By Using Flask Projects List Rock Paper Scissor Game - A Simple Game Weather App - A OpenWeatherMap Scraper Task List -

Root_Arch 59 Dec 18, 2022