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.3.tar.gz (9.8 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.3-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hython-1.0.3.tar.gz
  • Upload date:
  • Size: 9.8 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.3.tar.gz
Algorithm Hash digest
SHA256 ce8156c2eed0e244f76a6f857cd85470e88e19d98f79844f541c0703e00cbc12
MD5 a1c82211247977c173c3a15a25f2ea61
BLAKE2b-256 90bbd84ad31de81f96b0c373d7297f0a85d793e4733778bde9ccc883bfe44ce2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hython-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 9.3 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f0035fde9867c41d3c18b59aa572ad13d9ffb422405d70b61032564caa746180
MD5 144632d89d7fdfede3a227cbc63109d2
BLAKE2b-256 cac85cdd0e30c5f170dab0e828cc6710ef895d6504eece02c729d608f2dff357

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