Back to list
khalido

python

by khalido

config files for all the things

0🍴 0📅 Jan 9, 2026

SKILL.md


name: python description: Python development preferences. Use when writing Python code, CLI tools, APIs, or scripts.

Python Development

Philosophy

Readable, concise code. Function names and type hints should make purpose clear without verbose docstrings.

Tooling

  • Package manager: uv - new projects: uv init --python 3.14
  • Linting/formatting: ruff
  • Testing: pytest
  • Logging: loguru

Preferred Libraries

PurposeLibrary
CLI toolstyper
CLI outputrich (when needed)
HTTP clientshttpx
Web APIsfastapi + uvicorn
DataFramespolars
ORMsqlmodel (Pydantic + SQLAlchemy)

Code Style

  • Type hints on function signatures
  • Small, focused functions
  • pathlib for paths
  • dataclasses or Pydantic for structured data
  • SQLite for prototyping, Postgres for prod

Docstrings

Minimal but useful. Skip verbose Google/NumPy style. Answer: "what does this return in practice?"

def fetch_weather(city: str) -> dict[str, float]:
    """Get current weather from OpenWeatherMap API.

    Returns {"temp": 24.5, "humidity": 65.0, "wind_speed": 12.3}
    """

Include: what it does (if name isn't obvious), what's actually returned (not just the type), optional example for complex functions.

Google APIs

Use Google SDKs directly (gspread and similar wrappers are outdated/unmaintained).

uv add google-api-python-client google-auth-httplib2 google-auth-oauthlib

Refs: Sheets quickstart, reading values

Local Testing

Expose local servers via Cloudflare tunnel:

cloudflared tunnel --url http://localhost:8000

Deployment

Railway for FastAPI projects. Volumes required for persistent files (SQLite db, credentials.json).

Ref: Railway LLM docs

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon