Python WebSocket

Open-source Python projects categorized as WebSocket

Top 23 Python WebSocket Projects

  • mitmproxy

    An interactive TLS-capable intercepting HTTP proxy for penetration testers and software developers.

  • Project mention: Apple's M4 Has Reportedly Adopted the ARMv9 Architecture | news.ycombinator.com | 2024-05-24

    Mainly this was just myself getting irritated at MS Teams and trying to figure out what it was doing. It was a couple years ago and my current company doesn't use teams, thankfully, so I can't really see if its still valid.

    From what I remember..

    There are files on the disk that get updated/overwritten with pulls from the server every time it launches. Somewhere in AppData I think. A few of these are config files (with lots of interesting looking settings, including beta features).

    One of the config entries specifies a telemetry endpoint (which, you _could_ figure out with a network tracing tool but there are a ton of MS telemetry endpoints your machine is probably talking to. Best to just grab the one explicitly being used from the config like this). I forget the full name of the setting but the name pretty clearly indicates its for telemetry, and the file is clearly a config file. If you can't find it just by browsing the structure, try a multi-file search tool and look for 'telemetry' or URL/hostnames.

    You can't really change the value on disk and make it just take effect from there, since it gets downloaded from the server and overwritten before Teams loads. There might be some tricks you can do locally to persist the change but nothing seemed to work for me. You could override response from server via mitmproxy but that requires finding where it comes across the wire at launch time and then building a script/config to replace it.

    Anyway, you can block that telemetry endpoint from a firewall and see your memory bloat. Or you can intercept that endpoint in any mitm proxy. I went with this [mitmproxy](https://mitmproxy.org/). From there you can capture the content it sends to the endpoint, or even change the response the server sends (Teams just seems to expect a 200 code back).

    The telemetry data itself is some kind of streaming event format. I think I even found documentation on the structure on some microsoft website, so its likely a reused format.

    It's pretty straightforward.

    I couldn't spend too much time on it and now it's not something I even use, but some cool things you might want to try if you dive deeper into this:

    - Overwrite the config file as it returns from the server, to turn on EU data protection, change various functionality you're not supposed to, or flip some feature flags.

    - Figure out if there's a feature flag or even other overwrite to fully disable the metrics so they aren't even collected, from anywhere in the app.

    - Intercept telemetry, return an 'OK' response and drop the data from telemetry, or maybe document what they collect more definitively if you think there's interest somewhere. This keeps your privacy but doesn't really do anything for performance.

    - Interfere with the data before actually returning it, maybe try playing with event contents and channel/user indicators. Microsoft probably won't like this if they notice, but it's unlikely they'll even notice.

  • django-channels

    Developer-friendly asynchrony for Django

  • Scout Monitoring

    Free Django app performance insights with Scout Monitoring. Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today.

    Scout Monitoring logo
  • Flask-SocketIO

    Socket.IO integration for Flask applications.

  • websockets

    Library for building WebSocket servers and clients in Python

  • python-slack-sdk

    Slack Developer Kit for Python

  • python-socketio

    Python Socket.IO server and client

  • websocket-client

    WebSocket client for Python

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • AutobahnPython

    WebSocket and WAMP in Python for Twisted and asyncio

  • OPAL

    Policy and data administration, distribution, and real-time updates on top of Policy Agents (OPA, Cedar, ...) (by permitio)

  • Project mention: How to Model Cloud-Native Authorization | dev.to | 2024-05-13

    Automating updates and deployments through CI/CD ensures that changes are applied consistently and without human error across all environments. This automation speeds up the deployment process and enhances security by reducing the risk of misconfigurations. At Permit.io, we primarily manage the policy life cycle as part of a CI process by using projects and environments together with the Environment API. By working with Permit environments for CI, CD is automatically achieved using OPAL, as every environment is automatically deployed to PDPs mapped to them (via their API secret key).

  • cryptofeed

    Cryptocurrency Exchange Websocket Data Feed Handler

  • Project mention: cryptofeed: NEW Data - star count:1876.0 | /r/algoprojects | 2023-10-02
  • Crossbar

    Crossbar.io - WAMP application router

  • Project mention: Crossbar.io Is Down (Forever?) | news.ycombinator.com | 2023-08-25
  • alpaca-trade-api-python

    Python client for Alpaca's trade API

  • django-socketio

    WebSockets for Django

  • socketify.py

    Bringing Http/Https and WebSockets High Performance servers for PyPy3 and Python3

  • bolt-python

    A framework to build Slack apps using Python

  • autobahn-testsuite

    Autobahn WebSocket protocol testsuite

  • Project mention: New WebSockets Client C Library | /r/C_Programming | 2023-07-10

    Sounds pretty interesting. How close you are to the RFC 6455? you can use Autobahn Testsuite to check edge cases.

  • vosk-server

    WebSocket, gRPC and WebRTC speech recognition server based on Vosk and Kaldi libraries

  • client-python

    The official Python client library for the Polygon REST and WebSocket API.

  • huobi_Python

    Python SDK for Huobi Spot API

  • unicorn-binance-websocket-api

    A Python SDK by LUCIT to use the Binance Websocket API`s (com+testnet, com-margin+testnet, com-isolated_margin+testnet, com-futures+testnet, com-coin_futures, us, tr, dex/chain+testnet) in a simple, fast, flexible, robust and fully-featured way.

  • MicroWebSrv

    A micro HTTP Web server that supports WebSockets, html/python language templating and routing handlers, for MicroPython (used on Pycom modules & ESP32)

  • MicroWebSrv2

    The last Micro Web Server for IoTs (MicroPython) or large servers (CPython), that supports WebSockets, routes, template engine and with really optimized architecture (mem allocations, async I/Os). Ready for ESP32, STM32 on Pyboard, Pycom's chipsets (WiPy, LoPy, ...). Robust, efficient and documented!

  • django-sockpuppet

    Build reactive applications with the django tooling you already know and love.

  • Project mention: Почему я программирую на Ruby | dev.to | 2023-10-20
  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Python WebSocket related posts

  • WebSocket security: 9 common vulnerabilities & prevention methods

    2 projects | dev.to | 25 Sep 2023
  • Crossbar.io Is Down (Forever?)

    1 project | news.ycombinator.com | 25 Aug 2023
  • Testing flask socketio

    2 projects | /r/flask | 19 May 2023
  • I'm looking for "Real time" stock market API

    1 project | /r/webdev | 13 May 2023
  • Django WebSockets

    1 project | dev.to | 12 May 2023
  • Django. Работа через WebSocket. Библиотека Channels

    2 projects | dev.to | 15 Feb 2023
  • Options Paper Trading Python SDK/API

    1 project | /r/algotrading | 1 Feb 2023
  • A note from our sponsor - Scout Monitoring
    www.scoutapm.com | 1 Jun 2024
    Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today. Learn more →

Index

What are some of the best open-source WebSocket projects in Python? This list will help you:

Project Stars
1 mitmproxy 34,737
2 django-channels 5,966
3 Flask-SocketIO 5,292
4 websockets 5,017
5 python-slack-sdk 3,800
6 python-socketio 3,808
7 websocket-client 3,487
8 AutobahnPython 2,468
9 OPAL 2,330
10 cryptofeed 2,101
11 Crossbar 2,044
12 alpaca-trade-api-python 1,695
13 django-socketio 1,315
14 socketify.py 1,301
15 bolt-python 1,001
16 autobahn-testsuite 936
17 vosk-server 856
18 client-python 708
19 huobi_Python 680
20 unicorn-binance-websocket-api 677
21 MicroWebSrv 630
22 MicroWebSrv2 627
23 django-sockpuppet 440

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com