<filename>examples/specific_lookup.py<gh_stars>0
import garlic
import trio


async def main() -> None:
    # instantiate client object
    client = garlic.Client()
    fingerprint = "<KEY>"
    # lookup specific relay using its fingerprint
    response = await client.get_details(lookup=fingerprint)
    # output the contents of our matching relay
    print(response.relays[0])


if __name__ == "__main__":
    trio.run(main)

<filename>examples/specific_lookup.py<gh_stars>0
import garlic
import trio


async def main() -> None:
    # instantiate client object
    client = garlic.Client()
    fingerprint = "<KEY>"
    # lookup specific relay using its fingerprint
    response = await client.get_details(lookup=fingerprint)
    # output the contents of our matching relay
    print(response.relays[0])


if __name__ == "__main__":
    trio.run(main)

# instantiate client object # lookup specific relay using its fingerprint # output the contents of our matching relay