Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mxrch
GitHub Repository: mxrch/GHunt
Path: blob/master/ghunt/objects/session.py
253 views
1
from typing import *
2
3
import httpx
4
from ghunt.helpers.utils import get_httpx_client
5
from ghunt.helpers import auth
6
from ghunt.objects.base import GHuntCreds, SmartObj
7
8
9
# class Session(SmartObj):
10
# def __init__(self, client: httpx.AsyncClient = None) -> None:
11
# self.creds: GHuntCreds = None
12
# self.client: httpx.AsyncClient = client or get_httpx_client()
13
14
# @staticmethod
15
# async def new(client: httpx.AsyncClient = None, authentify=False) -> "Session":
16
# cls = Session(client=client)
17
18
# if authentify:
19
# cls.creds = await auth.load_and_auth(client)
20
# return cls
21