Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate Python Server from Flask SocketIO to FastAPI. #19

Open
PradyumnaKrishna opened this issue May 23, 2023 · 6 comments
Open

Migrate Python Server from Flask SocketIO to FastAPI. #19

PradyumnaKrishna opened this issue May 23, 2023 · 6 comments
Labels
Codepeak23 enhancement New feature or request

Comments

@PradyumnaKrishna
Copy link
Owner

PradyumnaKrishna commented May 23, 2023

Description
I am looking to migrate python server from flask socketio to FastAPI with websockets support. This issue only requires to converts the /, login and connect endpoints from flask to FastAPI.

You will use the same sqlite database connector provided in database.py but it will require some modification and use of aiosqlite package.

This issue only aims to try a new alternative and prepare to reach our next goal, to move from SocketIO to websockets. Once basic fastapi server is built, we will start with adding websockets to fastapi server and how to create user sessions.

Please raise the Pull Request to fastapi-server branch, and feel free to ask anything.

@PradyumnaKrishna PradyumnaKrishna added enhancement New feature or request gssoc23 GirlScript Summer of Code level3 Adding Functionalities labels May 23, 2023
@Tushar98644
Copy link

I would like to try this issue @PradyumnaKrishna

@PradyumnaKrishna
Copy link
Owner Author

Are you stuck somewhere @Tushar98644? I can assist you if you want.

@PradyumnaKrishna
Copy link
Owner Author

Hey @Tushar98644 I am unassigning you from this issue, since there is no progress. Let me know if you are working on it.

@AishwaryaSatpute1
Copy link

Description: The goal of this task is to migrate the Flask SocketIO server to FastAPI while ensuring websockets support. The following steps should be taken:
    Convert the existing endpoints /, /login, and /connect from Flask to FastAPI syntax and routing.
    Modify the existing sqlite database connector provided in database.py to work with FastAPI, utilizing the aiosqlite package.
    This migration serves as a stepping stone towards our ultimate goal of transitioning from SocketIO to websockets. Once the basic FastAPI server is implemented, we can begin adding websockets functionality and exploring user session management.
Pull Request: Please raise the Pull Request to the fastapi-server branch.
Additional Information: If you have any questions or require further clarification regarding the task or its requirements, please don't hesitate to reach out to me.

I am eager to take on this task and contribute to the migration of our server. Assigning me this issue will allow me to begin working on the necessary changes and explore the benefits of FastAPI with websockets.

@PradyumnaKrishna PradyumnaKrishna removed gssoc23 GirlScript Summer of Code level3 Adding Functionalities labels Jun 20, 2023
@PradyumnaKrishna
Copy link
Owner Author

Hey @AishwaryaSatpute1, do you want any help?

@AishwaryaSatpute1
Copy link

Thank you .Right now , I don't need any help , working on it !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Codepeak23 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants