Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Async proxy for Source Engine Query Protocol

Project description


Basically Source game-servers works in one thread and can’t use more than one core for in-game logic. For example - CS:GO, CS:Source, Left 4 Dead 2, etc.

Yes, you can use SourceMod to offload calculations (use threading), but we talking about common game logic. E.g. you can try use DoS Protection extension, but caching is not fast solution, cause server spent time to receiving and sending answer from cache.

This solution allow redirect some (A2S query) packets to backend and game server don’t spent time to answer anymore.


Source Engine messages inspired by Python-valve


Python 3.7 or above

You can use pyenv to install any version of Python without root privileges


pip install source-query-proxy==2.0.0


sqproxy search configs in /etc/sqproxy/conf.d and ./conf.d directories. You should place your config files only in this directories.

For more info see examples


sqproxy run

Run with eBPF

  1. Download eBPF script and copy src-ebpf folder to target working directory
  2. Install requirements
  3. Enable eBPF in config (see examples/00-globals.yaml)
  4. Run
sqproxy run


git clone
cd source-query-proxy
poetry install

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for source-query-proxy, version 2.0.0
Filename, size File type Python version Upload date Hashes
Filename, size source_query_proxy-2.0.0-py3-none-any.whl (34.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size source-query-proxy-2.0.0.tar.gz (32.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page