semvec/pypi-packages huggingface dataset:
latencyai 0.1.1
AI Performance Engineer
License: MIT
Requires Python: >=3.9
Keywords: Performance engineering, Performance tuning

# LatencyAI - AI Performance Engineer

## Introduction

LatencyAI is an AI agent that optimizes any Python code for best performance using reasoning LLMs. It iteratively profiles, optimizes, and benchmarks the code. The goal is to optimize code by GPU offloading, using data/task parallel, latency hiding and other techniques.

**Note: this is an experimental library. Subscribe for updates at [latency.ai](https://latency.ai).**

## Installation

* (Optional) Deploy a CUDA-enabled GPU instance
* `pip install --upgrade latencyai`

## Usage

* Set the OPEANAI_API_KEY environment variable
* Run `python -m latencyai --runs=3 script-to-optimize.py`. Optionally set `--runs`, which is the number of optimization attempts, i.e. optimize-benchmark-profile iterations. The default is 2.

The provided script should have a `main` function. The benchmark runner calls it multiple times, depending on it's execution time.

If optimization is successful, a file named `<original-script>_optimized.py` is be written to original script directory.

## Tracking optimizations

After integrating optimized code into your application, you can verify and track end-to-end performance improvements in deployed applications using [Graphsignal](https://graphsignal.com/).
thirty-days-of-pyai-helpers 0.1.34
30 Days of AI with Python Course helper functions.
License: MIT
Requires Python: >=3.6

# 30 Days of PyAI Helpers

A collection of helper functions designed to support the *30 Days of AI with Python* course by Witeout Codes. This library provides utilities to streamline coding tasks, including colorful terminal output with `colorama`.

## Installation

Install the package via PyPI:

```bash
pip install thirty-days-of-pyai-helpers
```


## Usage
Here’s an example of using the helper functions (assuming print_helpers.py contains slow_print, etc.):

```python
from thirty_days_of_pyai_helpers.print_helpers import slow_print, slow_print_header, slow_print_error

# Print text slowly with color
slow_print("Processing AI task...", color="white")
slow_print_header("Day 1: Introduction to AI")
slow_print_error("Error: Missing input data")
```