File: _common.py

package info (click to toggle)
python-aemet-opendata 0.5.3-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 228 kB
  • sloc: python: 1,731; makefile: 4
file content (9 lines) | stat: -rw-r--r-- 210 bytes parent folder | download
1
2
3
4
5
6
7
8
9
"""AEMET OpenData Examples."""

import json
from typing import Any


def json_dumps(data: Any) -> str:
    """Dump data using json.dumps()."""
    return json.dumps(data, indent=4, sort_keys=True, default=str)