File: connection.py

package info (click to toggle)
python-asusrouter 1.21.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,856 kB
  • sloc: python: 20,497; makefile: 3
file content (11 lines) | stat: -rw-r--r-- 257 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
"""Connection tools for AsusRouter."""

from __future__ import annotations

import aiohttp


def get_cookie_jar() -> aiohttp.CookieJar:
    """Get a cookie jar for the AsusRouter connection."""

    return aiohttp.CookieJar(unsafe=True, quote_cookie=False)