Metadata-Version: 2.4
Name: scitex-repl
Version: 0.1.1
Summary: Interactive REPL helpers (embed / less / paste) — standalone module from the SciTeX ecosystem
Author-email: Yusuke Watanabe <ywatanabe@scitex.ai>
License-Expression: AGPL-3.0-only
Project-URL: Homepage, https://github.com/ywatanabe1989/scitex-repl
Project-URL: Repository, https://github.com/ywatanabe1989/scitex-repl
Project-URL: Documentation, https://scitex-repl.readthedocs.io
Keywords: scitex,repl,ipython,clipboard,less,embed,paste
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: User Interfaces
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: ipython>=8.0
Requires-Dist: pyperclip>=1.8
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Requires-Dist: pytest-cov; extra == "dev"
Requires-Dist: ruff; extra == "dev"
Requires-Dist: scitex-dev>=0.11.7; extra == "dev"
Provides-Extra: docs
Requires-Dist: sphinx>=7.0; extra == "docs"
Requires-Dist: sphinx-rtd-theme>=2.0; extra == "docs"
Requires-Dist: myst-parser>=2.0; extra == "docs"
Requires-Dist: sphinx-copybutton>=0.5; extra == "docs"
Requires-Dist: sphinx-autodoc-typehints>=1.25; extra == "docs"
Provides-Extra: all
Dynamic: license-file

# scitex-repl

<p align="center">
  <a href="https://scitex.ai">
    <img src="docs/scitex-logo-blue-cropped.png" alt="SciTeX" width="400">
  </a>
</p>

Interactive-REPL helpers (`embed`, `less`, `paste`) — standalone module
from the [SciTeX](https://github.com/ywatanabe1989) ecosystem.

Ported out of `scitex_gen._ipython` as part of the scitex-gen full
retirement wave.

## Install

```bash
pip install scitex-repl
```

## Public API

```python
import scitex_repl

# Drop into an IPython shell, optionally pre-executing the clipboard.
scitex_repl.embed()

# Pipe a string through the system `less` pager.
scitex_repl.less("a very long string ...")

# Exec the current clipboard contents.
scitex_repl.paste()
```

## Status

- `less` and `paste` are functional thin wrappers over IPython /
  pyperclip.
- `embed` is preserved from the upstream — the upstream file was mostly
  commented-out scaffolding around a single small helper. A richer REPL
  bootstrapper can be layered on later if there's demand.

## License

AGPL-3.0-only.
