Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
A zero-boilerplate games programming framework for Python 3, based on Pygame.
Pygame Zero consists of a runner pgzrun
that will run a Pygame Zero script
with a full game loop and a range of useful builtins.
Here's some of the neat stuff you can do. Note that each of these is a self-contained script. There's no need for any imports or anything else in the file.
Draw graphics (assuming there's a file like images/dog.png
or
images/dog.jpg
)::
def draw():
screen.clear()
screen.blit('dog', (10, 50))
Play the sound sounds/eep.wav
when you click the mouse::
def on_mouse_down():
sounds.eep.play()
Draw an "actor" object (with the sprite images/alien.png
) that moves across
the screen::
alien = Actor('alien')
alien.pos = 10, 10
def draw():
screen.clear()
alien.draw()
def update():
alien.x += 1
if alien.left > WIDTH:
alien.right = 0
See installation instructions
__.
.. __: http://pygame-zero.readthedocs.org/en/latest/installation.html
The full documentation is at http://pygame-zero.readthedocs.org/.
Read the tutorial at http://pygame-zero.readthedocs.org/en/latest/introduction.html for a taste of the other things that Pygame Zero can do.
The project is hosted on Github:
https://github.com/lordmauve/pgzero
If you want to help out with the development of Pygame Zero, you can find some instructions on setting up a development version in the docs:
http://pygame-zero.readthedocs.org/en/latest/contributing.html
FAQs
A zero-boilerplate 2D games framework
We found that pgzero 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.