Skip to main content

SFPS - Smooth FPS.

Project description

Test PyPI Build Publish on PyPI

SFPS - Smooth FPS

SFPS is a small and very efficient Python library which helps calculate the real-time computing frame rate with a few lines of code.

You can install from PyPI:

pip install sfps

You can import and initialize SFPS in your Python code:

from sfps import SFPS
sfps = SFPS(nframes=8, interval=1)
  • nframes (int, default=5) : Number of the last frames, used for averaging.
  • interval (int, default=1) : Time interval in second.

And then you can call fps() or raw_fps() to calculate the real-time frame rate.

...
fps = sfps.fps(format_spec='.2f')
...

For usage details, please check SFPS. You can also check an example here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sfps-0.0.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sfps-0.0.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file sfps-0.0.1.tar.gz.

File metadata

  • Download URL: sfps-0.0.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sfps-0.0.1.tar.gz
Algorithm Hash digest
SHA256 abc1bcb4eeac78022830dad0e476fba40b3bb10ac0e283a8a6af9460be4870f5
MD5 0edb76fb50a1c8482e22c38659b4ccf0
BLAKE2b-256 6f246053513392525fe891288e4ff4e0a53105471d07e0800d6bd6136706116d

See more details on using hashes here.

Provenance

The following attestation bundles were made for sfps-0.0.1.tar.gz:

Publisher: publish.yaml on rathaROG/smooth-fps

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sfps-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: sfps-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sfps-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 db2832806964ee0597fdd159675ea0966375151d99627dd7b5e893a3a970b150
MD5 119f04af3e7f803ba578925f628fa9c6
BLAKE2b-256 39240e59f0daa67ba1a46ab4838a7f3df125c7d70730b32c823da589ee0e00d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for sfps-0.0.1-py3-none-any.whl:

Publisher: publish.yaml on rathaROG/smooth-fps

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page