{"id":24520504,"url":"https://github.com/zynthasius39/beusp_proxy","last_synced_at":"2026-05-19T17:13:21.638Z","repository":{"id":268463441,"uuid":"904436393","full_name":"Zynthasius39/beusp_proxy","owner":"Zynthasius39","description":"Proxy server written in Python for BEUSP","archived":false,"fork":false,"pushed_at":"2025-12-31T16:34:42.000Z","size":524,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-02T08:16:46.854Z","etag":null,"topics":["aiohttp","asyncio","baku-engineering-university","beatifulsoup","beatifulsoup4","flask","flask-restful","flask-restful-swagger","proxy-server","python","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Zynthasius39.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-16T22:14:00.000Z","updated_at":"2025-12-31T16:34:46.000Z","dependencies_parsed_at":"2024-12-16T23:41:59.542Z","dependency_job_id":"0c2c5f21-2973-4973-9641-3a5d3d2a7006","html_url":"https://github.com/Zynthasius39/beusp_proxy","commit_stats":null,"previous_names":["zynthasius39/beusp_proxy"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Zynthasius39/beusp_proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zynthasius39%2Fbeusp_proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zynthasius39%2Fbeusp_proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zynthasius39%2Fbeusp_proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zynthasius39%2Fbeusp_proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zynthasius39","download_url":"https://codeload.github.com/Zynthasius39/beusp_proxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zynthasius39%2Fbeusp_proxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33225445,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-19T15:49:41.270Z","status":"ssl_error","status_checked_at":"2026-05-19T15:49:22.917Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aiohttp","asyncio","baku-engineering-university","beatifulsoup","beatifulsoup4","flask","flask-restful","flask-restful-swagger","proxy-server","python","python3"],"created_at":"2025-01-22T02:37:16.887Z","updated_at":"2026-05-19T17:13:21.632Z","avatar_url":"https://github.com/Zynthasius39.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp float=\"left\"\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/26f79338-e0f1-452a-bbf7-708bac6e36d0\" width=\"100px\" /\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/3e07f85b-7dbd-4181-b2e9-ae61f249006c\" /\u003e\n\u003c/p\u003e\n\n## Student Information System\n## Tələbə Məlumat Sistemi\n\n### Individual Assignment for Multi Platform Programming\n\nStudent Portal API for students of Baku Engineering University. Written in Flask-RESTful, acts as middleman. Parses incoming HTML, JSON responses to more friendly format and provides documentation for it. Includes notifying bot and subscription services.\nThis API is designed from a student's point of view. Don't expect a fully working model. Last tested on **Feburary 19, 2025**. You can request sha256sums of your desired static content on root server using advanced status endpoint.\n\n**This service comes with absolutely no warranty!**\n\n\n**I am not responsible for**\n\n - Misuse of service\n - Consequences of your actions\n - Getting locked out of your account\n - Getting their credentials stolen by malicious servers\n\n![Screenshot 2024-12-17 at 02-12-11 Baku Engineering University TMS_PMS - Rest API](https://github.com/user-attachments/assets/9e4717bd-5796-48bf-a761-72551e109ac9)\n\n## Getting started\n- Create .env file with your preferences\n```bash\nvim .env\n```\n\n- Generate shared sqlite3 database\n```bash\nmkdir -p shared\nsqlite3 shared/beusp.db \u003c beusp_init.sql\n```\n\n## Docker\n- Start docker compose and follow logs\n```bash\ndocker-compose up -d \u0026\u0026 docker-compose logs -f\n```\n\n## Podman (2-ways)\n- Build images\n```bash\npodman build beusp -t zynthasius/beusp:alpine\npodman build . -f beusproxy.Dockerfile -t zynthasius/beusproxy:alpine\npodman build . -f bot.Dockerfile -t zynthasius/beusproxy:alpine\n```\n\n### Run containers directly\n```bash\npodman network create beusp\npodman run -d --name hpage_api --network beusp --env-file .env zynthasius/beusproxy:alpine\npodman run -d --name hpage_web --network beusp --env-file .env -p 80:80 zynthasius/beusp:alpine\npodman run -d --name hpage_bot --network beusp --env-file .env zynthasius/beusproxy:bot-alpine\n```\n\n### Install Quadlets\n```bash\nrsync -rt quadlet/ /etc/containers/systemd\nsystemctl daemon-reload\nsystemctl start hpage_bot\n```\nStarting hpage_bot unit will start other units as well.\nUnit dependencies:\nBot -\u003e Web -\u003e Api\n\n## Manual installation\n- Set-up the proxy server:\n```bash\ngit clone https://github.com/Zynthasius39/beusp_proxy\ncd beusp_proxy\npython3 -m venv .venv\nsource .venv/bin/activate\npython3 -m pip install -r requirements.txt\n```\n\n- Start the proxy server (deployment):\n```bash\nuwsgi uwsgi.ini\n# or\ngunicorn\n\n# Tweak configs for your needs:\n# uwsgi.ini, gunicorn.conf.py\n\n# Neither uWSGI, nor gunicorn supports Windows. This tutorial is Linux/macOS only.\n# If you don't know what you are doing, just use the Docker container.\n```\n- If you want a development server instead:\n```bash\n# Set DEBUG Environmental variable\nexport DEBUG=true\n\nflask --app beusproxy run --debug\n\n# Reloading doesn't work for\n# for bot and telegram processes\n```\n- Supported Environmental Variables:\n```bash\n# Application name\nAPP_NAME=beusproxy\n\n# SQLite3 Database file\nDATABASE=shared/beusp.db\n\n# Swagger enabled\nFLASGGER_ENABLED=true\n\n# Serve offline responses\nTMSAPI_OFFLINE=false\n\n# Enable debug logging\nDEBUG=false\n\n# Root server URL\nROOT_SERVER=https://my.beu.edu.az\n\n# Server hostname\nAPI_HOSTNAME=http://localhost:8080/api\n\n# Internal server hostname\nAPI_INTERNAL_HOSTNAME=http://web/api\n\n# Web hostname\nWEB_HOSTNAME=http://localhost:8080\n# Serves static content, used in templates\n\n# Timeouts\nREQUEST_TIMEOUT=5\nPOLING_TIMEOUT=30\n# Used in root server requests and Telegram updates\n\n# Folders\nDEMO_FOLDER=beusproxy/demo\nTEMPLATES_FOLDER=beusproxy/templates\n# Used by template managers and offline serving\n\n# Bot\nBOT_ENABLED=true\n# If bot is enabled, all variables below must be set!\n\n# - Telegram\nBOT_TELEGRAM_API_KEY=YOUR_TELEGRAM_BOT_API_KEY\nBOT_TELEGRAM_HOSTNAME=api.telegram.com\n\n# - Email\nBOT_EMAIL_PASSWORD=aaaabbbbccccdddd\nBOT_SMTP_HOSTNAME=smtp.gmail.com\n# For Gmail, you need to use an app password\n\n# - Discord\nBOT_DISCORD_USERNAME=BeuTMSBot\nBOT_DISCORD_AVATAR=http://localhost:8080/static/beutmsbot.png\n\n# Custom email regex\nEMAIL_REGEX=\"long_email_regex\"\n```\n```diff\n- Change API Url in Frontend\nbeusp/src/utils/Api.ts (Line 1)\n\n+ You can enable CORS on API\nbeusproxy/__init__.py (Line 43)\n\n- You need to have the proxy server running!\n\nWhen offline mode is enabled...\n\n- Demo responses needs to be generated with online server first\npython3 generate_demo.py -l STUDENT_ID YOUR_PASSWORD beusproxy/demo\n\n+ No request is being made to root server.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzynthasius39%2Fbeusp_proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzynthasius39%2Fbeusp_proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzynthasius39%2Fbeusp_proxy/lists"}