Source code for censys.asm.client

"""
Client for interacting with the Censys ASM API.
"""

from typing import Optional

from censys.asm.seeds import Seeds
from censys.asm.assets import Assets
from censys.asm.events import Events


[docs]class AsmClient: """ Client for interacting with the Censys Seeds, Assets, and Events API's. """ def __init__(self, api_key: Optional[str] = None, **kwargs): self.seeds = Seeds(api_key, **kwargs) self.hosts = Assets("hosts", api_key, **kwargs) self.certificates = Assets("certificates", api_key, **kwargs) self.domains = Assets("domains", api_key, **kwargs) self.events = Events(api_key, **kwargs)