{"id":21841948,"url":"https://github.com/mindsdb/mindsdb_python_sdk","last_synced_at":"2026-04-10T12:06:03.107Z","repository":{"id":40245014,"uuid":"259673543","full_name":"mindsdb/mindsdb_python_sdk","owner":"mindsdb","description":"The Python SDK for MindsDB Server","archived":false,"fork":false,"pushed_at":"2026-04-10T10:33:12.000Z","size":3921,"stargazers_count":42,"open_issues_count":13,"forks_count":17,"subscribers_count":15,"default_branch":"main","last_synced_at":"2026-04-10T10:37:15.707Z","etag":null,"topics":["mindsdb","mindsdb-python-sdk","mindsdb-sdk","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mindsdb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-04-28T15:16:19.000Z","updated_at":"2026-04-10T10:32:43.000Z","dependencies_parsed_at":"2023-09-22T18:20:03.441Z","dependency_job_id":"6dfce22d-6451-45eb-9d90-749e9845eec9","html_url":"https://github.com/mindsdb/mindsdb_python_sdk","commit_stats":{"total_commits":126,"total_committers":13,"mean_commits":9.692307692307692,"dds":"0.38888888888888884","last_synced_commit":"701724281de8ee0f6872d3841b5426392f01827a"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/mindsdb/mindsdb_python_sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindsdb%2Fmindsdb_python_sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindsdb%2Fmindsdb_python_sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindsdb%2Fmindsdb_python_sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindsdb%2Fmindsdb_python_sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mindsdb","download_url":"https://codeload.github.com/mindsdb/mindsdb_python_sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindsdb%2Fmindsdb_python_sdk/sbom","scorecard":{"id":647885,"data":{"date":"2025-08-11","repo":{"name":"github.com/mindsdb/mindsdb_python_sdk","commit":"d7e20a79a065b0842b59c732339a9f5847cbb92f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.9,"checks":[{"name":"Code-Review","score":10,"reason":"all changesets reviewed","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/add_to_pr_review.yml:1","Warn: no topLevel permission defined: .github/workflows/add_to_roadmap_project_v2.yml:1","Warn: topLevel 'actions' permission set to 'write': .github/workflows/cla.yml:9","Warn: topLevel 'contents' permission set to 'write': .github/workflows/cla.yml:10","Warn: topLevel 'statuses' permission set to 'write': .github/workflows/cla.yml:12","Info: topLevel 'contents' permission set to 'read': .github/workflows/docs.yml:10","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/test_prs.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/add_to_pr_review.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/mindsdb/mindsdb_python_sdk/add_to_pr_review.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/add_to_roadmap_project_v2.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/mindsdb/mindsdb_python_sdk/add_to_roadmap_project_v2.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/cla.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/mindsdb/mindsdb_python_sdk/cla.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/mindsdb/mindsdb_python_sdk/docs.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docs.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/mindsdb/mindsdb_python_sdk/docs.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/mindsdb/mindsdb_python_sdk/docs.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/mindsdb/mindsdb_python_sdk/docs.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/mindsdb/mindsdb_python_sdk/docs.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/mindsdb/mindsdb_python_sdk/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/mindsdb/mindsdb_python_sdk/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/mindsdb/mindsdb_python_sdk/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/mindsdb/mindsdb_python_sdk/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test_prs.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/mindsdb/mindsdb_python_sdk/test_prs.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test_prs.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/mindsdb/mindsdb_python_sdk/test_prs.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test_prs.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/mindsdb/mindsdb_python_sdk/test_prs.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test_prs.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/mindsdb/mindsdb_python_sdk/test_prs.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test_prs.yml:61: update your workflow using https://app.stepsecurity.io/secureworkflow/mindsdb/mindsdb_python_sdk/test_prs.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/release.yml:22","Warn: pipCommand not pinned by hash: .github/workflows/release.yml:23","Warn: pipCommand not pinned by hash: .github/workflows/release.yml:24","Warn: pipCommand not pinned by hash: .github/workflows/release.yml:25","Warn: pipCommand not pinned by hash: .github/workflows/release.yml:47","Warn: pipCommand not pinned by hash: .github/workflows/release.yml:48","Warn: pipCommand not pinned by hash: .github/workflows/test_prs.yml:23","Warn: pipCommand not pinned by hash: .github/workflows/test_prs.yml:24","Warn: pipCommand not pinned by hash: .github/workflows/test_prs.yml:25","Warn: pipCommand not pinned by hash: .github/workflows/test_prs.yml:26","Warn: pipCommand not pinned by hash: .github/workflows/test_prs.yml:51","Warn: pipCommand not pinned by hash: .github/workflows/test_prs.yml:52","Warn: pipCommand not pinned by hash: .github/workflows/test_prs.yml:53","Warn: pipCommand not pinned by hash: .github/workflows/test_prs.yml:54","Info:   0 out of  14 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned","Info:   0 out of  14 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Branch-Protection","score":1,"reason":"branch protection is not maximal on development and all release branches","details":["Warn: branch protection not enabled for branch 'stable'","Info: 'allow deletion' disabled on branch 'main'","Info: 'force pushes' disabled on branch 'main'","Info: 'branch protection settings apply to administrators' is required to merge on branch 'main'","Warn: 'stale review dismissal' is disabled on branch 'main'","Warn: required approving review count is 1 on branch 'main'","Warn: codeowners review is not required on branch 'main'","Warn: 'last push approval' is disabled on branch 'main'","Warn: 'up-to-date branches' is disabled on branch 'main'","Info: status check found to merge onto on branch 'main'","Info: PRs are required in order to make changes on branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2014-14 / GHSA-652x-xj99-gmcc","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2014-13 / GHSA-cfj3-7x9c-4p3h","Warn: Project is vulnerable to: PYSEC-2018-28 / GHSA-x84v-xcm2-53pg"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T12:38:35.524Z","repository_id":40245014,"created_at":"2025-08-21T12:38:35.524Z","updated_at":"2025-08-21T12:38:35.524Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31641493,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T07:40:12.752Z","status":"ssl_error","status_checked_at":"2026-04-10T07:40:11.664Z","response_time":98,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mindsdb","mindsdb-python-sdk","mindsdb-sdk","python3"],"created_at":"2024-11-27T22:09:17.056Z","updated_at":"2026-04-10T12:06:03.089Z","avatar_url":"https://github.com/mindsdb.png","language":"Python","readme":"# Python MindsDB SDK\n\nThe Python MindsDB SDK allows you to connect to a MindsDB server from Python using the HTTP API.\n\n## Installation\n\n```\npip install mindsdb_sdk\n```\n\n## Example\n\n### Connecting to the MindsDB server\n\nYou can establish a connection to the MindsDB server using the SDK. Here are some examples:\n\n#### Connect to a local MindsDB server\n\n```python\nimport mindsdb_sdk\ncon = mindsdb_sdk.connect()\ncon = mindsdb_sdk.connect('http://127.0.0.1:47334')\n```\n\n#### Connect to the MindsDB Cloud\n\n```python\nimport mindsdb_sdk\ncon = mindsdb_sdk.connect(login='a@b.com', password='-')\ncon = mindsdb_sdk.connect('https://cloud.mindsdb.com', login='a@b.com', password='-')\n```\n\n####  Connect to a MindsDB Pro server\n\n```python\nimport mindsdb_sdk\ncon = mindsdb_sdk.connect('http://\u003cYOUR_INSTANCE_IP\u003e', login='a@b.com', password='-', is_managed=True)\n```\n\n## Basic usage\n\nOnce connected to the server, you can perform various operations. Here are some examples:\n\n```python\n# Get a list of databases\ndatabases = con.databases.list()\n\n# Get a specific database\ndatabase = databases[0]  # Database type object\n\n# Perform an SQL query\nquery = database.query('select * from table1')\nprint(query.fetch())\n\n# Create a table\ntable = database.tables.create('table2', query)\n\n# Get a project\nproject = con.projects.proj\n\n# or use mindsdb project\nproject = con\n\n# Perform an SQL query within a project\nquery = project.query('select * from database.table join model1')\n\n# Create a view\nview = project.views.create('view1', query=query)\n\n# Get a list of views\nviews = project.views.list()\nview = views[0]\ndf = view.fetch()\n\n# Get a list of models\nmodels = project.models.list()\nmodel = models[0]\n\n# Use a model for prediction\nresult_df = model.predict(df)\nresult_df = model.predict(query)\n\n# Create a model\ntimeseries_options = {\n    'order': 'date',\n    'window': 5,\n    'horizon': 1\n}\nmodel = project.models.create(\n    'rentals_model',\n    predict='price',\n    query=query,\n    timeseries_options=timeseries_options\n)\n\n# Describe a model\nmodel.describe()\n```\n\nYou can find more examples in this [Google colab notebook](\nhttps://colab.research.google.com/drive/1QouwAR3saFb9ffthrIs1LSH5COzyQa11#scrollTo=k6IbwsKRPQCR\n)\n\n## Examples\n\nhttps://github.com/mindsdb/mindsdb_python_sdk/tree/staging/examples\n\n## API Documentation\n\nThe API documentation for the MindsDB SDK can be found at https://mindsdb.github.io/mindsdb_python_sdk/.\n\n### Generating API docs locally:\n\n```commandline\ncd docs\npip install -r requirements.txt\nmake html\n```\n\nThe online documentation is automatically updated by pushing changes to the docs branch.\n\n\n## Testing\n\nTo run all the tests for the components, use the following command:\n\n```bash\nenv PYTHONPATH=./ pytest\n```\n\n## Contributing\n\nWe welcome contributions to the MindsDB SDK. If you'd like to contribute, please refer to the contribution guidelines for more information.\n\n## License\n\nThe MindsDB SDK is licensed under the MIT License. Feel free to use and modify it according to your needs\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmindsdb%2Fmindsdb_python_sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmindsdb%2Fmindsdb_python_sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmindsdb%2Fmindsdb_python_sdk/lists"}