DeepSeek でバイブコーディング

API料金が高額なため、なかなか理想的なバイブコーディング用のCLI環境を構築を構築できないという場合、Aider + DeepSeek の組み合わせを検討してみてください。ただし、クレジットカード、もしくはPayPalアカウントが必要となります。

業界最安値です 🙂 ※ Dify用のAPIとしても使うことができます。

以下、この組み合わせで作成したものです:

  • バイブコーディングでPythonスクリプトを作成および実行
  • このスクリプトのソースコードと実行結果をMarkdownファイルにまとめるように指示

Pythonカラーカレンダープログラム

概要

Pythonで作成したターミナル上で動作するカラフルなカレンダー表示プログラムです。以下の特徴があります:

  • 現在の日付を自動的にハイライト表示
  • 週末(土日)を赤色で表示
  • 月名と曜日ヘッダーを装飾表示
  • 任意の年月を指定して表示可能

ソースコード

import calendar
import datetime
from termcolor import colored

def create_colored_calendar(year=None, month=None):
    """カラフルなカレンダーを表示する関数"""
    now = datetime.datetime.now()
    year = year or now.year
    month = month or now.month

    # カレンダーを生成
    cal = calendar.monthcalendar(year, month)
    month_name = calendar.month_name[month]

    # ヘッダーの装飾
    print(colored(f"\n{month_name} {year}".center(20), 'cyan', attrs=['bold']))
    print(colored("Mo Tu We Th Fr Sa Su", 'yellow'))

    # 日付の表示
    for week in cal:
        week_str = ""
        for day in week:
            if day == 0:
                week_str += "   "  # 空白
            else:
                # 週末は赤色、平日は白色
                color = 'red' if (week.index(day) >= 5) else 'white'
                # 今日の日付はハイライト
                if day == now.day and month == now.month and year == now.year:
                    week_str += colored(f"{day:2d}".center(3), 'green', attrs=['bold', 'underline'])
                else:
                    week_str += colored(f"{day:2d}".center(3), color)
        print(week_str)

if __name__ == "__main__":
    try:
        create_colored_calendar()
    except KeyboardInterrupt:
        print("\nカレンダーを終了します")

実行例

$ python3 calendar_app.py
      July 2025     
Mo Tu We Th Fr Sa Su
     1  2  3  4  5  6
 7  8  9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31

$ python3 calendar_app.py 2025 12
   December 2025    
Mo Tu We Th Fr Sa Su
 1  2  3  4  5  6  7
 8  9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31

必要なライブラリ

pip install termcolor