Skip to content

An AI agent for developing the skills of a Python developer. The bot asks questions, evaluates the answers, and creates a skill map.

Notifications You must be signed in to change notification settings

Idea-Pulse-Man/AI_interviewer_python

Repository files navigation

AI assistant for preparing for a Middle-level Python developer interview

Under the hood: aiogram, PostgreSQL, Redis, GigaChat

Live demo

https://t.me/pyainter_bot

Instructions

Instructions for quick launch in a container

  1. Download the source code from the repository
  2. Create a .env file from the template .env
  3. Run docker compose up --build to build the image
  4. For the first run, type /start; for subsequent runs, type /get_question in the bot or use the buttons

Instructions for quick launch locally

  1. Specify a test TG_TOKEN in .env and DB_HOST=localhost for localhost
  2. Start the database container: docker run --name pg-container -e POSTGRES_DB=inter_db -e POSTGRES_USER=inter_user -e POSTGRES_PASSWORD=inter_password -p 5432:5432 -d postgres:15`
  3. Start the Redis container: docker run -d -p 6379:6379 --name redis_local redis_local
  4. Download the Ministry of Digital Development, Communications and Mass Media certificate (on Mac): curl -k "https://gu-st.ru/content/Other/doc/russian_trusted_root_ca.cer" -o russian_trusted_root_ca.cer
  5. Install the certificate: cat russian_trusted_root_ca.cer >> $(python -m certifi)
  6. Run main.py, you can do this directly from the console.

Code Profiling

  1. To check for asynchrony, you can run pyinstrument: PYTHONPATH=. pyinstrument src/main.py -t -r RENDERER
  2. For general profiling, use scalene: scalene --cpu --memory --cli src/main.py

About

An AI agent for developing the skills of a Python developer. The bot asks questions, evaluates the answers, and creates a skill map.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published