Перейти к содержимому
New

DeepSeek V4.1 Flash free for 7 days: 10M tokens a day after a top-up of $10 or more. Until Nov 30.

How it works
aeondave/python-patternsAPI, SaaS и идентификация

python-patterns

⁨Pythonic patterns for readable, robust Python: typing, error handling, data modeling, iteration, resource management, threading/process/subinterpreter primitives, project layout, and tooling. Use when writing or reviewing Python code and APIs. For measurement/GIL/JIT use python-performance; for asyn⁩

v2026.11.13-21cd5683 установки+3 за 7 дней39 ЗвездыMITсинхронизировано 10 часов назад

Установка

Ещё нет NotHoly CLI? Сначала установите её.

$ curl -fsSL https://notholy.com/install.sh | sh
$ notholy skills install aeondave/python-patterns

Пишет в ⁦~/.notholy/skills⁩ после проверки подписи и SHA-256.

ПодписьПодписано, ed25519
29FCX+9SmF…AMF5flDw==CLI проверяет SHA-256 и подпись, прежде чем записать хоть один файл.
Пакетcf84dbdd…d893c911
cf84dbddde45…f266d893c9119 файлов · ⁦8.9 KB⁩
ПроверкаНизкий1 замечание
  • Ссылки на внешние домены
Вся проверка
Источникgithub.com/AeonDave/malskill/tree/main/coding/python-patterns@21cd568

Эта запись еще не переведена на русский, поэтому показан текст на другом языке: English.

This skill is for day-to-day Python code quality: readability, correctness, maintainability.

If you are doing asyncio-heavy work, prefer python-async-patterns. If the task is profiling, GIL/free-threading, or experimental JIT, use python-performance.

When to activate

  • Writing/refactoring Python modules, libraries, services
  • Reviewing PRs for idioms, clarity, and footguns
  • Introducing typing or improving error handling
  • Designing lightweight data models and APIs
  • Choosing threads vs processes vs subinterpreters (not asyncio)

Core principles (high signal)

  • Readability beats cleverness.
  • Be explicit at boundaries (I/O, parsing, network). Keep inner code simple.
  • Prefer small, typed functions with clear names.
  • Use context managers for resource safety.
  • Raise specific exceptions and preserve causes (raise ... from e).

Outcome expectations

  • Code is readable; intent is clear from names and structure, not comments.
  • All public APIs have type annotations; error boundaries are explicit.
  • Resource cleanup is deterministic (via context managers, no __del__).
  • Exceptions are domain-specific and chain causes; no silent failures.

  1. Design module interfaces with clear input/output types and error contracts.
  2. Use context managers for all resource acquisition.
  3. Validate at I/O boundaries; raise specific errors with cause chaining.
  4. Apply ruff, mypy (on public APIs), and pytest baseline in CI.
  5. Review code for footguns (mutable defaults, bare except, type hiding).

Quick review checklist

  • No mutable default arguments; None sentinel used
  • is None / is not None (not == None)
  • Specific except clauses; no bare except:
  • Types: public functions/classes have annotations; 3.12+ type-parameter syntax; T | None not Optional[T]
  • Files/paths use pathlib.Path (Path.walk 3.12+); not os.path string soup
  • Iteration uses comprehensions/generators only when simple
  • CPU-bound fan-out uses executors from concurrency.md, not unbounded Thread spawns

Resources

Load on demand:

  • references/typing.md — load for annotations, PEP 695 generics, Protocols, 3.14 deferred evaluation
  • references/errors.md — load for exception hygiene, ExceptionGroup / except*, finally control flow
  • references/data-models.md — load for dataclasses, copy.replace, StrEnum, t-strings (3.14)
  • references/iteration.md — load for comprehensions, generators, itertools.batched, match
  • references/resources.md — load for context managers and pathlib
  • references/concurrency.md — load for threads, concurrent.futures, queues, multiprocessing start methods, InterpreterPoolExecutor
  • references/layout-tooling.md — load for pyproject.toml, ruff/mypy/pytest, removed stdlib modules
  • references/performance.md — one-screen "don't micro-optimize here"; real measurement is python-performance

Файлы этой версии

Права

ПравоЗаявленоНайдено проверкой
Читает файлыДаДа
Пишет файлыНетНет
Выполняет команды shellДаДа
Ходит в сетьДаДа
Использует коннекторыНетНет
Управляет браузеромНетНет

Замечания проверки

Проверено 13 нояб. 2026 г.

  1. ИнфоСсылка · Ссылки на внешние домены

Чистая проверка снижает риск, но не доказывает, что пакет безопасен. Читайте то, что ставите.

ВерсияОпубликованаКоммитSHA-256ПодписьИзменение прав
v2026.11.13-21cd56813 нояб. 2026 г.21cd568cf84dbddПодписана–

Спрашивайте обо всём, что позволяет ваш скоуп.

Создайте аккаунт, пополните баланс и задайте первый вопрос в чате или в терминале.

  1. 1/3

    Создайте аккаунт

    Личный или для компании. Позже можно перейти на аккаунт компании без потери баланса и ключей.

    ЛичныйКомпания
  2. 2/3

    Пополните баланс

    Картой. Оплата за токены, без подписки.

    $5.00минимальное пополнение
  3. 3/3

    Спрашивайте

    В чате, или установите CLI и выполните notholy login в терминале.

    $ notholy login