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.2.tar.gz (15.4 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.2-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

Details for the file pymudata-1.0.2.tar.gz.

File metadata

  • Download URL: pymudata-1.0.2.tar.gz
  • Upload date:
  • Size: 15.4 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.2.tar.gz
Algorithm Hash digest
SHA256 cf07d2c3fc25608203287d07b49c0029e698971a5d7b1242b63f08a3660ee2c9
MD5 7038264a7c731211dad14d0c3bf18b0a
BLAKE2b-256 e15207dac5c66df688b76586210237c0d49f639251d468557f51361682969186

See more details on using hashes here.

File details

Details for the file pymudata-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: pymudata-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 20.7 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 450b5c2d1670338a55ec86ac84d19059163e827adc270094cc0bb5db804da646
MD5 ad8159c7e12a4d4be1a556f023321977
BLAKE2b-256 42a253f6a4b91562534758d5a3f226e220f365b11a2ffaba32051451ddb40665

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