No project description provided
Project description
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
pip install pymudata
Use
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:
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, ortkinter) - 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 = Trueto silence the confirmation message.
import pymudata
pymudata.QUIET = True
pymudata.copy(9)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pymudata-1.0.1.tar.gz.
File metadata
- Download URL: pymudata-1.0.1.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16c23e51fceb0d98f2c3b204abdb6ca45790137a74a634cb552299c7cde21a53
|
|
| MD5 |
a467f5d8dab77f40c4cd2b5aa039be97
|
|
| BLAKE2b-256 |
1b2998cb757de8f869d92a9dad11388df04b96608835bca2b74e9501d08f93cf
|
File details
Details for the file pymudata-1.0.1-py3-none-any.whl.
File metadata
- Download URL: pymudata-1.0.1-py3-none-any.whl
- Upload date:
- Size: 20.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d3b0f114c2bbddbc4bf5f4a5400eaee5328d747fda185790e393eb0f816008e
|
|
| MD5 |
f3e384694192e710836323c9e5c62060
|
|
| BLAKE2b-256 |
d2f6bfff71224cf6b32e815a7677688f88dbc993dce5ab0bdbbe4166495e8999
|