Skip to main content

Frames

Frames is a lightweight Python frame counter and limiter library.
It provides:

  • Frame rate measurement (FrameCounter)
  • Frame rate limiting (FrameLimit)
  • A convenient singleton Clock for small projects
  • Loop utilities with BREAK sentinel

Installation

pip install frameclock

Usage

from Frames import FrameCounter, FrameLimit, clock, BREAK

# Frame counter
counter = FrameCounter()
print(counter.stamp())

# Frame limiter
limit = FrameLimit(60)
limit.wait(update=True)

# Clock singleton
clock.target_fps(60)
clock.wait(update=True)

Licence

MIT License

Metadata

Release files for frameclock 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 frameclock 1.0.0
File Size Uploaded Provenance Actions
frameclock-1.0.0.tar.gz 5.0 kB Without provenance Details for frameclock-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 11.3 kB

Release files / frameclock-1.0.0.tar.gz

Download URL frameclock-1.0.0.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5208d402439b2a6087a167d301b879c40b7f807c17c894b4e8fa153f010aac9b
BLAKE2b-256 checksum
How to use checksums
dd849a535f0acc2b02a353d239dfc0e82bb3fb94841e1defbaae9d6eb938b98c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / frameclock-1.0.0-py3-none-any.whl

Download URL frameclock-1.0.0-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bce98ed1ffcab186e3def38372759dd12a3b54cd6b95bacc5271897bcb44fe5b
BLAKE2b-256 checksum
How to use checksums
0e169b04d1262899c9f4ee270b1e7c007de05708e541035359c9a8d1b5a7ebbc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Security for frameclock 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