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)
Mixer -- Is a fixtures replacement. Supported Django, Flask, SqlAlchemy and custom python objects.

The Mixer is a helper to generate instances of Django or SQLAlchemy models. It's useful for testing and fixture replacement. Fast and convenient test-

Kirill Klenov 870 Jan 08, 2023
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!!

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

Mathana Mathav 11 Dec 27, 2022
Simple flask api. Countdown to next train for each station in the subway system.

Simple flask api. Countdown to next train for each station in the subway system.

Kalyani Subbiah 0 Apr 17, 2022
É 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

Marcos Beraldo Barros 4 Jun 27, 2021
MongoEngine flask extension with WTF model forms support

Flask-MongoEngine Info: MongoEngine for Flask web applications. Repository: https://github.com/MongoEngine/flask-mongoengine About Flask-MongoEngine i

MongoEngine 815 Jan 03, 2023
Heroku Flask Setup

Heroku Flask Setup

Abhimanyu Haralukallu 0 Dec 07, 2021
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
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
Control YouTube, streaming sites, media players on your computer using your phone as a remote.

Media Control Control Youtube, streaming sites, media players on your computer using your phone as a remote. Installation pip install -r requirements.

Shreyas Daniel 10 Dec 08, 2022
Flask Application Structure with MongoDB

This application aims to serve as a template for APIs that intend to use mongoengine and flask-restx

Tiago Franco 5 Jun 25, 2022
i18n and l10n support for Flask based on Babel and pytz

Flask Babel Implements i18n and l10n support for Flask. This is based on the Python babel module as well as pytz both of which are installed automatic

397 Dec 15, 2022
Flask app for deploying DigitalOcean droplet using Pulumi.

Droplet Deployer Simple Flask app which deploys a droplet onto Digital ocean. Behind the scenes there's Pulumi being used. Background I have been Terr

Ahmed Sajid 1 Oct 30, 2021
Rich implementation for Flask

Flask Rich Implements the Rich programming library with Flask. All features are toggleable, including: Better logging Colorful tracebacks Usage Import

BD103 13 Jun 06, 2022
An python flask app with webserver example

python-flask-example-keepalive How it works? Basically its just a python flask webserver which can be used to keep any repl/herokuapp or any other ser

KangersHub 2 Sep 28, 2022
A Flask web application that manages student entries in a SQL database

Student Database App This is a Flask web application that manages student entries in a SQL database. Users can upload a CSV into the SQL database, mak

rebecca 1 Oct 20, 2021
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
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
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
A swagger 2.0 spec extractor for flask

flask-swagger A Swagger 2.0 spec extractor for Flask You can now specify base path for yml files: app = Flask(__name__) @app.route("/spec") def spec(

Sling 457 Dec 02, 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