writing-python-services
编写一个封装逻辑并与外部系统接口的类。记录、API等。
📖 中文导读:编写一个封装逻辑并与外部系统接口的类。记录、API等。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: Writing python services description: Writing a class with encapsulated logic that interfaces with an external system. Logging, APIs, etc.
Use python 3.12+ syntax for types
- e.g.
|for unions,| Nonefor optional
- e.g.
No side effects in constructor
- Use
@cached_propertyand lazily evaluate properties needing IO
- Use
Methods use
dataclassesfor arguments and responses