Metadata-Version: 2.4
Name: pymudata
Version: 1.0.2
Author: pymudata
License: MIT
Project-URL: Homepage, https://example.com/pymudata
Keywords: clipboard,snippets,offline,utility
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# pymudata

A tiny, offline helper that copies stored code snippets to your clipboard.

Internet is only needed **once**, to install. After that everything is bundled
inside the package and works completely offline. Nothing is written to your
working directory.

## Install

```bash
pip install pymudata
```

## Use

```python
from pymudata import *

copy(9)        # copy snippet 9 to the clipboard, then Ctrl+V
copy(g1)       # copy GenAI program g1
copy(g8)       # copy GenAI program g8
show(3)        # just print snippet 3 (no clipboard)
list()         # show available snippet numbers
code = get(5)  # return snippet 5 as a string, no output
```

Or with a plain import:

```python
import pymudata
pymudata.copy(9)
pymudata.copy("g1")   # g-programs also accept a string key
```

Numbering: `1`-`12` are the ML programs, `g1`-`g8` are the GenAI programs.

### Notes

- Works in plain Python, the REPL, and a local Jupyter notebook.
- The clipboard backend is pure standard library (Win32 via `ctypes`,
  `clip`/`pbcopy`/`xclip`/`wl-copy`, or `tkinter`) - no extra dependencies.
- If the clipboard cannot be reached (for example a remote kernel), the snippet
  is printed instead so you can copy it manually. Indentation is preserved
  exactly, so pasted code runs as-is.
- Set `pymudata.QUIET = True` to silence the confirmation message.
```python
import pymudata
pymudata.QUIET = True
pymudata.copy(9)
```
```
