{"id":14792,"library":"orion-py-client","title":"Orion Python Client (Meesho)","description":"The `orion-py-client` is a Python client library developed by Meesho, designed to interact with the Orion Feature Store. Its primary function is to facilitate the pushing and producing of model features, as well as retrieving features' metadata. It aims to integrate machine learning workflows with the Orion Feature Store platform.","status":"active","version":"0.1.14","language":"en","source_language":"en","source_url":"https://github.com/meesho/orion/orion_py_client","tags":["feature store","mlops","data science","machine learning","meesho"],"install":[{"cmd":"pip install orion-py-client","lang":"bash","label":"Install stable version"}],"dependencies":[],"imports":[{"symbol":"OrionClient","correct":"from orion_py_client import OrionClient"},{"note":"Assumed path based on common package structure for data models.","symbol":"Feature","correct":"from orion_py_client.models import Feature"}],"quickstart":{"code":"import os\nfrom orion_py_client import OrionClient\n\n# Placeholder for Orion Feature Store URL and API Key\nORION_API_URL = os.environ.get('ORION_API_URL', 'http://localhost:8080')\nORION_API_KEY = os.environ.get('ORION_API_KEY', 'your_api_key_here')\n\ntry:\n    client = OrionClient(api_url=ORION_API_URL, api_key=ORION_API_KEY)\n    print(f\"Successfully initialized OrionClient for {ORION_API_URL}\")\n\n    # Example: Push a feature (assuming a 'Feature' model exists)\n    # This part is illustrative as exact data model and push method are not publicly documented.\n    feature_data = {\n        \"feature_name\": \"user_login_count\",\n        \"entity_id\": \"user_123\",\n        \"value\": 15,\n        \"timestamp\": \"2026-04-16T10:00:00Z\"\n    }\n    # Assuming a method like 'push_feature' or 'produce_feature'\n    # response = client.push_feature(feature_data)\n    # print(f\"Pushed feature: {response}\")\n\n    # Example: Get feature metadata\n    # metadata = client.get_feature_metadata(feature_name=\"user_login_count\")\n    # print(f\"Feature metadata: {metadata}\")\n\nexcept Exception as e:\n    print(f\"An error occurred: {e}\")\n    print(\"Please ensure ORION_API_URL and ORION_API_KEY are correctly set.\")\n","lang":"python","description":"Initializes the OrionClient and demonstrates placeholder operations for pushing features and retrieving feature metadata. Replace environment variables with your actual Orion Feature Store URL and API Key. The exact API methods and data structures for feature interaction are inferred based on the library's summary, as detailed documentation is not publicly available."},"warnings":[{"fix":"Consult internal Meesho documentation or source code if available. Rely on PyPI summary and typical Python client patterns for initial integration.","message":"Public documentation for `orion-py-client` is scarce, making precise API usage and potential breaking changes difficult to ascertain without access to the internal Meesho project. Information regarding detailed API methods, data models, and specific integration patterns is largely inferred from the PyPI summary.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Monitor Orion Feature Store backend release notes. Implement robust error handling and API versioning if supported by the Feature Store.","message":"As a client library, breaking changes in the underlying Orion Feature Store API could lead to unexpected behavior or failures, even without a new client release. Always verify compatibility if the backend service is updated.","severity":"breaking","affected_versions":"All versions"},{"fix":"Ensure `ORION_API_URL` and `ORION_API_KEY` are correctly configured and have the necessary permissions. Implement retry logic for transient connection issues.","message":"Authentication relies on an API key and URL. Incorrect or expired credentials will result in connection failures or unauthorized access errors, which may not always be clearly distinguished without verbose logging from the service.","severity":"gotcha","affected_versions":"All versions"}],"env_vars":null,"last_verified":"2026-04-16T00:00:00.000Z","next_check":"2026-07-15T00:00:00.000Z","problems":[{"fix":"Run `pip install orion-py-client` to install the package.","cause":"The `orion-py-client` package is not installed in the current Python environment.","error":"ModuleNotFoundError: No module named 'orion_py_client'"},{"fix":"Verify that `ORION_API_URL` points to the correct endpoint and `ORION_API_KEY` is valid and active. Check network connectivity to the Orion Feature Store. Consult your Orion Feature Store administrator for valid credentials.","cause":"The provided `ORION_API_KEY` is incorrect, expired, or the `ORION_API_URL` is inaccessible or wrong. The client could not establish a connection or authenticate with the Orion Feature Store.","error":"An error occurred: Authentication failed (or similar connection error)"},{"fix":"Refer to the actual source code or internal documentation of the `orion-py-client` to find the correct method names for interacting with features. If no documentation is available, inspect the `OrionClient` object's methods at runtime (e.g., using `dir(client)` or an IDE's autocomplete).","cause":"The method name `push_feature` (or similar, like `produce_feature`) used in the quickstart example might not be the actual method name exposed by the `OrionClient` class. This could be due to inferred API names.","error":"AttributeError: 'OrionClient' object has no attribute 'push_feature'"}],"ecosystem":"pypi"}