{"id":26715,"library":"altimate-datapilot-cli","title":"Altimate DataPilot CLI","description":"Altimate DataPilot CLI is a command-line tool designed to assist data teams with SQL quality, documentation, and data modeling workflows. Version 0.2.3 requires Python >=3.8. The package is actively maintained by Altimate AI.","status":"active","version":"0.2.3","language":"python","source_language":"en","source_url":"https://github.com/AltimateAI/datapilot-cli","tags":["cli","data-engineering","sql","data-quality","dbt"],"install":[{"cmd":"pip install altimate-datapilot-cli","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"CLI framework used by the tool","package":"click","optional":false},{"reason":"HTTP requests for API calls","package":"requests","optional":false}],"imports":[{"note":"The correct import path uses the 'datapilot' module, not the package name with hyphens or underscores.","wrong":"from altimate_datapilot_cli import DataPilot","symbol":"DataPilot","correct":"from datapilot import DataPilot"}],"quickstart":{"code":"from datapilot import DataPilot\nimport os\n\n# Initialize with your API key\napi_key = os.environ.get('DATAPILOT_API_KEY', 'your-api-key-here')\ndp = DataPilot(api_key=api_key)\n\n# Analyze a SQL file\nresult = dp.analyze_sql('SELECT * FROM orders WHERE id = 1')\nprint(result)\n","lang":"python","description":"Initialize the DataPilot client with your API key and analyze a SQL statement."},"warnings":[{"fix":"Use 'import datapilot' or 'from datapilot import DataPilot'","message":"The package name on PyPI is 'altimate-datapilot-cli' (with hyphens), but the import module is 'datapilot' (no altimate prefix). Do not import from 'altimate_datapilot_cli' as that will raise ModuleNotFoundError.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Upgrade to the latest version: pip install --upgrade altimate-datapilot-cli","message":"Some older versions (pre-0.2.0) used a different API endpoint that has been deprecated. Ensure you are using version 0.2.0 or later.","severity":"deprecated","affected_versions":"<0.2.0"},{"fix":"Set the environment variable or pass the api_key argument explicitly.","message":"The API key must be provided either as an environment variable DATAPILOT_API_KEY or as a parameter. If both are missing, the client will throw an AuthenticationError.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Use: import datapilot","cause":"Incorrect import path; the module is named 'datapilot', not the hyphenated package name.","error":"ModuleNotFoundError: No module named 'altimate_datapilot_cli'"},{"fix":"Upgrade to the latest version: pip install --upgrade altimate-datapilot-cli","cause":"Outdated version of the package that did not export DataPilot as a public class.","error":"AttributeError: module 'datapilot' has no attribute 'DataPilot'"},{"fix":"Set environment variable: export DATAPILOT_API_KEY='your_key' or pass api_key='your_key' to DataPilot().","cause":"Neither the environment variable DATAPILOT_API_KEY nor the api_key parameter was set.","error":"AuthenticationError: No API key provided"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}