---
title: "Anubhav Gupta (@jayhawk24) | Hashnode"
description: "✈️Travelaholic. 🐱💻 WebDev fanatic. Hardcore hacker. Read the latest articles by Anubhav Gupta on Hashnode."
url: "https://hashnode.com/@jayhawk24"
---

@jayhawk24

# Anubhav Gupta

@jayhawk24 · Joined January 2023

✈️Travelaholic. 🐱💻 WebDev fanatic. Hardcore hacker.

### [Upload files in FastAPI with file validation](https://jayhawk24.hashnode.dev/upload-files-in-fastapi-with-file-validation?utm_source=hashnode&utm_medium=feed)

File upload and validation can get tricky when it comes to FastAPI as we simply cannot use pydantic to do validations for us. Let's see how to get this done from fastapi import UploadFile @app.post("/file") def upload\_file(file: UploadFile): val...

2 min read · [jayhawk24.hashnode.dev](https://jayhawk24.hashnode.dev/upload-files-in-fastapi-with-file-validation?utm_source=hashnode&utm_medium=feed)

[Sep 8, 2023](https://hashnode.com/posts/upload-files-in-fastapi-with-file-validation/64fb08a2728f628582365ba7)

### [How to implement pagination in FastAPI feat. SQLAlchemy](https://jayhawk24.hashnode.dev/how-to-implement-pagination-in-fastapi-feat-sqlalchemy?utm_source=hashnode&utm_medium=feed)

In this blog, I will explain how we can implement custom pagination in FastAPI without any external packages. from typing import Generic, List, TypeVar from pydantic import BaseModel, conint from pydantic.generics import GenericModel class PageParam...

2 min read · [jayhawk24.hashnode.dev](https://jayhawk24.hashnode.dev/how-to-implement-pagination-in-fastapi-feat-sqlalchemy?utm_source=hashnode&utm_medium=feed)

[Mar 18, 2023](https://hashnode.com/posts/how-to-implement-pagination-in-fastapi-feat-sqlalchemy/64157e9cce8e77653d7b5dda)

### [How to auto fix lint errors in a Pull Request (isort & black)](https://jayhawk24.hashnode.dev/how-to-auto-fix-lint-errors-in-a-pull-request-isort-black?utm_source=hashnode&utm_medium=feed)

Auto fix lint errors like spacing, sorting imports and much more, let Github Actions create a commit for you fixing them.

1 min read · [jayhawk24.hashnode.dev](https://jayhawk24.hashnode.dev/how-to-auto-fix-lint-errors-in-a-pull-request-isort-black?utm_source=hashnode&utm_medium=feed)

[Feb 8, 2023](https://hashnode.com/posts/how-to-auto-fix-lint-errors-in-a-pull-request-isort-black/63e38542922d48599b4dcc9b)

### [Automatically apply to jobs with this python bot.](https://jayhawk24.hashnode.dev/automatically-apply-to-jobs-with-this-python-bot-167b96065c04?utm_source=hashnode&utm_medium=feed)

Applying to jobs can be a tedious job why not let a bot handle it? I personally love Instahyre as they don’t ask any follow-up questions and it's just one click to apply. So let's use python to do this instead. from selenium import webdriver from sel...

2 min read · [jayhawk24.hashnode.dev](https://jayhawk24.hashnode.dev/automatically-apply-to-jobs-with-this-python-bot-167b96065c04?utm_source=hashnode&utm_medium=feed)

[Jan 28, 2023](https://hashnode.com/posts/automatically-apply-to-jobs-with-this-python-bot-167b96065c04/63d521aec1957326b40350e4)

### [Manipulate child state from parent in React.](https://jayhawk24.hashnode.dev/manipulate-child-state-from-parent-in-react-4fc4a3edd38c?utm_source=hashnode&utm_medium=feed)

Using refs we can invoke methods of child components from a parent in both class components as well as in functional components. This is just a workaround, recommended way is to lift the state up to the parent and then pass it through props to the ch...

2 min read · [jayhawk24.hashnode.dev](https://jayhawk24.hashnode.dev/manipulate-child-state-from-parent-in-react-4fc4a3edd38c?utm_source=hashnode&utm_medium=feed)

[Jan 8, 2023](https://hashnode.com/posts/manipulate-child-state-from-parent-in-react-4fc4a3edd38c/63d521bac1957326b40350e7)
