Skip to main content

pygamesilent

Background

There is a mature open-source library for building multimedia applications, like games, called PyGame.

Unfortunately, in an effort to recuit more developers, the maintainers added some output to the library around version 1.9.4, so it now prints text similar to this upon import:

pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html

This move has been confusing (especially for user-facing command-line tools) and controversial but complaints about the behaviour have been dismissed.

Description

This package provides a shim around PyGame that turns off the unwanted printing behaviour with an environment variable. It is designed to be a simple drop in replacement wherever you would use PyGame.

There are manual alternatives which have the benefit of reducing an external dependency, but this is simpler:

  1. Install both pygame and pygamesilent into your project.
  2. Replace any instances of these types of statements:
  • import pygame → import pygamesilent as pygame
  • import pygame as pg → import pygamesilent as pg
  • import xxx from pygame → import xxx from pygamesilent

Versions Supported

This is expected to be cross platform. It has been tested on Windows 10 and Linux.

It is tested on Python 2.7, 3.5, 3.6 and 3.7.

Note

This has not been authorised by the PyGame team. The author is not associated with them.

You will still need to install and use PyGame, their documentation and follow their licenses.

You might even like to contribute to their project! Perhaps you can then politely convince them not to put spam in stdio?

Metadata

Release files for pygamesilent 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pygamesilent 1.0.0
File Size Uploaded Provenance Actions
pygamesilent-1.0.0.tar.gz 7.0 kB Without provenance Details for pygamesilent-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pygamesilent 1.0.0
File Interpreter ABI Platform Actions
pygamesilent-1.0.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for pygamesilent-1.0.0-py2.py3-none-any.whl

Total release size: 10.8 kB

Release files / pygamesilent-1.0.0.tar.gz

Download URL pygamesilent-1.0.0.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
bb701d82e39c4b6359770a96a11ef23f42b11b91b2918283246343cdd17bbc09
BLAKE2b-256 checksum
How to use checksums
c94d2fa214a83b7180c92b0e17a873e17663855f60ee30849d86c4343afaa2e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

Release files / pygamesilent-1.0.0-py2.py3-none-any.whl

Download URL pygamesilent-1.0.0-py2.py3-none-any.whl
Size 3.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
08febd05e092a1cd82c14b570944f94e2e5126015c25975792163263882c792a
BLAKE2b-256 checksum
How to use checksums
f4fd6439e8281c418ffae1e36d2a8883e8973397f94c23ab0fc368a2d141bb3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

Security for pygamesilent 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page