From 0a97357a9c51f0bee4961c19012249340aae74d5 Mon Sep 17 00:00:00 2001 From: Chris Coutinho Date: Sun, 3 Aug 2025 14:17:29 +0200 Subject: [PATCH] remove main.py --- main.py | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 main.py diff --git a/main.py b/main.py deleted file mode 100644 index 302cb46..0000000 --- a/main.py +++ /dev/null @@ -1,25 +0,0 @@ -import asyncio -import logging - -from nextcloud_mcp_server.client import NextcloudClient - -logging.basicConfig(level="INFO") -logger = logging.getLogger(__name__) - -client = NextcloudClient.from_env() - - -async def main(): - addressbooks = await client.contacts.list_addressbooks() - # print(addressbooks) - - for addressbook in addressbooks: - contacts = await client.contacts.list_contacts(addressbook=addressbook["name"]) - for contact in contacts: - logger.info( - "Contact etag: %s, details: %s", contact["getetag"], contact["contact"] - ) - - -if __name__ == "__main__": - asyncio.run(main())