LazyScripts
convenient classes and functions to import into python projects
Install / Use
/learn @emo-eth/LazyScriptsREADME
Summary
Convenient functions for Python. Full docs pending, but here's an overview:
- LazyCSV: reading and writing CSVs in a single line. Supports reading namedtuples and writing lists-of-like-dicts
- LazyJSON: reading and writing JSON in a single line
- LazyMultithread: multithreading and multiprocessing single functions in a single line, with error handling and traceback printing
- LazySoup: downloading webpages as BeautifulSoup objects without drama using a
requestssession. Supports routing requests through tor withLazyTor. - LazyTor: Start and end Tor processes with very little hassle. Create a new connection with
connection = TorConnection()Get a pre-configuredrequests.Sessionwithconnection.Session(). Get a new IP address for an existing connection withconnection.renew(). Host multiple processes by passing in different ports to the constructor:connection = TorConnection(socks_port=xxxx, control_port=yyyy). Useconnection.close()to end the process. Supports context management, ie.with TorConnection() as connection:will terminate a tor process automatically when you're done using it.
Installation
Install with pip install lazyscripts.
Other Packages
- Tor -
brew install torwith Homebrew orsudo port install torwith Macports on OS X
Related Skills
node-connect
352.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
