{"library":"memfabric-hybrid","title":"Memfabric Hybrid Python API","description":"The `memfabric-hybrid` library provides a Python API client for interacting with the Memfabric Hybrid data platform. It simplifies operations like endpoint management and data access within a hybrid cloud environment. The current version is 1.0.8, with releases appearing to be made as features are developed or bugs are fixed, indicating an active development status.","language":"python","status":"active","last_verified":"Fri Apr 17","install":{"commands":["pip install memfabric-hybrid"],"cli":null},"imports":["from memfabric_hybrid.client import MemfabricClient"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import os\nfrom memfabric_hybrid.client import MemfabricClient\nfrom memfabric_hybrid.exceptions import AuthError, APIError\n\n# Configure API credentials and URL using environment variables\n# For example:\n# export MEMFABRIC_API_KEY=\"your_api_key_here\"\n# export MEMFABRIC_API_URL=\"https://api.memfabric.com\"\n\n# Ensure environment variables are set for a successful connection\napi_key = os.environ.get('MEMFABRIC_API_KEY', '')\napi_url = os.environ.get('MEMFABRIC_API_URL', '')\n\nif not api_key or not api_url:\n    print(\"Warning: MEMFABRIC_API_KEY and MEMFABRIC_API_URL environment variables are not set.\")\n    print(\"Please set them to run this example successfully.\")\nelse:\n    try:\n        client = MemfabricClient()\n        print(\"MemfabricClient initialized successfully.\")\n        \n        # Example: List available endpoints\n        endpoints = client.get_endpoints()\n        print(f\"Available endpoints: {endpoints}\")\n        \n    except AuthError as e:\n        print(f\"Authentication error: {e}. Check your API key.\")\n    except APIError as e:\n        print(f\"Memfabric API error: {e}\")\n    except Exception as e:\n        print(f\"An unexpected error occurred: {e}\")\n","lang":"python","description":"This quickstart initializes the `MemfabricClient` which relies on `MEMFABRIC_API_KEY` and `MEMFABRIC_API_URL` environment variables for configuration. It then demonstrates fetching available endpoints. Remember to set your environment variables before running.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}