Source code for neurosnap.database.foldseek

"""Foldseek API helpers."""

import json
import os
import pathlib
import tempfile
import time
from typing import List, Optional, Union

import pandas as pd
import requests

from neurosnap.io.pdb import save_pdb
from neurosnap.structure.structure import Structure, StructureEnsemble, StructureStack

StructureLike = Union[Structure, StructureEnsemble, StructureStack]