semvec/pypi-packages huggingface dataset:
brepl 0.1.0
A headless universal REPL driver for LLMs. Supports PTY, TUI apps, and Tab completion.
Requires Python: >=3.10
Keywords: repl, pty, terminal, llm, mcp, autocomplete, tab-completion, tui, headless, automation

# REPL Bridge

**REPL Bridge** is a Python library that turns any CLI tool (Bash, Python, Julia, SSH, Vim) into a programmatic object controllable by code or LLMs.

It uses `node-pty` style process forking combined with a headless VT100 emulator (`pyte`) to maintain perfect state of the visual terminal, allowing for robust interaction with TUI applications and complex shells.

## Features

- **Universal:** Works with any binary (Python, Node, Bash, top, vim).
- **Stateful:** Maintains a 2D grid of the screen (supports colors, cursor position).
- **Smart Waiting:** Detects when commands finish via Silence Detection, Regex, or Kernel Introspection.
- **Tab Completion:** Includes a cursor-differential engine to solve inline vs grid completion ambiguity.
- **TUI Support:** Handles `htop`, `fzf`, and `tmux` rendering correctly.

## Installation

```bash
pip install .
```

## Quick Start

```python
from brepl import REPLSession

# Start a session
session = REPLSession("bash")

# Run a command (atomic execution)
result = session.execute("ls -la")
print(result.output)

# Interactive / TUI mode
session.send_text("top", enter=True)
session.wait(timeout=1.0)
print(session.screen.render()) # Prints the top table
session.send_key("q")
```

## License

MIT License - see LICENSE file for details.
qdata 0.3.0
Python SDK for getting data quickly
Keywords: data sdk

# Qdata - Python SDK for index and search

### 为什么给项目改了名

* 想做一个提供更多数据的SDK包,但不一定有时间。。。
* 老的代码包可以在<a href="https://github.com/longxiaofei/spider-BaiduIndex/tree/old_baiduindex">old_baiduindex</a>里找到
* 会根据我自己个人的数据需求，往里面添加不同的数据源，如果恰好帮助到你，很开心
* 老的数据源会尽力维护

### Data Source

* http://index.baidu.com/
* http://www.baidu.com/
* https://www.tianyancha.com/advance/search

### Install

```shell script
pip uninstall pycrypto  # 避免与pycryptodome冲突
pip install --upgrade qdata
```

### Examples

#### 百度指数
`./examples/test_baidu_index.py`

可以参考以下代码进行百度指数的获取
`./examples/baidu_index_best_practice.py`

#### 百度搜索
`./examples/test_baidu_search.py`

#### 百度登录(获取百度Cookie)
`./examples/test_baidu_login.py`

* 目前只提供二维码登录，密码账号登录也可以做，但不做，因为没必要。
* 幸好工作不做爬虫，心太累了。

#### 天眼查
`./examples/test_tianyancha.py`

* 老婆做汇报着急用

### Changelog

* 2021/03/25 上线
* 2021/03/26 更新百度登录功能
* 2021/04/07 百度指数新增:实时百度指数
* 2021/04/13 添加天眼查高级搜索公司数数据
* 2021/05/18 修正打包问题
* 2022/05/12 百度指数添加Cipher-Text(不确定部分逻辑)
* 2022/05/16 一些小的改动
* 2022/05/30 修正百度指数加密逻辑
* 2022/09/06 添加检查关键词方法、添加最佳实践脚本


### Stargazers over time

[![Stargazers over time](https://starchart.cc/longxiaofei/spider-BaiduIndex.svg)](https://starchart.cc/longxiaofei/spider-BaiduIndex)