Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
game-ready client-server architecture and UDP-based network protocol - built to be easy to use, lightweight, fast, scalable and reliable
Python Game Server
A package for Python 3.6+ that contains a game-ready client-server architecture and UDP-based network protocol.
It deals with problems such as package loss or network congestion so you don't have to. Instead it gives you a high-level API to easily connect clients and backends that share a synchronized game state and exchange events. The async framework for this one is curio, which I highly recommend.
PyGaSe is built to be easy to use, lightweight, fast, scalable and reliable. You can build a fast-paced real-time online game with this. You can also build a large-scale MMO with thousands of clients if you like.
I'm actively developing PyGaSe in the context of several Indie game projects and I'm happy to share it.
BREAKING CHANGE: Version 0.2.0 is basically a new API and updating from 0.1.9 or lower will break you code. It is also much more stable, flexible and powerful, so make sure to use 0.2.0 or higher.
pip install pygase
or better yet poetry add pygase
. Seriously, use poetry, it's a revelation.
For API documentation and a Getting Started section go here.
This example game implements an online game of tag, in which players can move around, while one of them is the chaser who has to catch another player. A player who has been catched becomes the next chaser and can catch other players after a 5s protection countdown.
Run server.py
first, then run client.py
in additional terminal sessions to add players.
Only use the same player name once.
You can use the standard logging
module. On level INFO
you will get logging output for events such as
startups, shutdowns, new connections or disconnects. On DEBUG
level you get detailed output right down to the level
of sending, receiving and handling single network packages.
Debug logs are also a good way to understand the inner workings of PyGaSe.
logging
moduleBackend
class added to reduce server-side boilerplateFAQs
game-ready client-server architecture and UDP-based network protocol - built to be easy to use, lightweight, fast, scalable and reliable
We found that pygase demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.