Skip to main content

The ultimate high-performance utility framework for Python, powered by fasthardware.

Project description

Markdown

hython Official Logo

🚀 hython

PyPI version License: MIT

The ultimate high-performance utility framework for Python. Supercharge your functions with just a single decorator.

hython is a next-generation mega-utility pack designed to eliminate Python's performance bottlenecks. Powered by the legendary fasthardware engine, hython allows you to inject hardcore OS-level optimization, strict multicore affinity binding, and ultra-fast computing/networking libraries directly into your critical functions using a simple, native decorator.


⚡ Key Features

  • Built-in fasthardware V2 Engine: Automatically inherits OS priority escalation and multi-process core-binding (ULTIMATE mode).
  • @hython.boost Decorator: Instantly accelerates specific functions on-demand. Boosts hardware efficiency upon entry and clears memory caches immediately upon exit.
  • All-in-One High-Speed Battery Pack: Automatically bundles industry-standard core libraries for high-performance computing and asynchronous networking (NumPy, Requests, AioHTTP).
  • Zero Configuration boilerplate: No tedious setups or multi-package imports. Just decorate and launch.

📦 Installation

Install the complete performance ecosystem with a single command:

pip install hython

(This will automatically install fasthardware, numpy, requests, and aiohttp in the background.)

🛠️ Quick Start

  1. Function-Level On-Demand Acceleration (Recommended) Simply place the @hython.boost() decorator above any heavy CPU-bound or multi-process function.
import hython

Supercharge this specific function and its child processes recursively

@hython.boost(mode="ULTIMATE")
def heavy_data_pipeline():
    # 1. OS priority is elevated to maximum instantly
    # 2. Child processes are strictly bound to isolated CPU cores
    print("Processing massive numbers or real-time streaming...")
# [hython] Automatically provides pre-imported high-speed utilities
# e.g., hython.np, hython.requests, hython.aiohttp are ready to use

# 3. Upon function completion, memory generation-0 cache is swept safely!
  1. Global Environment Initialization If you want to apply the hardware booster globally to your entire script from start to finish:
import hython

Initialize hyper-performance environment for the entire process lifetime

hython.init(mode="ULTIMATE")

Your standard scripts go here...

🏗️ Integrated Ecosystem By installing hython, you instantly get optimized wrappers for:

System Boosting: fasthardware (OS Scheduling Hijacking & Core Affinity)

Fast Vectorization: numpy (C-optimized array operations)

Hyper Network I/O: requests & aiohttp (Blazing fast synchronous & asynchronous I/O)

📜 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

hython-1.0.2.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

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

hython-1.0.2-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file hython-1.0.2.tar.gz.

File metadata

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

File hashes

Hashes for hython-1.0.2.tar.gz
Algorithm Hash digest
SHA256 2168acffe40192f99e6b60ea33fb56b86daefa5908b8e5ce91c1653a9e99952e
MD5 22ab89b99b1efac2c1cbd68f137a8d4f
BLAKE2b-256 153ecce30a2ee489bb95f68009f4f845f4bbb7dc0352ef4fd0e7bacb47c0e651

See more details on using hashes here.

File details

Details for the file hython-1.0.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for hython-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 37204e199951f5503849b303a87d66898aebea635d4015971bad1ddfaf5fe84b
MD5 2d32ae23562378885dff324b582178b4
BLAKE2b-256 efa347770817b76e5959d2b0d0a013fe2ac12293885935c2ee7f6679710e672e

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