semvec/pypi-packages huggingface dataset:
types-OpenTimelineIO 0.17.0.1
python stubs for the OpenTimelineIO python API
Keywords: 3d, CG, VFX, animation, games, graphics

# python stubs for OpenTimelineIO

High quality python type stubs for the [OpenTimelineIO python API](https://github.com/AcademySoftwareFoundation/OpenTimelineIO/).

These stubs are designed to be used with a type checker like `mypy` to provide static type checking of python code, as well as to provide analysis and completion in IDEs like PyCharm and VSCode (with Pylance).

## Installing

```commandline
pip install types-OpenTimelineIO
```

The version of the package corresponds to the version of the library that it is generated from,
plus a version suffix for the revision of the stubs
query-search 0.0.4
A package to filter pipe outputs or text files like `grep` using sql syntax
Requires Python: >=3.10
Keywords: terminal query search grep sql

## Terminal Query Search

This package lets you query filter files, folders or pipe outputs using SQL syntax

This uses python's `sqlite3` module for querying

### Table of Contents
- [Installation](#installation) <!-- - [Quick Start](#quick-start) -->
- [Learn by Example](#learn-by-example) 
- [Table Structure](#table-structure)
- [License](#license)

### Installation

`pip install query-search`

### Learn by Example

```shell
cat file.txt | qq "where lower(line) like '%daniel%'"
# or
echo hello | qq "select line from logs"
# or
echo hello | qq path:/path/to/some.sql
# or
qq "where line like 'id: %'" /path/to/my.txt
# or 
qq "select 'Line: ' || i as line_index, line from logs where line like 'id: %'" /path/to/my.txt
# or 
qq path:/path/to/some.sql /path/to/my.txt
# or
qq --folder /path/to/folder "where line like '%important%'"
# or
qq --folder /path/to/folder path:/path/to/some.sql
```

### Table Structure

`CREATE TABLE logs (i int, line TEXT);`

`i` Is the line index starting at `1`.

`line` is the read stripped line (`line.strip('\n')`)

<!--
### Replace Tool

A `qq replace` command was added because I often find myself 
wanting to replace a string like `#some_value = 'on'` to `some_value = 'off'`.

##### Example Usage

File Content:
```text
Hi kitty
```
Usage: `cat file.txt | qq replace "Hi" "Bye"`

Console Output:
```text
Bye kitty
```


*Note: if you are replacing a config file you may need to output into a temporary file as shell redirection truncates the output file before reading the input file. e.g.*
```bash
cat /etc/.../postgresql.conf | qq replace "#key = val" "key = val2" > ./postgresql.conf; cat ./postgresql.conf > /etc/.../postgresql.conf;rm ./postgresql.conf
```
-->
### License
* MIT License
types-shotgun-api3 3.8.4.0
python stubs for the Flow Production Tracking python API
Keywords: 3d, CG, VFX, animation, games, graphics

# python stubs for Flow Production Tracking

High quality python type stubs for the Shotgun/Shotgrid/Flow [python API](https://github.com/shotgunsoftware/python-api).

These stubs are designed to be used with a type checker like `mypy` to provide static type checking of python code, as well as to provide analysis and completion in IDEs like PyCharm and VSCode (with Pylance).

## Installing

```commandline
pip install types-shotgun_api3
```

The version of the package corresponds to the version of the library that it is generated from,
plus a version suffix for the revision of the stubs
tkv 0.1.4
Temporal Key Value Store 
Requires Python: >=3.12

# TKV - Temporal Key-Value Store

A key-value store that supports timestamp-based queries, allowing you to retrieve values as they existed at specific points in time.

## Features

- **Temporal queries**: Get the value for a key at the largest timestamp less than or equal to your query timestamp
- **Multiple backends**: SQLite as default, Redis and RocksDB as experimental alternatives
- **REST API**: FastAPI-based web interface
- **CLI interface**: Command-line tools for direct interaction

## Project Layout

```console
src/
├── service.py      # Core backend store implementations
├── api.py          # FastAPI web server
└── cli.py          # Command-line interface
```

The primary interest is `service.py`, which contains the main backend store implementation using SQLAlchemy/SQLite, as well as experimental alternatives using Redis and RocksDB. The CLI and API are implemented separately as distinct interfaces to the core functionality.

## Prerequisites

- **Python 3.12+**

## Installation

### From PyPI (Recommended)

```bash
pip install tkv
```

### Development with uv

First install uv:

```bash
# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

# Windows
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
```

Then clone the repository and sync dependencies:

```bash
git clone https://github.com/JackismyShephard/tkv.git
cd tkv
uv sync
```

## Usage

### CLI

```bash
# Store a value
tkv put mykey myvalue 1000

# Retrieve a value
tkv get mykey 1500
```

### Web API

Start the server:

```bash
tkv-web run
```

Store data:

```bash
curl -X PUT http://localhost:8000/ \
  -H "Content-Type: application/json" \
  -d '{"key":"mykey","value":"myvalue","timestamp":1000}'
```

Retrieve data:

```bash
curl "http://localhost:8000/mykey?timestamp=1500"
```

## Development

```bash
uv sync --group dev
```

### Running Commands

```bash
# CLI commands
uv run tkv put mykey myvalue 1000
uv run tkv get mykey 1500

# Web server
uv run tkv-web run
```

### Testing

```bash
uv run pytest
```
types-opencolorio 2.4.2.0
python stubs for PyOpenColorIO
Keywords: 3d, CG, VFX, animation, games, graphics

# python stubs for opencolorio

These stubs are designed to be used with a type checker like `mypy` to provide static type checking of python code, as well as to provide analysis and completion in IDEs like PyCharm and VSCode (with Pylance).

## Installing

```commandline
pip install types-opencolorio
```

Note that the stubs refer to numpy.

The version of the package corresponds to the version of opencolorio that it is generated from,
plus a version suffix for the revision of the stubs
dash-react-scan-plugin 0.1.1
A plugin to monitor the rendering performance of page components for Dash applications using Dash Hooks.

# dash-react-scan-plugin

[![GitHub](https://shields.io/badge/license-MIT-informational)](https://github.com/CNFeffery/dash-react-scan-plugin/blob/main/LICENSE)
[![PyPI](https://img.shields.io/pypi/v/dash-react-scan-plugin.svg?color=dark-green)](https://pypi.org/project/dash-react-scan-plugin/)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)

English | [简体中文](./README-zh_CN.md)

A plugin to monitor the rendering performance of page components for Dash applications using Dash Hooks. This plugin integrates [react-scan](https://github.com/aidenybai/react-scan) to help you analyze and optimize your Dash application's performance.

## Installation

```bash
pip install dash-react-scan-plugin
```

## Usage

```python
from dash import Dash

# Import the react scan plugin
from dash_react_scan_plugin import setup_react_scan_plugin

# Enable the react scan plugin for the current app
setup_react_scan_plugin()

app = Dash(__name__)

# Rest of your app code...
```

## Example

Run the included example. This example demonstrates how to use react-scan to monitor component rendering performance in your Dash application. The plugin will automatically inject the `react-scan` tool into your application, allowing you to visualize and analyze component re-renders.

```bash
python example.py
```

<center><img src="./images/demo.gif" /></center>

## API Reference

### `setup_react_scan_plugin()`

This function sets up the react-scan plugin for your Dash application.

| Parameter    | Type  | Default                                                                | Description                                                                                                                                                                                    |
| ------------ | ----- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `script_src` | `str` | `"https://cdn.jsdelivr.net/npm/react-scan@latest/dist/auto.global.js"` | Source URL of the react-scan script. Alternative CDNs: `https://unpkg.com/react-scan@latest/dist/auto.global.js`, `https://registry.npmmirror.com/react-scan/latest/files/dist/auto.global.js` |
dash-offline-detect-plugin 0.1.4
A plugin to offer offline detect for Dash applications using Dash Hooks.

# dash-offline-detect-plugin

[![GitHub](https://shields.io/badge/license-MIT-informational)](https://github.com/CNFeffery/dash-offline-detect-plugin/blob/main/LICENSE)
[![PyPI](https://img.shields.io/pypi/v/dash-offline-detect-plugin.svg?color=dark-green)](https://pypi.org/project/dash-offline-detect-plugin/)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)

English | [简体中文](./README-zh_CN.md)

Offline detect plugin for Dash applications using Dash Hooks.

## Installation

```bash
pip install dash-offline-detect-plugin
```

## Usage

```python
from dash import Dash

# Import the offline detect plugin
from dash_offline_detect_plugin import setup_offline_detect_plugin

# Enable the offline detect plugin for the current app
setup_offline_detect_plugin()

app = Dash(__name__)

# Rest of your app code...
```

## Example

Run the included example:

```bash
python example.py
```

<center><img src="./images/demo.gif" /></center>

## API Reference

### `setup_offline_detect_plugin()`

This function enables the offline detection feature for your Dash application.

| Parameter     | Type  | Default                                                              | Description                                                                                                                      |
| ------------- | ----- | -------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| `interval`    | `int` | `5000`                                                               | Interval of detection in browser (milliseconds). Controls how frequently the browser checks if the backend service is available. |
| `title`       | `str` | `"Service Unavailable"`                                              | Title of the overlay displayed when the service is unavailable.                                                                  |
| `description` | `str` | `"Unable to connect to the backend service, trying to reconnect..."` | Description text displayed in the overlay when the service is unavailable.                                                       |
dash-console-filter-plugin 0.1.1
A plugin to filter the error messages in the console of the browser for Dash applications using Dash Hooks.

# dash-console-filter-plugin

[![GitHub](https://shields.io/badge/license-MIT-informational)](https://github.com/CNFeffery/dash-console-filter-plugin/blob/main/LICENSE)
[![PyPI](https://img.shields.io/pypi/v/dash-console-filter-plugin.svg?color=dark-green)](https://pypi.org/project/dash-console-filter-plugin/)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)

English | [简体中文](./README-zh_CN.md)

Console message filtering plugin for Dash applications using Dash Hooks. This plugin allows you to filter specific error messages in the browser console.

## Installation

```bash
pip install dash-console-filter-plugin
```

## Usage

```python
import dash

# Import the console filter plugin
from dash_console_filter_plugin import setup_console_filter_plugin

# Enable the console filter plugin for the current app
setup_console_filter_plugin(keywords=["test warning message"])

app = dash.Dash(__name__)

# Rest of your app code...
```

## Example

Run the included example:

```bash
python example.py
```

<center><img src="./images/demo.gif" /></center>

## API Reference

### `setup_console_filter_plugin()`

This function enables the console message filtering feature for your Dash application.

| Parameter  | Type      | Default | Description                                                                                                           |
| ---------- | --------- | ------- | --------------------------------------------------------------------------------------------------------------------- |
| `keywords` | List[str] | None    | List of keywords to filter, messages containing any of these keywords in the console of the browser will be filtered. |
dash-change-cdn-plugin 0.1.1
A plugin to conveniently change the CDN source for Dash applications using Dash Hooks.

# dash-change-cdn-plugin

[![GitHub](https://shields.io/badge/license-MIT-informational)](https://github.com/CNFeffery/dash-change-cdn-plugin/blob/main/LICENSE)
[![PyPI](https://img.shields.io/pypi/v/dash-change-cdn-plugin.svg?color=dark-green)](https://pypi.org/project/dash-change-cdn-plugin/)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)

English | [简体中文](./README-zh_CN.md)

CDN source changing plugin for Dash applications using Dash Hooks, This plugin allows you to switch between different CDN sources for your Dash app's static resources.

## Installation

```bash
pip install dash-change-cdn-plugin
```

## Usage

```python
import dash

# Import the change cdn plugin
from dash_change_cdn_plugin import setup_change_cdn_plugin

# Enable the change cdn plugin for the current app
setup_change_cdn_plugin()

# Remember to set serve_locally=False
app = dash.Dash(__name__, serve_locally=False)

# Rest of your app code...
```

## Example

Run the included example:

```bash
python example.py
```

<center><img src="./images/demo.png" /></center>

## API Reference

### `setup_change_cdn_plugin()`

This function enables the CDN source changing feature for your Dash application.

| Parameter    | Type                                                  | Default       | Description                                                                                                |
| ------------ | ----------------------------------------------------- | ------------- | ---------------------------------------------------------------------------------------------------------- |
| `cdn_source` | `Literal["npmmirror", "jsdelivr", "fastly-jsdelivr"]` | `"npmmirror"` | The CDN source to use for static resources. Options are: `"npmmirror"`, `"jsdelivr"`, `"fastly-jsdelivr"`. |
PyPulse 0.1.2
A python package for handling and analyzing PSRFITS files.
Requires Python: >=3.9

PyPulse
=======

[![License](https://img.shields.io/badge/license-3--clause_BSD-blue.svg)](LICENSE)
[![Code of Conduct](https://img.shields.io/badge/code_of_conduct-Contributor_Covenant-blue.svg)](CODE_OF_CONDUCT.md)
[![ASCL](https://img.shields.io/badge/ascl-1706.011-blue.svg?colorB=262255)](https://ascl.net/1706.011)

A pure-Python package for handling and analyzing PSRFITS files.

Read the documentation [here](https://mtlam.github.io/PyPulse/).

This is an alternate code base from [PSRCHIVE](http://psrchive.sourceforge.net/).

Requires:<br>
python 2.7 or 3.X<br>
numpy<br>
scipy<br>
matplotlib<br>
astropy


Archive
-------

A class for loading PSRFITS files

Usage: 

    ar = Archive(FILENAME) #loads archive, dedispersed and polarization averaged by default
    ar.tscrunch() #averages the pulse in time
    data = ar.getData() #returns the numpy data array for use by you
    ar.imshow() #plots frequency vs phase for the pulses


SinglePulse
-----------

A class for handling calculations on single pulses

Usage:

    sp = SinglePulse(data,windowsize=256) #will auto-calculate an offpulse region of length 256 bins
    print sp.getFWHM() #prints the FWHM of the pulse
    print sp.getSN() #prints a crude S/N of the pulse
    print sp.fitPulse(template_array)[5] #prints a better S/N of the pulse using a template array

DynamicSpectrum
---------------

A class for handling dynamic spectra


Usage:

    ds = DynamicSpectrum(FILENAME) #takes a 2D data array or a string to a .npz file for now
    acf2d = ds.acf2d() #calculates the 2D ACF of the dynamic spectrum
    ds.imshow() #plots the dynamic spectrum
    ds.save(NEWFILENAME) #saves to a .npz file, which can then be loaded again with the first line

Par
---

A class for parsing pulsar parameter files

Usage:

    p = Par(FILENAME)
    print p.getPeriod() #prints the period in the par file (does not calculate for a specific MJD for now)
    t,dmx,dmxerr = p.getDMseries() #returns the DM parameters in a nice time-series. Note that errors are those given in the par file, which may not be the "correct" ones (more info to be provided later)
    print p.get("PX") #prints the parallax
    print p.get("PX",error=True) #prints the error on the parallax


Tim
---

A class for parsing pulsar TOA files

Usage:

    t = Tim(FILENAME) #automatically parses each TOA with the TOA() class
    print t.toas[0].getMJD() #prints the MJD of the first TOA as a python Decimal
    print t.toas[0].get('snr') #prints the value of the -snr flag of the TOA if it is available


Citations
---------

See [http://ascl.net/1706.011](http://ascl.net/1706.011). You can cite as:

[Lam, M. T., 2017, PyPulse, Astrophysics Source Code Library, record ascl:1706.011](http://adsabs.harvard.edu/abs/2017ascl.soft06011L)
trainloop-llm-logging 0.9.0
TrainLoop LLM Logging SDK for data collection
Requires Python: <4.0,>=3.11

# TrainLoop Python SDK

Zero-touch HTTP instrumentation library for collecting LLM request/response data.

## 📚 Documentation

For complete Python SDK documentation, installation guides, and usage examples:

**👉 [evals.docs.trainloop.ai](https://evals.docs.trainloop.ai/reference/sdk/python/api)**

### Quick Links
- **[Python SDK Guide](https://evals.docs.trainloop.ai/docs/python/quick-start)** - Complete integration guide
- **[Installation](https://evals.docs.trainloop.ai/getting-started/installation#python-sdk)** - Install the SDK
- **[Development](https://evals.docs.trainloop.ai/docs/python/development)** - Contributing to the SDK

## Quick Start

```bash
# Install
pip install trainloop-llm-logging
```

```python
from trainloop_llm_logging import collect

# Start collecting LLM data
collect("path/to/trainloop.config.yaml")

# Your existing LLM calls work automatically
# No code changes required!
```

For detailed information, visit **[evals.docs.trainloop.ai/docs/python](https://evals.docs.trainloop.ai/docs/python)**

## Development & Testing

For SDK development and testing information:

- **Unit Tests**: `poetry run pytest -m unit`
- **Integration Tests**: `python run_integration_tests.py` (see [INTEGRATION_TESTING.md](./INTEGRATION_TESTING.md))
- **Documentation**: See [docs/development/sdk-testing.md](../../docs/docs/development/sdk-testing.md)

**Note**: Integration tests cannot use pytest due to import order requirements. Use the standalone test runner instead.
trainloop-cli 0.9.0
TrainLoop command-line interface
Requires Python: <4.0,>=3.9

# TrainLoop CLI

The TrainLoop CLI provides commands for managing your LLM evaluation workflow.

## 📚 Documentation

For complete CLI documentation, installation guides, and usage examples:

**👉 [evals.docs.trainloop.ai](https://evals.docs.trainloop.ai)**

### Quick Links
- **[Installation](https://evals.docs.trainloop.ai/getting-started/installation)** - Install the CLI
- **[Quick Start](https://evals.docs.trainloop.ai/getting-started/quick-start)** - Get started guide  
- **[CLI Reference](https://evals.docs.trainloop.ai/reference/cli)** - Complete command reference
- **[Development](https://evals.docs.trainloop.ai/development/local-development)** - Contributing to the CLI

## Quick Start

```bash
# Install
pipx install trainloop-cli

# Initialize workspace
trainloop init

# Run evaluations
trainloop eval

# View results
trainloop studio

# Upgrade project
trainloop upgrade
```

For detailed information, visit **[evals.docs.trainloop.ai](https://evals.docs.trainloop.ai)**