Skip to content

Instantly share code, notes, and snippets.

View achton's full-sized avatar

Achton Smidt Winther achton

  • Denmark
  • 04:24 (UTC +01:00)
View GitHub Profile
@achton
achton / fastlyMonthToDateBill.py
Last active January 18, 2023 20:53 — forked from themartorana/fastlyMonthToDateBill.py
Calculate your month-to-date bill from Fastly with the billing API
#!/usr/bin/env python3
# Requires Python 3
import requests
import locale
from typing import Dict, Tuple, List
from calendar import monthrange
from datetime import datetime