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)
Flaskr: Intro to Flask, Test-Driven Development (TDD), and JavaScript

Flaskr - Intro to Flask, Test-Driven Development, and JavaScript Share on Twitter As many of you know, Flaskr -- a mini-blog-like-app -- is the app th

Michael Herman 2.2k Jan 04, 2023
Python3🐍 webApp to display your current playing music on OBS Studio.

Spotify Overlay A Overlay to display on Obs Studio or any related video/stream recorder, the current music that is playing on your Spotify. Installati

carlitos 0 Oct 17, 2022
Find and notify users in your Active Directory with weak passwords

Crack-O-Matic Find and notify users in your Active Directory with weak passwords. Features: Linux-based Flask-based web app Hashcat or John cracker Au

Adrian Vollmer 92 Dec 31, 2022
Glauth management ui created with python/flask

glauth-ui Glauth-UI is a small flask web app i created to manage the minimal glauth ldap server. I created this as i wanted to use glauth for authenti

Nils Thiele 67 Nov 29, 2022
Flask Apps - Open-Source And Paid | AppSeed

Flask Apps Open-Source web apps built with automation tools, HTML parsing and boilerplated code in Flask - - Provided by AppSeed App Generator. What i

App Generator 120 Oct 04, 2022
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
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
Formatting of dates and times in Flask templates using moment.js.

Flask-Moment This extension enhances Jinja2 templates with formatting of dates and times using moment.js. Quick Start Step 1: Initialize the extension

Miguel Grinberg 358 Nov 28, 2022
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
Map Matching & Weight Completion service - Java (Springboot) & Python(Flask)

Map Matching service to match coordinates to roads using Java and Springboot. Weight Completion service to fill in missing weights in a graph, using Python and Flask.

2 May 13, 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
Boilerplate code for basic flask web apps

Flask Boilerplate This repository contains boilerplate code to start a project instantly It's mainly for projects which you plan to ship in less than

Abhishek 6 Sep 27, 2021
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

Aldo Matus 0 Jul 31, 2021
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 simple Task todo application built with Flask

Task TODO Table An application built with Flask a Python framework and hosted on Heroku. Important notes GuniCorn (Green Unicorn): is a Python WSGI HT

DCN (Dubem Celestine Nwabuisi) 1 Dec 15, 2021
An flask app for fake image detector

fake_img_detector This is a ml based project: frameworks used:- Flask Google collab #Description: Here you can Upload two different looking image with

shivam kumar 7 Jun 29, 2022
Regex Converter for Flask URL Routes

Flask-Reggie Enable Regex Routes within Flask Installation pip install flask-reggie Configuration To enable regex routes within your application from

Rhys Elsmore 48 Mar 07, 2022
flask-reactize is a boostrap to serve any React JS application via a Python back-end, using Flask as web framework.

flask-reactize Purpose Developing a ReactJS application requires to use nodejs as back end server. What if you want to consume external APIs: how are

Julien Chomarat 4 Jan 11, 2022
Pagination support for flask

flask-paginate Pagination support for flask framework (study from will_paginate). It supports several css frameworks. It requires Python2.6+ as string

Lix Xu 264 Nov 07, 2022
Burp-UI is a web-ui for burp backup written in python with Flask and jQuery/Bootstrap

Burp-UI Contents Introduction Screenshots Demo What's that? Who are you? Documentation FAQ Community Notes See also Licenses Thanks Introduction Scree

Benjamin 84 Dec 20, 2022