fasthardware 2.2.2__tar.gz → 2.2.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,96 @@
1
+ Metadata-Version: 2.4
2
+ Name: fasthardware
3
+ Version: 2.2.3
4
+ Summary: Hyper-Performance Environment Setup for AI & Hardware Accelerating. Thank you for searching ungyoseries.
5
+ Author: 최운교
6
+ Classifier: Programming Language :: Python :: 3
7
+ Classifier: Operating System :: Microsoft :: Windows
8
+ Requires-Python: >=3.8
9
+ Description-Content-Type: text/markdown
10
+ Requires-Dist: numpy>=1.20.0
11
+ Requires-Dist: aiohttp>=3.8.0
12
+ Requires-Dist: requests>=2.25.0
13
+ Requires-Dist: openvino>=2023.0.0
14
+ Requires-Dist: opencv-python>=4.5.0
15
+ Dynamic: author
16
+ Dynamic: classifier
17
+ Dynamic: description
18
+ Dynamic: description-content-type
19
+ Dynamic: requires-dist
20
+ Dynamic: requires-python
21
+ Dynamic: summary
22
+
23
+ Markdown
24
+ # ⚡ fasthardware
25
+
26
+ An ultra-performance hardware acceleration backend designed for mission-critical AI inference pipelines, real-time computer vision, and low-latency system-level resource optimization.
27
+
28
+ `fasthardware` bypasses standard Python execution bottlenecks through low-level environment tuning, high-speed non-blocking I/O architectures, and proactive working-set memory management.
29
+
30
+ ---
31
+
32
+ ## 🚀 Core Functionalities
33
+
34
+ ### 1. System-Level Hardware Boosting (`speedup`)
35
+ Directly optimizes runtime behaviors, thread scheduling priorities, and memory allocation sub-systems tailored for heavy mathematical computations and deep learning workloads.
36
+ * **ULTIMATE Mode:** Unlocks raw hardware performance by forcing extreme priority states and locking down low-latency execution paths.
37
+
38
+ ### 2. Zero-Latency Background Streaming (`FastVideoStream`)
39
+ Eliminate camera I/O blocking lags entirely. Runs frame acquisition on a dedicated hardware-isolated background thread utilizing atomic GIL-safe variable swapping for absolute thread safety.
40
+
41
+ ### 3. Proactive Working-Set Purging (`manual_sweep`)
42
+ Enforces strict zero-memory-leak runtimes during prolonged production hot-loops by proactively trimming process working-sets and triggering low-level system garbage collection.
43
+
44
+ ---
45
+
46
+ ## 💻 Code Reference & Quick Start
47
+
48
+ ### ⚡ Environment Initialization
49
+ Maximize your system's capabilities at the absolute entry point of your pipeline:
50
+
51
+ ```python
52
+ from fasthardware import fasthardware
53
+
54
+ # Boot up the hyper-performance scheduler
55
+ fasthardware.speedup(mode="ULTIMATE")
56
+ ```
57
+ 📹 Asynchronous High-Speed Frame Capture
58
+ Read the absolute latest video frames without blocking the main AI inference loop:
59
+
60
+ ```Python
61
+ # Initialize and start the thread-isolated stream engine
62
+ vs = fasthardware.FastVideoStream(src=0).start()
63
+
64
+ while True:
65
+ # Instantly fetches the latest frame without CV2 overhead delay
66
+ frame = vs.read()
67
+ ```
68
+
69
+ # [Your Heavy Inference / YOLOv8-Pose Logic Here]
70
+ 🛡️ Real-Time Memory Management
71
+ Prevent memory inflation inside infinite loops by scheduling regular workspace purges:
72
+
73
+ ```Python
74
+ # Execute an explicit hardware working-set sweep
75
+ fasthardware.manual_sweep()
76
+ ```
77
+ ⚙️ Module Scope & Architecture
78
+ ```Plaintext
79
+ fasthardware (Core Module)
80
+ ├── speedup(mode) --> Tuning CPU/GPU Threading & OS Priorities
81
+ ├── manual_sweep() --> Low-Level RAM Purge & Workspace Trimming
82
+ └── FastVideoStream(src) --> Thread-Isolated Asynchronous Frame Swapping
83
+ ```
84
+ 🛠️ Package Metadata & Requirements
85
+ Supported OS: Windows 10 / 11 (Optimized for Win32 & OpenVINO execution layers)
86
+
87
+ Core Dependencies: numpy, opencv-python, aiohttp, requests
88
+
89
+ Local Development Injection
90
+ To lock down this acceleration module and bind it to your active virtual environment (.venv2), link it via the root setup compiler:
91
+
92
+ ```PowerShell
93
+ pip install -e .
94
+ ```
95
+ 📜 License
96
+ Engineered and optimized exclusively by ungyo. All rights reserved.
@@ -0,0 +1,74 @@
1
+ Markdown
2
+ # ⚡ fasthardware
3
+
4
+ An ultra-performance hardware acceleration backend designed for mission-critical AI inference pipelines, real-time computer vision, and low-latency system-level resource optimization.
5
+
6
+ `fasthardware` bypasses standard Python execution bottlenecks through low-level environment tuning, high-speed non-blocking I/O architectures, and proactive working-set memory management.
7
+
8
+ ---
9
+
10
+ ## 🚀 Core Functionalities
11
+
12
+ ### 1. System-Level Hardware Boosting (`speedup`)
13
+ Directly optimizes runtime behaviors, thread scheduling priorities, and memory allocation sub-systems tailored for heavy mathematical computations and deep learning workloads.
14
+ * **ULTIMATE Mode:** Unlocks raw hardware performance by forcing extreme priority states and locking down low-latency execution paths.
15
+
16
+ ### 2. Zero-Latency Background Streaming (`FastVideoStream`)
17
+ Eliminate camera I/O blocking lags entirely. Runs frame acquisition on a dedicated hardware-isolated background thread utilizing atomic GIL-safe variable swapping for absolute thread safety.
18
+
19
+ ### 3. Proactive Working-Set Purging (`manual_sweep`)
20
+ Enforces strict zero-memory-leak runtimes during prolonged production hot-loops by proactively trimming process working-sets and triggering low-level system garbage collection.
21
+
22
+ ---
23
+
24
+ ## 💻 Code Reference & Quick Start
25
+
26
+ ### ⚡ Environment Initialization
27
+ Maximize your system's capabilities at the absolute entry point of your pipeline:
28
+
29
+ ```python
30
+ from fasthardware import fasthardware
31
+
32
+ # Boot up the hyper-performance scheduler
33
+ fasthardware.speedup(mode="ULTIMATE")
34
+ ```
35
+ 📹 Asynchronous High-Speed Frame Capture
36
+ Read the absolute latest video frames without blocking the main AI inference loop:
37
+
38
+ ```Python
39
+ # Initialize and start the thread-isolated stream engine
40
+ vs = fasthardware.FastVideoStream(src=0).start()
41
+
42
+ while True:
43
+ # Instantly fetches the latest frame without CV2 overhead delay
44
+ frame = vs.read()
45
+ ```
46
+
47
+ # [Your Heavy Inference / YOLOv8-Pose Logic Here]
48
+ 🛡️ Real-Time Memory Management
49
+ Prevent memory inflation inside infinite loops by scheduling regular workspace purges:
50
+
51
+ ```Python
52
+ # Execute an explicit hardware working-set sweep
53
+ fasthardware.manual_sweep()
54
+ ```
55
+ ⚙️ Module Scope & Architecture
56
+ ```Plaintext
57
+ fasthardware (Core Module)
58
+ ├── speedup(mode) --> Tuning CPU/GPU Threading & OS Priorities
59
+ ├── manual_sweep() --> Low-Level RAM Purge & Workspace Trimming
60
+ └── FastVideoStream(src) --> Thread-Isolated Asynchronous Frame Swapping
61
+ ```
62
+ 🛠️ Package Metadata & Requirements
63
+ Supported OS: Windows 10 / 11 (Optimized for Win32 & OpenVINO execution layers)
64
+
65
+ Core Dependencies: numpy, opencv-python, aiohttp, requests
66
+
67
+ Local Development Injection
68
+ To lock down this acceleration module and bind it to your active virtual environment (.venv2), link it via the root setup compiler:
69
+
70
+ ```PowerShell
71
+ pip install -e .
72
+ ```
73
+ 📜 License
74
+ Engineered and optimized exclusively by ungyo. All rights reserved.
@@ -0,0 +1,96 @@
1
+ Metadata-Version: 2.4
2
+ Name: fasthardware
3
+ Version: 2.2.3
4
+ Summary: Hyper-Performance Environment Setup for AI & Hardware Accelerating. Thank you for searching ungyoseries.
5
+ Author: 최운교
6
+ Classifier: Programming Language :: Python :: 3
7
+ Classifier: Operating System :: Microsoft :: Windows
8
+ Requires-Python: >=3.8
9
+ Description-Content-Type: text/markdown
10
+ Requires-Dist: numpy>=1.20.0
11
+ Requires-Dist: aiohttp>=3.8.0
12
+ Requires-Dist: requests>=2.25.0
13
+ Requires-Dist: openvino>=2023.0.0
14
+ Requires-Dist: opencv-python>=4.5.0
15
+ Dynamic: author
16
+ Dynamic: classifier
17
+ Dynamic: description
18
+ Dynamic: description-content-type
19
+ Dynamic: requires-dist
20
+ Dynamic: requires-python
21
+ Dynamic: summary
22
+
23
+ Markdown
24
+ # ⚡ fasthardware
25
+
26
+ An ultra-performance hardware acceleration backend designed for mission-critical AI inference pipelines, real-time computer vision, and low-latency system-level resource optimization.
27
+
28
+ `fasthardware` bypasses standard Python execution bottlenecks through low-level environment tuning, high-speed non-blocking I/O architectures, and proactive working-set memory management.
29
+
30
+ ---
31
+
32
+ ## 🚀 Core Functionalities
33
+
34
+ ### 1. System-Level Hardware Boosting (`speedup`)
35
+ Directly optimizes runtime behaviors, thread scheduling priorities, and memory allocation sub-systems tailored for heavy mathematical computations and deep learning workloads.
36
+ * **ULTIMATE Mode:** Unlocks raw hardware performance by forcing extreme priority states and locking down low-latency execution paths.
37
+
38
+ ### 2. Zero-Latency Background Streaming (`FastVideoStream`)
39
+ Eliminate camera I/O blocking lags entirely. Runs frame acquisition on a dedicated hardware-isolated background thread utilizing atomic GIL-safe variable swapping for absolute thread safety.
40
+
41
+ ### 3. Proactive Working-Set Purging (`manual_sweep`)
42
+ Enforces strict zero-memory-leak runtimes during prolonged production hot-loops by proactively trimming process working-sets and triggering low-level system garbage collection.
43
+
44
+ ---
45
+
46
+ ## 💻 Code Reference & Quick Start
47
+
48
+ ### ⚡ Environment Initialization
49
+ Maximize your system's capabilities at the absolute entry point of your pipeline:
50
+
51
+ ```python
52
+ from fasthardware import fasthardware
53
+
54
+ # Boot up the hyper-performance scheduler
55
+ fasthardware.speedup(mode="ULTIMATE")
56
+ ```
57
+ 📹 Asynchronous High-Speed Frame Capture
58
+ Read the absolute latest video frames without blocking the main AI inference loop:
59
+
60
+ ```Python
61
+ # Initialize and start the thread-isolated stream engine
62
+ vs = fasthardware.FastVideoStream(src=0).start()
63
+
64
+ while True:
65
+ # Instantly fetches the latest frame without CV2 overhead delay
66
+ frame = vs.read()
67
+ ```
68
+
69
+ # [Your Heavy Inference / YOLOv8-Pose Logic Here]
70
+ 🛡️ Real-Time Memory Management
71
+ Prevent memory inflation inside infinite loops by scheduling regular workspace purges:
72
+
73
+ ```Python
74
+ # Execute an explicit hardware working-set sweep
75
+ fasthardware.manual_sweep()
76
+ ```
77
+ ⚙️ Module Scope & Architecture
78
+ ```Plaintext
79
+ fasthardware (Core Module)
80
+ ├── speedup(mode) --> Tuning CPU/GPU Threading & OS Priorities
81
+ ├── manual_sweep() --> Low-Level RAM Purge & Workspace Trimming
82
+ └── FastVideoStream(src) --> Thread-Isolated Asynchronous Frame Swapping
83
+ ```
84
+ 🛠️ Package Metadata & Requirements
85
+ Supported OS: Windows 10 / 11 (Optimized for Win32 & OpenVINO execution layers)
86
+
87
+ Core Dependencies: numpy, opencv-python, aiohttp, requests
88
+
89
+ Local Development Injection
90
+ To lock down this acceleration module and bind it to your active virtual environment (.venv2), link it via the root setup compiler:
91
+
92
+ ```PowerShell
93
+ pip install -e .
94
+ ```
95
+ 📜 License
96
+ Engineered and optimized exclusively by ungyo. All rights reserved.
@@ -0,0 +1,42 @@
1
+ # setup.py
2
+ import os
3
+ from setuptools import setup, find_packages
4
+
5
+ # 💡 최상위 폴더나 하위 폴더에 있는 README.md 파일을 안전하게 읽어오는 로직
6
+ readme_path = os.path.join(os.path.dirname(__file__), "README.md")
7
+ if os.path.exists(readme_path):
8
+ with open(readme_path, encoding="utf-8") as f:
9
+ long_description = f.read()
10
+ else:
11
+ long_description = "Hyper-Performance Environment Setup for AI & Hardware Accelerating"
12
+
13
+ setup(
14
+ name="fasthardware",
15
+ version="2.2.3",
16
+ description="Hyper-Performance Environment Setup for AI & Hardware Accelerating. Thank you for searching ungyoseries.",
17
+
18
+ # 💡 README.md 파일의 내용을 패키지 상세 설명으로 마크다운 포맷팅 주입!
19
+ long_description=long_description,
20
+ long_description_content_type="text/markdown",
21
+
22
+ author="최운교",
23
+
24
+ # ungyoseries 폴더 및 하위 fasthardware 폴더를 자동 탐색
25
+ packages=find_packages(),
26
+ include_package_data=True,
27
+ python_requires=">=3.8",
28
+
29
+ # 런타임 절대 의존성 패키지 목록
30
+ install_requires=[
31
+ "numpy>=1.20.0",
32
+ "aiohttp>=3.8.0",
33
+ "requests>=2.25.0",
34
+ "openvino>=2023.0.0",
35
+ "opencv-python>=4.5.0",
36
+ ],
37
+
38
+ classifiers=[
39
+ "Programming Language :: Python :: 3",
40
+ "Operating System :: Microsoft :: Windows",
41
+ ],
42
+ )
@@ -1,18 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: fasthardware
3
- Version: 2.2.2
4
- Summary: Hyper-Performance Environment Setup for AI & Hardware Accelerating
5
- Author: ungyo
6
- Classifier: Programming Language :: Python :: 3
7
- Classifier: Operating System :: Microsoft :: Windows
8
- Requires-Python: >=3.8
9
- Requires-Dist: numpy>=1.20.0
10
- Requires-Dist: aiohttp>=3.8.0
11
- Requires-Dist: requests>=2.25.0
12
- Requires-Dist: openvino>=2023.0.0
13
- Requires-Dist: opencv-python>=4.5.0
14
- Dynamic: author
15
- Dynamic: classifier
16
- Dynamic: requires-dist
17
- Dynamic: requires-python
18
- Dynamic: summary
@@ -1,52 +0,0 @@
1
- Markdown
2
- # 🚀 ungyoseries
3
-
4
- `hython` is a hyper-performance optimization framework designed to break through Python's runtime limitations and extract 100% of the underlying hardware potential.
5
-
6
- By seamlessly integrating with `fasthardware V2`, the low-level system tuning engine, `hython` allows you to manage OS scheduler preemption, OpenVINO iGPU cache synchronization, and OpenCV SIMD acceleration with just a single line of code.
7
-
8
- ---
9
-
10
- ## 🛠️ Core Features
11
-
12
- 1. **`fasthardware` Backbone**: Native integration with the core hardware acceleration module as a strict dependency, guaranteeing an optimized execution layer.
13
- 2. **OS Process Preemption**: Dynamically elevates the process priority to the highest tier (`HIGH_PRIORITY_CLASS` on Windows / `NICE -20` on Linux) and binds child processes to dedicated CPU cores (`ULTIMATE` mode) to eliminate context-switching overhead.
14
- 3. **OpenVINO Singleton Acceleration**: Synchronizes the core instance to leverage the Intel iGPU `LATENCY` optimization hint and handles model caching to eliminate initial compilation delays.
15
- 4. **Intelligent GC Scheduling**: Suppresses the background Python Garbage Collector during execution to wipe out frame drops (stuttering), while executing low-level virtual memory working set flushes via `manual_sweep()` right at the function exit.
16
- 5. **Built-in Aliasing**: Exposes direct access to high-speed computation modules like `hython.np` and the engine `hython.fasthardware` out of the box.
17
-
18
- ---
19
-
20
- ## 📦 Local Developer Installation
21
-
22
- Open your terminal in the project's root directory and run the following commands to perform a clean build and forced update:
23
-
24
- ```bash
25
- # 1. Clean previous build caches and metadata
26
- rmdir /s /q build dist hython.egg-info
27
-
28
- # 2. Re-install in editable mode based on the verified setup.py
29
- python setup.py sdist bdist_wheel
30
- pip install --upgrade -e .
31
- 💻 Usage
32
- Global Initialization and Pipeline Wrapping
33
- Call init exactly once when the main script boots to configure the system environment, and wrap your real-time processing loop with the @hython.boost() decorator to prevent memory leaks and frame jitter.
34
-
35
- Python
36
- from ungyoseries import hython
37
-
38
- # 1. Initialize global hardware tuning (ULTIMATE mode recruits all child processes)
39
- hython.init(mode="ULTIMATE")
40
-
41
- # 2. Decorate the pipeline for frame-drop protection and automatic memory overhaul
42
- @hython.boost()
43
- def my_heavy_pipeline():
44
- # Directly access high-speed libraries embedded in hython
45
- large_matrix = hython.np.ones(50000000)
46
- print("🚀 Hyper-performance real-time inference pipeline is active.")
47
-
48
- # Explicitly invoke a low-level working set flush inside the loop if necessary
49
- hython.fasthardware.manual_sweep()
50
-
51
- if __name__ == "__main__":
52
- my_heavy_pipeline()
@@ -1,18 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: fasthardware
3
- Version: 2.2.2
4
- Summary: Hyper-Performance Environment Setup for AI & Hardware Accelerating
5
- Author: ungyo
6
- Classifier: Programming Language :: Python :: 3
7
- Classifier: Operating System :: Microsoft :: Windows
8
- Requires-Python: >=3.8
9
- Requires-Dist: numpy>=1.20.0
10
- Requires-Dist: aiohttp>=3.8.0
11
- Requires-Dist: requests>=2.25.0
12
- Requires-Dist: openvino>=2023.0.0
13
- Requires-Dist: opencv-python>=4.5.0
14
- Dynamic: author
15
- Dynamic: classifier
16
- Dynamic: requires-dist
17
- Dynamic: requires-python
18
- Dynamic: summary
@@ -1,25 +0,0 @@
1
- # setup.py
2
- from setuptools import setup, find_packages
3
-
4
- setup(
5
- name="fasthardware",
6
- version="2.2.2",
7
- description="Hyper-Performance Environment Setup for AI & Hardware Accelerating",
8
- author="ungyo",
9
- # 💡 ungyoseries 폴더와 그 하위 패키지(fasthardware)를 통째로 자동 탐색하여 묶습니다.
10
- packages=find_packages(),
11
- include_package_data=True,
12
- python_requires=">=3.8",
13
- # 💡 보스의 프레임워크가 요구하는 핵심 의존성 라이브러리 자동 매핑
14
- install_requires=[
15
- "numpy>=1.20.0",
16
- "aiohttp>=3.8.0",
17
- "requests>=2.25.0",
18
- "openvino>=2023.0.0",
19
- "opencv-python>=4.5.0",
20
- ],
21
- classifiers=[
22
- "Programming Language :: Python :: 3",
23
- "Operating System :: Microsoft :: Windows",
24
- ],
25
- )
File without changes