Skip to main content

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, 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.
import pymudata
pymudata.QUIET = True
pymudata.copy(9)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymudata-1.0.1.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymudata-1.0.1-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

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

Hashes for pymudata-1.0.1.tar.gz
Algorithm Hash digest
SHA256 16c23e51fceb0d98f2c3b204abdb6ca45790137a74a634cb552299c7cde21a53
MD5 a467f5d8dab77f40c4cd2b5aa039be97
BLAKE2b-256 1b2998cb757de8f869d92a9dad11388df04b96608835bca2b74e9501d08f93cf

See more details on using hashes here.

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

Hashes for pymudata-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2d3b0f114c2bbddbc4bf5f4a5400eaee5328d747fda185790e393eb0f816008e
MD5 f3e384694192e710836323c9e5c62060
BLAKE2b-256 d2f6bfff71224cf6b32e815a7677688f88dbc993dce5ab0bdbbe4166495e8999

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page