pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/BimaAdi/fastapi-with-python-socketio-example

ink crossorigen="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/repository-6534fbc3f5e83ac0.css" /> GitHub - BimaAdi/fastapi-with-python-socketio-example: Example how to connect fastapi with python-socketio · GitHub
Skip to content

Repository files navigation

Connect fastapi with python-socketio example

Example how to connect fastapi with python-socketio

Requirements

  • Python 3.11 (tested in python 3.11)
  • pip or poetry
  • Message queue (redis. kafka, rabbitmq) (not required but recommended for production)

Instalation using pip

  1. Create virtual env python -m venv env and activate it source env/bin/activate
  2. install depedency pip install -r requirements.txt
  3. Edit core/socket_io.py based on message_queue configuration (if you don't want use any message queue just comment line 5)
  4. run the server uvicorn main:app
  5. on browser open http://localhost:8000/static/index.html

Instalation using poetry

  1. install depedency poetry install
  2. Edit core/socket_io.py based on message_queue configuration (if you don't want use any message queue just comment line 5)
  3. run the server poetry run uvicorn main:app
  4. on browser open http://localhost:8000/static/index.html

References

  1. https://www.reddit.com/r/FastAPI/comments/neds9c/integrate_socketio_with_fastapi/
  2. fastapi/fastapi#129

About

Example how to connect fastapi with python-socketio

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy