Python functions that I like having installed globally so I can quickly import them from other scripts
pura.notify
notify(msg: str, *, title: str) -> None
Python wrapper to call out to notify shell script
pura.jsonfast
: Speeds up JSON dump/load if orjson is installed. dumps also has a minifed
flag which can compress JSON
loads(jsonstr: str, **kwargs: Any) -> Any
dumps(obj: Any, minified: bool = False, default: Optional[Any] = None, **kwargs: Any) -> str
pura.clipboard
: Python wrappers for clipcopy
and clippaste
:
clipcopy(data: str) -> None
Sends 'data' to 'clipcopy'; saving to your clipboard
clippaste() -> str
Paste text from your clipboard