Test Task - Python
Test Task - Python
1. Social Network
Object of this task is to create a simple REST API. You can use one framework from this list (Django
Rest Framework, Flask or FastAPI) and all libraries which you are prefer to use with this frameworks.
Basic models:
● User
Basic Features:
● user signup
● user login
● post creation
● post like
● post unlike
by day.
● user activity an endpoint which will show when user was login last time and when he mades a last
Requirements:
2. Automated bot
Object of this bot demonstrate functionalities of the system according to defined rules. This bot
should read rules from a config file (in any format chosen by the candidate), but should have
following fields (all integers, candidate can rename as they see fit).
● number_of_user s
● max_posts_per_user
STARNAVI
● number_of_users
● max_posts_per_user
● max_likes_per_user
● each user creates random number of posts with any content (up to
max_posts_per_user)
● After creating the signup and posting activity, posts should be liked randomly, posts
Notes:
● Bot this is just separate python script, not a django management command or etc.
● the project is not defined in detail, the candidate should use their best judgment for every
non-specified requirements (including chosen tech, third party apps, etc), however