Skip to content

Pack · 8 assets

Python starter

Python and SQL snippets, regex patterns for logs, dates and text cleanup, the /explain-error and /write-tests prompts and the dark Kanagawa Wave theme. All of it is free. Installing the pack switches the editor to Kanagawa Wave.

Marketplace assets picked to work together. Open the pack in PocketCode to install them all at once.

If PocketCode is installed on your Android device, this opens the page in the app.

In this pack

Python snippetsFreeSnippets20 Python snippets for scripts and tests: an argparse entry point, dataclasses, pathlib and JSON files, logging setup, decorators, context managers, asyncio.gather and pytest fixtures. Type a prefix such as argmain or dcls in a .py file.SQL snippetsFreeSnippets20 SQL snippets: CTEs, upserts, window functions, rows without a match, keyset pagination, indexes and transactions. We ran every one against SQLite.Log patternsFreeRegex pack17 patterns for reading logs in Find and replace: log levels, ERROR and WARN lines, logcat lines, stack traces from Java, Kotlin, Python and JavaScript, access log lines with 4xx and 5xx codes, durations and key=value pairs. One removes the timestamp at the start of each line.Date and time patternsFreeRegex pack17 patterns for Find and replace. Five rewrite dates: dd/mm/yyyy, mm/dd/yyyy and dd.mm.yyyy to yyyy-mm-dd, and back to the last two. The rest find written dates, 12-hour times, HTTP dates, Unix timestamps, ISO durations and weeks, UTC offsets, time zones and cron lines.Text cleanup patternsFreeRegex pack21 patterns that tidy text with Replace all: trailing spaces, indentation, repeated spaces, words and lines, extra blank lines, CRLF, tabs, curly quotes, invisible characters and HTML tags. Others mask emails and IPs or turn a list into quoted lines.Explain error promptFreePromptPaste an error or a stack trace after /explain-error. You get what it means, where to look in your code, the likely cause and one fix to try first.Unit test promptFreePromptPaste a function or class after /write-tests. You get the cases worth testing and a test file that covers them, in the framework you name or the usual one for the language. The model doesn't run the tests.Kanagawa WaveFreeThemeDark ink-blue theme with muted violet keywords and green strings, inspired by Hokusai's Great Wave. It also adds a matching terminal theme (Settings > Terminal). By Pierre-Alain Castella, MIT. Converted from Open VSX.