Skip to main content

fps-limiter

Limit while loop at certain fps rate

Installation

pip install fps-limiter

Examples

Example #1

from fps_limiter import LimitFPS, FPSCounter

fps_limiter = LimitFPS(fps=15)
fps_counter = FPSCounter()

while True:
    if fps_limiter():
        print("current fps: %s" % fps_counter())

Example #2

from fps_limiter import LimitFPS, FPSCounter

fps_limiter = LimitFPS(fps=15)

while True:
    if fps_limiter():
        print("elapsed seconds: %s" % fps_limiter.get_elapsed_seconds())

License

MIT

Metadata

Release files for fps-limiter 0.1.1

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

Source distribution (sdist)

Source distribution for fps-limiter 0.1.1
File Size Uploaded Provenance
fps-limiter-0.1.1.tar.gz 1.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for fps-limiter 0.1.1
File Interpreter ABI Platform
fps_limiter-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 4.3 kB

Release files / fps-limiter-0.1.1.tar.gz

Download URL fps-limiter-0.1.1.tar.gz
Size 1.5 kB
Tags Source
SHA-256 checksum
How to use checksums
36c09483b5aeecbca0f2ee7f0c1d59bd4a745c426c668a26c5685db94fa193f1
BLAKE2b-256 checksum
How to use checksums
ae4b3cede46b2bc95dcb9eba294955e161fd267d510aab4f5a35991582503e97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.6.9

Release files / fps_limiter-0.1.1-py3-none-any.whl

Download URL fps_limiter-0.1.1-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4927d3448fa558db4eb51998691a7e84ac982e653e1c887e348cceee9b7623ed
BLAKE2b-256 checksum
How to use checksums
fe8f24f08ddd2114f9e9c2e198582d4f7de1834da2981b21101c858d98a0566f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.6.9

Security for fps-limiter 0.1.1

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

0.1.1 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