Skip to main content

Maximize the absolute computing power of your Python process with a single line of code.

Project description

Markdown

fasthardware

PyPI version Downloads License: MIT

Maximize the absolute computing power of your Python process with just a single line of code.

fasthardware is a lightweight, zero-configuration hardware acceleration injector designed for high-performance, real-time Python applications (e.g., YOLO object detection, MediaPipe pose estimation, OpenCV video processing pipelines, and AI inference loops).

By hijacking the OS scheduler, optimizing runtime memory management, and forcing C-level multi-threading, fasthardware eliminates micro-stuttering and boosts real-time processing speed (FPS) by up to 40%.


Key Features

  • OS Priority Escalation: Automatically forces the host OS (Windows/Linux) to allocate maximum CPU scheduling priority to your Python process.
  • Micro-Stuttering Elimination: Optimizes Python's Garbage Collection (GC) thresholds to prevent the dreaded "Stop-the-World" latency spikes during heavy loops.
  • C-Level Multicore Mobilization: Injects global environment flags (OMP, MKL, OPENBLAS, NUMEXPR) to force underlying C/C++ backed libraries (NumPy, OpenCV) to utilize every single logical core available.
  • Zero-Config Integration: No code rewrites. Just import it at the very top of your script, and you are good to go.

Installation

Install the package directly from PyPI:

pip install fasthardware

️ Quick Start Simply import fasthardware and ignite the supercharger engine before your main execution loop.

# 1. Import the engine at the absolute top of your script
from fasthardware import fasthardware

# 2. Unlock the full potential of your hardware
fasthardware.speedup()

import cv2
import numpy as np

# Your heavy real-time loop (YOLO, MediaPipe, OpenCV, etc.)
while True:
    # Experience smoother, higher FPS performance!
    pass
 Manual Memory Sweeping (Optional)
For ultra-heavy asynchronous pipelines (e.g., blending AI inference with heavy API requests or Text-to-Speech), you can manually sweep the 0-generation memory cache without breaking your frame rate:

License This project is licensed under the MIT License - see the LICENSE file for details.

Developed with by Choi Woongyo

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

fasthardware-1.3.6.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

fasthardware-1.3.6-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file fasthardware-1.3.6.tar.gz.

File metadata

  • Download URL: fasthardware-1.3.6.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for fasthardware-1.3.6.tar.gz
Algorithm Hash digest
SHA256 926977ac6f9215cf764de79525dbf31bf08ffb5c5a7f31f68ebe2d60d61dbb76
MD5 972a2efdeecca97b69874ee629bb77a4
BLAKE2b-256 0650542393ee81faced57ecf279d429bab5ad736453e3dddf10dc4eed3f1e44a

See more details on using hashes here.

File details

Details for the file fasthardware-1.3.6-py3-none-any.whl.

File metadata

  • Download URL: fasthardware-1.3.6-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for fasthardware-1.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9588ee0b319078f58ebfd2dc47845e6b5ca0318a4084ccbbcae0eef23a203416
MD5 ac1700eb7c129702a1cb40d480bfda09
BLAKE2b-256 460c761af2c5e604a882d13fd2505398db79c970a1a23b09d7b2024092c131e0

See more details on using hashes here.

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