Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 745 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 745 Bytes

Python functions that I like having installed globally so I can quickly import them from other scripts

seanb.notify

notify(msg: str, *, title: str) -> None
Python wrapper to call out to notify shell script

seanb.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

seanb.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