{"id":45488,"library":"mstrio-py","title":"mstrio-py","description":"Python interface for the MicroStrategy Strategy One REST API. Version 11.6.5.101, actively maintained by MicroStrategy.","status":"active","version":"11.6.5.101","language":"python","source_language":"en","source_url":"https://github.com/MicroStrategy/mstrio-py","tags":["mstrio","microstrategy","rest-api","business-intelligence"],"install":[{"cmd":"pip install mstrio-py","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"HTTP client for REST API calls","package":"requests","optional":false},{"reason":"DataFrame output for datasets","package":"pandas","optional":true}],"imports":[{"note":"Connection is in the mstrio.connection module, not top-level.","wrong":"from mstrio import Connection","symbol":"Connection","correct":"from mstrio.connection import Connection"}],"quickstart":{"code":"from mstrio.connection import Connection\nfrom mstrio.project_objects import Report\n\nbase_url = os.environ.get('MSTRIO_BASE_URL', 'https://demo.microstrategy.com/MicroStrategyLibrary/api')\nusername = os.environ.get('MSTRIO_USERNAME', 'administrator')\npassword = os.environ.get('MSTRIO_PASSWORD', '')\n\nconn = Connection(base_url, username, password, project_name='MicroStrategy Tutorial')\nconn.connect()\n\nreport = Report(connection=conn, report_id='12F123456789012345678901234567890')  # Replace with actual report ID\ndf = report.to_dataframe()\nprint(df.head())","lang":"python","description":"Connects to MicroStrategy REST API and fetches a report as a pandas DataFrame."},"warnings":[{"fix":"Use Connection(...).connect() instead of Connection(...).login().","message":"Version 11.3+ changed authentication flow: old 'login()' method renamed to 'connect()'.","severity":"breaking","affected_versions":">=11.3.0"},{"fix":"Replace 'from mstrio.admin import ...' with 'from mstrio.server import ...'.","message":"The 'mstrio.admin' module is deprecated in favor of 'mstrio.server'.","severity":"deprecated","affected_versions":">=11.3.1"},{"fix":"Always provide project_name parameter when creating Connection.","message":"Project name must be passed to Connection constructor; omitting it raises an error about missing project context.","severity":"gotcha","affected_versions":">=11.3.0"}],"env_vars":null,"search_vec":"'11.6.5.101':14 'activ':15 'api':12,23 'busi':25 'business-intellig':24 'intellig':26 'interfac':5 'maintain':16 'microstrategi':8,18,20 'mstrio':2,19 'mstrio-pi':1 'one':10 'py':3 'python':4 'rest':11,22 'rest-api':21 'strategi':9 'version':13","created_at":"2026-06-07T12:55:15.934829+00:00","updated_at":"2026-06-07T12:55:15.934829+00:00","problems":[{"fix":"Use 'from mstrio.connection import Connection'","cause":"Connection class is in submodule mstrio.connection, not top-level","error":"ImportError: cannot import name 'Connection' from 'mstrio'"},{"fix":"Include project_name='YourProject' in Connection constructor","cause":"Connection requires project_name parameter (added in v11.3)","error":"TypeError: __init__() missing 1 required positional argument: 'project_name'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["analytics"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-29","install_tag":null}}