[![Test PyPI Build](https://github.com/rathaROG/smooth-fps/actions/workflows/prepublish.yaml/badge.svg)](https://github.com/rathaROG/smooth-fps/actions/workflows/prepublish.yaml)
[![Publish on PyPI](https://github.com/rathaROG/smooth-fps/actions/workflows/publish.yaml/badge.svg)](https://github.com/rathaROG/smooth-fps/actions/workflows/publish.yaml)
# 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](https://pypi.org/project/sfps/):
```
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`](https://github.com/rathaROG/smooth-fps/blob/main/sfps/sfps.py). You can also check an [example here](https://github.com/rathaROG/smooth-fps/blob/main/example).
Raw data
{
"_id": null,
"home_page": "https://github.com/rathaROG/smooth-fps",
"name": "sfps",
"maintainer": "rathaROG",
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "SFPS, FPS, Frame rate, FPS calculator",
"author": "Ratha SIV",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/6a/8f/d3d598ec92eec6952e2f12f8f50f2c0a2e123a706fe9f7259408e01994e7/sfps-0.0.0.tar.gz",
"platform": null,
"description": "[![Test PyPI Build](https://github.com/rathaROG/smooth-fps/actions/workflows/prepublish.yaml/badge.svg)](https://github.com/rathaROG/smooth-fps/actions/workflows/prepublish.yaml)\n[![Publish on PyPI](https://github.com/rathaROG/smooth-fps/actions/workflows/publish.yaml/badge.svg)](https://github.com/rathaROG/smooth-fps/actions/workflows/publish.yaml)\n\n# SFPS - Smooth FPS\n\n`SFPS` is a small and very efficient Python library which helps calculate the real-time computing frame rate with a few lines of code.\n\nYou can install from [PyPI](https://pypi.org/project/sfps/):\n\n```\npip install sfps\n```\n\nYou can import and initialize `SFPS` in your Python code:\n\n```\nfrom sfps import SFPS\nsfps = SFPS(nframes=8, interval=1)\n```\n* `nframes` (`int`, `default=5`) : Number of the last frames, used for averaging.\n* `interval` (`int`, `default=1`) : Time interval in second.\n\nAnd then you can call `fps()` or `raw_fps()` to calculate the real-time frame rate.\n```\n...\nfps = sfps.fps(format_spec='.2f')\n...\n```\n\nFor usage details, please check [`SFPS`](https://github.com/rathaROG/smooth-fps/blob/main/sfps/sfps.py). You can also check an [example here](https://github.com/rathaROG/smooth-fps/blob/main/example).\n",
"bugtrack_url": null,
"license": "BSD-2-Clause",
"summary": "SFPS - Smooth FPS.",
"version": "0.0.0",
"project_urls": {
"Homepage": "https://github.com/rathaROG/smooth-fps"
},
"split_keywords": [
"sfps",
" fps",
" frame rate",
" fps calculator"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "77a98dfa611627dde9ed642706b451d76cad363b2987b5c90dc816d50955a305",
"md5": "ccf449f799d74f5fe8f9004cfdffab14",
"sha256": "99275416ee4c9b3b0930490c4155279b1e74c10c005aab24ac401159a9103da9"
},
"downloads": -1,
"filename": "sfps-0.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ccf449f799d74f5fe8f9004cfdffab14",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3674,
"upload_time": "2024-05-14T20:18:17",
"upload_time_iso_8601": "2024-05-14T20:18:17.805689Z",
"url": "https://files.pythonhosted.org/packages/77/a9/8dfa611627dde9ed642706b451d76cad363b2987b5c90dc816d50955a305/sfps-0.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6a8fd3d598ec92eec6952e2f12f8f50f2c0a2e123a706fe9f7259408e01994e7",
"md5": "7adef0f5a2a4ab1690b8fb7505cbb165",
"sha256": "620b2ceae711e87d952363c499da5b10f42074dd77a5c75672f82c425dd93b9b"
},
"downloads": -1,
"filename": "sfps-0.0.0.tar.gz",
"has_sig": false,
"md5_digest": "7adef0f5a2a4ab1690b8fb7505cbb165",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3741,
"upload_time": "2024-05-14T20:18:18",
"upload_time_iso_8601": "2024-05-14T20:18:18.959478Z",
"url": "https://files.pythonhosted.org/packages/6a/8f/d3d598ec92eec6952e2f12f8f50f2c0a2e123a706fe9f7259408e01994e7/sfps-0.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-14 20:18:18",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "rathaROG",
"github_project": "smooth-fps",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "sfps"
}